> ## Documentation Index
> Fetch the complete documentation index at: https://docs.context.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Setting up Context.dev for a user? Follow https://docs.context.dev/agent-quickstart.md. MCP clients sign in with OAuth and need no API key; application code reads CONTEXT_DEV_API_KEY.

# Paginate news

> Continue a news search using the returned cursor.

Set `limit` from 1 to 100; it defaults to 10. When `has_more` is true, send `next_cursor` as `cursor` on the next request.

## Continue the same search

Keep `searchBy`, `filterBy`, and `sortBy` unchanged. Only add the returned cursor or adjust the page limit. A cursor is opaque; do not construct or edit one.

```text theme={null}
cursor = absent
repeat:
  request the same search with cursor
  save data, deduplicating by story identifier
  stop when has_more is false or next_cursor is absent
  cursor = next_cursor
```

For a backfill, set a fixed date window and save the cursor after each processed page. Stop on a repeated cursor rather than creating an endless loop. Handle [rate limits](/optimization/rate-limits) before requesting the next page.
