What are cursor-based and page-number pagination in APIs?
Quick answer
Page-number pagination requests a numbered slice, such as page 3. Cursor-based pagination continues using a value supplied by an earlier response. These are general patterns, not universal parameter names or response formats: an API might provide a page number, continuation token, or link. Check the endpoint’s documentation for what to send, how to continue, and how to tell when there are no more results.
The question, the details, the next step.
A practical checklist
Find the endpoint’s documented pagination request parameters.
Check whether the page-size setting is a maximum rather than a guaranteed result count.
Identify the documented continuation field, token, or link.
Follow the API’s instructions for reusing that value and keeping request options consistent.
Use the documented end-of-results signal; don’t infer behavior from field names alone.
A few more useful answers
Does a cursor always mean the API returns a field called `nextCursor`?
Does a page-size setting guarantee that many results in every response?
Not necessarily. Google Calendar documents maxResults as a maximum, not a guarantee that each response contains that many results. Check the endpoint’s documentation. [S1]
Do these examples establish how numbered-page APIs work?
No. The cited sources describe specific continuation-token designs; they do not specify a general page-number format or behavior. Consult the documentation for the API you are using.
Sources
References used for this guide.
- [S1] Page through lists of resources — Google Calendar API developers.google.com · Checked
- [S2] Use after (REST) — Data API builder learn.microsoft.com · Checked
