Cursor-Based Pagination (Recommended)
Best for real-time data and large datasets. Uses an opaque cursor to track position.Cursor-based pagination is stable even when records are added or removed
between requests.
Async Iterator (Auto-Pagination)
Process all records without managing pagination manually:Pagination Utilities
The SDK provides helpers for common pagination patterns:Collect All
Collect all items into an array:Collect Up To N
Collect a maximum number of items:Get First
Get just the first item:Offset-Based Pagination
For UI pagination with page numbers:Constants
Comparison
Pagination Response
Alllist() methods return a paginated response:
