
Core Pagination Parameters
To move from page N to page N + 1, add limit to the current offset. Data Khoj enforces a configurable maximum page size (default 100) to keep responses fast and respect upstream limits.
Page 1 (illustrative): ?offset=0&limit=20 -> rows 1 to 20
Page 2 (illustrative): ?offset=20&limit=20 -> rows 21 to 40
Page 3 (illustrative): ?offset=40&limit=20 -> rows 41 to 60Why Unbounded Loops Are Dangerous
When a resource contains tens of thousands of rows, firing an unbounded sequence of rapid API calls can trigger rate limits (HTTP 429) or upstream timeouts (HTTP 504). Use reasonable page sizes, apply filters before paginating, and rely on bounded server-side caching when aggregating.

What Happens When total Is Unavailable?
Occasionally, an upstream data.gov.in resource omits or returns a non-numeric total value. In that situation, Data Khoj displays "Unavailable from upstream" rather than guessing. You can still page forward reliably: if a page returns fewer records than limit (or zero records), you have reached the end of the dataset.