Zendesk typically returns links for pagination in the response under next_page
.
The next_page
attribute provides a direct link to the next page of results. If there's no next_page
link, you're on the last page of results.
Don't forget that Zendesk has a rate limit. You should ensure you're not hitting this rate limit, which can cause errors. Check the X-Rate-Limit header in the API response to understand where you stand.
In your case I assume you'll have to make multiple "sets" of paginated requests and also instead of relying only on pagination, use filters, such as updated_at
or created_at
to break down your requests.