Pagination parameters
You can control pagination using the following query parameters:Example usage
Here’s how to retrieve paginated results:Response structure
Paginated responses include metadata about the pagination:Response example
Default behavior
- If you leave out
page_number, you get the first page. - If you leave out
page_size, the page size depends on the endpoint. Each endpoint’s reference page shows its default and maximum page size.
Best practices
- Start with reasonable page sizes: Use page sizes between 10-100 items for optimal performance.
- Handle empty results: Always check if the returned array is empty to detect the end of data.
- Use total_records: Use the
pagination.total_recordsfield to calculate the total number of pages needed. - Implement error handling: Handle cases where the requested page doesn’t exist.