Old Style
These endpoints will return 100 items per page. If the result set has more than 100 items, it's your responsibility to check the next page to see if there are any more items -- you do this by adding &page=2
to the query, then &page=3
and so on.
Examples of endpoints that use this style of pagination:
New Style
These endpoints will return the desired data in an array along with a pagination object. There will return 100 items per page. If the result set has more than 100 items the pages
value in the pagination object will indicate how many pages there are as well as a value for the next
page. The page
query param is required unlike in the old style of pagination.
Here is an example of the pagination object:
"pagination": {
"current": 1,
"previous": null,
"next": null,
"per_page": 100,
"pages": 1,
"count": 2,
"prev_page_path": null,
"next_page_path": null
}