> For the complete documentation index, see [llms.txt](https://docs.xrpscan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xrpscan.com/api-documentation/api-concepts/pagination.md).

# Pagination

Some APIs may contain a large number of documents. It is possible to paginate data in such APIs by passing `limit` and `offset` parameters in the GET query string.

<table><thead><tr><th width="155">Parameter</th><th width="96">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>limit</code></td><td>Number</td><td>Maximum number of documents the API will return.</td></tr><tr><td><code>offset</code></td><td>Number</td><td>Number of documents to skip in the results set.</td></tr></tbody></table>

## Example

To fetch 20 AMM pools from record 60 through 79, `offset` parameter would be set to 60 and `limit` parameter would be set to 20.

<pre><code>$ curl "https://api.xrpscan.com/api/v1/amm/pools?<a data-footnote-ref href="#user-content-fn-1">offset</a>=60&#x26;<a data-footnote-ref href="#user-content-fn-2">limit</a>=20"
</code></pre>

[^1]: Maximum number of documents the API will return.

[^2]: Number of documents to skip in the results set.
