Pagination Parameters
You can control pagination using the following query parameters:The page of results you want to retrieve (starting from 1)
The number of items to return per page
Example Usage
Here’s how to retrieve paginated results:Response Structure
Paginated responses include pagination metadata:Response Example
The total number of items across all pages
Pagination metadata. Contains
total_records (total items), total_pages, current_page_number, and page_size.Default Behavior
If pagination parameters are not provided, default values will be applied:
- page_number: 1 (first page)
- page_size: 30 (30 items per page)
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_count: Use the
total_countfield to calculate the total number of pages needed. - Implement error handling: Handle cases where the requested page doesn’t exist.