API Project Parameters not working

Started by Private User on Wednesday, October 17, 2012
Problem with this page?

Participants:

  • Private User
    Geni Pro
  • Private User
    Geni Pro

Related Projects:

Showing all 2 posts
Private User
10/17/2012 at 10:31 AM

So I'm just trying to return a list of profile ids. I don't see that projects have only_ids=true, so I tried fields=id, no luck. In fact, it appeared that the field had little effect.
https://www.geni.com/api/project-6/profiles?fields=id

So I tried count.. again, I got a fairly full return.
https://www.geni.com/api/project-6/profiles?count=true

Am I doing something wrong here?
I'd like to just get a return of all the profile ids of profiles in the project. Also, am I going to have to paging (next, next..) seems like a lot of work to just get ID's. Even if there are a 1000 profiles in a project, that shouldn't be a big deal if it's just ids.

Private User
10/17/2012 at 11:07 AM

Count is not working on any api calls and secondly you cannot trust it anyhow because it is a live database where count may in theory change while processing the pages.

You would don't save anything by only requesting the id except of saving some bytes in a request, but you don't get more profiles in one request anyhow.
I can confirm that the fields parameter is not working, neither do the only_ids=true parameter which some other commands in theory should

Totally you probably save more by using field_group=all since you don't have to make separate calls to get the full contents of each profile...

Showing all 2 posts

Create a free account or login to participate in this discussion