Pagination
Some
GET
APIs accept limit
and offset
parameters for fetching specific subsets of results from the API. offset
starts at and defaults to 0, limit
can be any value between 0 and 1000, and defaults to 50. If limit
in the request query is greater than the maximum allowed value (1000), the API will assume the maximum allowed value as the limit
instead.Fetching All Results
If your application needs to fetch all the items that match a specific criteria, the API returns a
limit
property. An application can use this property to determine whether to continue fetching results if the number of items in the data
property is equal to the limit
value. If the number of items in the data
property is less than the limit
value, it can be assumed that you have reached the end of available items.