---
index: "https://tradytics.com/docs/llms.txt"
title: "Pagination | Tradytics API"
description: "Long lists come a page at a time, newest first. Ask for up to limit rows. When there are more, send next_cursor back as cursor with the same parameters, or..."
url: "https://tradytics.com/docs/pagination"
image: "https://tradytics.com/api/v2/og/home.png"
---

# Pagination

[Every docs page as Markdown: /docs/llms.txt](https://tradytics.com/docs/llms.txt)

Long lists come a page at a time, newest first.

- Ask for up to limit rows. When there are more, send next_cursor back as cursor with the same parameters, or call next_url with your key. Both fields are null on the last page.

```bash
curl "https://tradytics.com/api/public/v1/options/flow?symbol=SPY&date=2026-10-29&limit=1000&cursor=2026-10-29:60911822&apiKey=$TRADYTICS_API_KEY"
```

- Cursors are opaque: pass them as they come. A page with filters can hold fewer rows than limit and still have a next page, so follow next_cursor until it is null.
- Options flow and dark pool prints take since: the newest id you hold. The answer lists only prints after it, oldest first, so a loop that keeps the last id sees every print once.

```python
import os, time, requests

last = 0
while True:
    r = requests.get("https://tradytics.com/api/public/v1/options/flow", params={"since": last, "min_premium": 250000,
                     "apiKey": os.environ["TRADYTICS_API_KEY"]}).json()
    for p in r["data"]:
        print(p["time"], p["symbol"], p["type"], p["strike"], p["premium_usd"])
        last = p["id"]
    time.sleep(2)
```

- [Overview](https://tradytics.com/docs)
- [Quickstart](https://tradytics.com/docs/quickstart)
- [MCP server](https://tradytics.com/docs/mcp)
- [MCP tools](https://tradytics.com/docs/mcp-tools)
- [Libraries](https://tradytics.com/docs/libraries)
- [API keys](https://tradytics.com/docs/authentication)
- [Pay per call](https://tradytics.com/docs/pay-per-call)
- [Rate limits](https://tradytics.com/docs/rate-limits)
- [Errors](https://tradytics.com/docs/errors)
- [Time and history](https://tradytics.com/docs/time)
- [Data conventions](https://tradytics.com/docs/conventions)
- [Support](https://tradytics.com/docs/support)
- [API docs](https://tradytics.com/docs)
- [Quickstart](https://tradytics.com/docs/quickstart)
- [MCP server](https://tradytics.com/docs/mcp)
- [Read the data without JavaScript](https://tradytics.com/docs/pagination?snapshot=1)
