Zotero API returns only 25 items
Hello everybody,
I've been trying to use the API for a web application I am developing for my school.
It occurred to me today that if I have a collection with let's say 90 items and try to call it with the API, I receive a JSON file with only 25 items. There always seems to be that limit, no matter if the collection has 90 or 250 items. Does anybody know why?
Thanks in advance!
Alex
I've been trying to use the API for a web application I am developing for my school.
It occurred to me today that if I have a collection with let's say 90 items and try to call it with the API, I receive a JSON file with only 25 items. There always seems to be that limit, no matter if the collection has 90 or 250 items. Does anybody know why?
Thanks in advance!
Alex
See this section of the API docs for details on how to change the limit (up to 100, though you generally don't want to change that for a public-facing application) and how to use the Link header for pagination:
https://www.zotero.org/support/dev/web_api/v3/basics#sorting_and_pagination