Some Simkl endpoints return many items and are paginated. Paginated endpoints are marked with 📄 Pagination in the API Reference. The pagination contract is consistent across these endpoints — sameDocumentation Index
Fetch the complete documentation index at: https://api.simkl.org/llms.txt
Use this file to discover all available pages before exploring further.
page and limit query parameters, same X-Pagination-* response headers, same cap on page (max 20) — but the default and maximum limit differ per endpoint family. Always check the per-endpoint defaults below before assuming a value.
Per-endpoint defaults
| Endpoint family | Default limit | Max limit | Max page |
|---|---|---|---|
GET /search/{type} (text search) | 10 | 50 | 20 |
GET /tv/genres/..., GET /anime/genres/..., GET /movies/genres/... (by genre) | 60 | 60 | 20 |
GET /tv/premieres/{param}, GET /anime/premieres/{param} | 60 | 60 | 20 |
page defaults to 1 on every paginated endpoint.
Endpoints not listed here either don’t paginate (they use a different model —
GET /sync/all-items uses date_from for incremental sync) or accept a much larger fixed window (e.g. GET /sync/playback returns up to 10,000 items in one shot). When in doubt, check the endpoint’s own reference page.Query parameters
| Parameter | Type | Description |
|---|---|---|
page | integer (1–20) | Which page to return. Defaults to 1. |
limit | integer (1–max) | Items per page. Default and maximum vary per endpoint — see the table above. |
limit above the endpoint’s cap, the server silently clamps it down — no error, no warning, just fewer items than you asked for. Same for page above 20. Read the response headers to know what you actually got.
Response headers
Every paginated response includes:| Header | Meaning |
|---|---|
X-Pagination-Page | The current page number. |
X-Pagination-Limit | Items per page (after the server applies any clamping). |
X-Pagination-Page-Count | Total number of pages available — bounded by the page cap (max 20). |
X-Pagination-Item-Count | Total number of items matching the request across all pages. |
A simple paginator
These snippets default to a conservativelimit=50 that fits inside every paginated endpoint’s cap. Bump to 60 if you’re hitting a genre or premieres endpoint and want bigger pages.