Pagination in our APIs
Instead of returning the entire dataset in a single response, which can strain resources, clients can request specific subsets of data. This improves response times and enables smoother data handling, particularly for applications that load results incrementally. We support two query parameters for pagination:page
(integer): Specifies the page number to retrieve. The default value is1
.- Negative values are invalid and will result in an error.
limit
(integer): Defines the maximum number of items per page. The default value is10
.
Pagination response
The pagination response includes the following structure:items
: An array of entities retrieved for the current page. Each object contains detailed information about the resource requested, as shown in the example below.page
: The current page number, starting from1
(default).limit
: The maximum number of items included in the response, as defined in the request or default configuration.
Maximum page size
By default, API endpoints that support pagination accept a maximum of 100 items per page (limit=100
). This restriction helps ensure optimal performance and avoids excessive payload sizes.
If your use case requires retrieving a larger number of items per request, you can override this limit by setting the MAX_PAGINATION_LIMIT
environment variable in your deployment configuration ( .env
file).
Increasing the pagination limit may result in slower response times depending on the volume of data and infrastructure conditions. Be sure to test thoroughly in staging environments before applying the change in production.