Pagination is the process of dividing a large set of results into smaller, manageable chunks called pages. Each page will contain up to 1,000 results.
The Discover API uses cursors to paginate through results. A cursor is an opaque token that marks your position in a result set, allowing you to pick up exactly where the previous response left off. Rather than using page numbers or offsets, cursors provide a stable and efficient way to traverse large datasets — even as new data is added or removed between requests.
Do not make any assumptions about the format or structure of the cursor.
The only guarantee is that it will always be a string. The format is subject to change at any time and without notice.
How to use the cursor
Discover searches that yield more results than can fit on a single page will return a nextCursor property.
Request
Pass this value into the cursor property of your next request to retrieve the following page of results, as shown below:
Response
When nextCursor is null, there are no additional pages to fetch.
Do not modify any filter criteria in between pages. Doing so will result in unpredictable behavior.
