pagination.next or pagination.previous cursor as page_cursor; confirm the parameters supported by the specific method in the current API guide.API2Cart supports cursor-based pagination for all methods that contain the start and count params. This was introduced primarily in response to changes in Shopify pagination.
Shopify replaced its page-based pagination with cursor-based pagination, available in API version 2019-07 and above. Because of this, API2Cart allows you to use the page_cursor param, which can be received from the response field pagination.next or pagination.previous, depending on which page you need to retrieve data about products or other entities.
Let’s explore in detail how to work with cursor-based pagination. First, you need to make an initial request with the required filter and specify count. In this case, the request and response would look as follows:
If the field pagination.next is filled out in the response, you can retrieve data from the next page. To do this, simply send the product.list request again and specify the page_cursor param. For example:
You can use the start and count params or the page_cursor param not only for Shopify but also for the other shopping platforms supported by API2Cart. Note that for Shopify, cursor-based pagination is the standard approach, as Shopify has phased out the older start and count params—see Shopify's API versioning policy for details.
Please feel free to contact our manager if you need any further information.