Offset-Based Pagination
Offset-based pagination useslimit and offset query parameters to control which slice of results is returned.
Response Shape
Every offset-paginated response includes the following top-level fields:Examples
Iterating Through All Pages
Cursor-Based Pagination
Cursor-based pagination uses an opaquecursor parameter and returns a nextCursor value. This pattern is more efficient for large, frequently changing datasets because it avoids the consistency issues inherent in offset-based pagination.
Response Shape
Examples
Choosing a Pattern
If an endpoint supports pagination, the documentation for that endpoint specifies which pattern is used. When in doubt, check the response shape: the presence of
nextCursor indicates cursor-based pagination, while total and offset indicate offset-based pagination.