Overview
Pagination is used by the Cevoid API to limit data returned in a single request, making it easier to work with large datasets. All API endpoints that return multiple items support pagination.
limit
- Type: Integer
- Default: 10 items
- Maximum: 25 items
- Description: Controls the number of items returned per request
skip
- Type: Integer
- Default: 0
- Description: Number of items to skip from the beginning of the result set
Making Paginated Requests
Paginated responses include helpful metadata to navigate through the dataset:
Response Fields
count: Total number of items available
next: URL for the next page of results (if available)
nodes: Array containing the requested items
Use the next field from the response to get the URL for the next page of results. This ensures you’re using the correct parameters.
Efficient Navigation
- Start with reasonable limits: Use the default limit of 10 for most use cases
- Use the
next URL: Don’t manually construct pagination URLs
- Handle empty results: Check if
nodes is empty to detect the end of results
- Respect rate limits: Don’t make requests too quickly when paginating through large datasets
Example: Iterating Through All Results
Remember that the maximum limit is 25 items per request. Requests with a higher limit will be automatically capped at 25.