Pagination
How paginated results work
Last updated
How paginated results work
Last updated
When you fetch a collection of resources, you get paginated results. The response contains the record and page counts in the meta
attribute and the URLs of the other pages in the links
attribute.
The default page number is 1 (consequently, the link to the prev
page is missing), and the default page size is 10. The maximum page size allowed is 25, but we recommend using a lower value unless strictly necessary. If you need to modify these default settings, use the page
query parameter in your request.
If you need to gather information about large sets of resources for analytics/reporting purposes, please avoid making multiple paginated requests to the related resource endpoint. Use exports instead, which are a best fit for that. Alternatively, you can also perform a using our (at the moment limited to , , and ).
The following request fetches the SKUs, setting the page number to 3 and the page size to 5:
The example query parameters above use unencoded [
and ]
characters simply for readability. In practice, these characters must be percent-encoded, per the requirements in RFC 3986.