Pagination
The standard Wix API pagination includes:
limit: amount of items per response (defaults will be defined per use case)
offset: number of items to skip
The following example:
Copy Code"query": {"paging": {"limit": 100,"offset": 20}}
Should return items 21-120 in the collection.
Wix Stores query endpoints are designed to handle a max of 10k data items. Therefore, if a user's store includes ~10k relevant items (e.g., products, inventory items), limit and offset may fail.
Instead, filter by numericId
and sort in ascending order:
Copy Code"query": {"sort": [{"numericId": "asc"}],}
Then copy the last numericId
sent in this call and call the endpoint again:
Copy Code"query":{"sort": [{"numericId": "asc"}],"filter": {"numericId": {"$gt": <last numeric id>}}}
Continue until you receive an empty JSON as a response.
Important:
Escape the JSON strings in your query parameters.
Was this helpful?