🤖 Judit API pagination does not use cursors. It is based on the Offset pattern, using exclusively the query parameterspage(page number) andpage_size(number of items). The strict maximum limit forpage_sizeis 1000 items. Pagination metadata is returned at the root of the response object.
How Pagination Works
Query Parameters (Request)
When performing listings (such as fetching the history of requests or trackings), you can send the following parameters in the URL:| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Desired page number (1-based). |
page_size | integer | 20 | Number of items returned per page. Maximum allowed: 1000. Recommendation: Keep between 10 and 100 for better response time. |
Response Structure (Payload)
Responses from paginated endpoints always return navigation metadata at the root of the JSON, and the items themselves usually come in thepage_data array.
Practical Examples
Basic Query with Pagination
Below, we show how to fetch the first page of requests and iterate over the data.Optimizations and Best Practices
To handle large data volumes efficiently and without being blocked by the API, follow the recommendations below.1. Choosing the right page_size
Adjust the page size according to your application’s needs, always keeping the 1000-item limit per request in mind.
2. Rate Limit Control (Safe Iteration)
The Judit API has strict per-minute request limits. When building loops to extract all pages, it is mandatory to implement a small delay between calls to avoid the429 Too Many Requests error.
Note on Parallel Processing: We removed the concurrent processing (threads) example because firing multiple pages in parallel will almost certainly trigger Rate Limit blocking (Error 429), unless your application has robust distributed queue management. We always recommend sequential processing with a delay or controlled queues.
Next Steps
- 👉 Rate Limits: Understand your account’s request quotas.
- 👉 Authentication: Review how to send your credentials.
- 👉 Endpoints: Explore the resources that support listings.