API only returning 25 contacts

Hi Christopher,

You’re only seeing the first 25 contacts as the API uses pagination. You
can use query parameters to request the next page of results or change the
number of results on each page. The Link header includes links to the next,
previous, first and last pages of results which you can also check to
determine whether there is another page of results to fetch.

This is documented at the bottom of the Introduction to the FreeAgent API
page: https://dev.freeagent.com/docs/introduction.

I hope this helps. Please get in touch if you have any more questions.

Regards,
Harry MillsOn Wed, Apr 10, 2013 at 4:49 PM, Christopher Hough chris.hough@gmail.comwrote:

Im using the API (as far as Im concerned exactly as documented) to return
a list of all my contacts.

I have (if you ignore the small number of “hidden” contacts) over 60 names.

When I request this list via the API, I get 25 returned.

Its the first 25 names, ordered alphabetically from my list of contacts.

I know this because I hid some names to see what was returned.

E.g. lets say that instead of returning the first 25 names the API only
returned the first 5

If my full contacts list was

A
B
C
D
E
F
G
H

The API call would only return

A
B
C
D
E

If I then hid contacts C & D, the API will return

A
B
E
F
G

Make sense?

So how can I get the API to return all my contacts?


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.