Skip to main content

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.

Pagination Parameters

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

Basic Pagination

Pagination with Custom Parameters


Response Format

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

Pagination Best Practices

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

  1. Start with reasonable limits: Use the default limit of 10 for most use cases
  2. Use the next URL: Don’t manually construct pagination URLs
  3. Handle empty results: Check if nodes is empty to detect the end of results
  4. 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.