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

# Pagination

> Page through list endpoints with a cursor.

List endpoints accept `limit` and `cursor`. They return `data` and
`next_cursor`.

```json theme={null}
{
  "data": [{ "id": "clip_5b6c7d8e9f0a4b1c8d2e3f4a5b6c7d8e" }],
  "next_cursor": "MTcyNjg0NzIwMDAwMC4yYzEuYjkx"
}
```

* `limit` accepts 1 to 100. The default is 25.
* Send `next_cursor` as `cursor` to get the next page.
* A `null` value for `next_cursor` means that there are no more results.

## Keep the filters the same

A cursor belongs to the filters that made it. Send the same filters with each
page. A cursor sent with different filters returns `400 invalid_request`.

## Instagram posts

`GET /accounts/{account_id}/media` accepts a `limit` of 1 to 50. A page can
hold fewer posts than `limit`, and even none with a `next_cursor`, because
posts that are not videos are left out. Keep paging until `next_cursor` is
`null`.

A media cursor belongs to one account. It returns `400` on another account.

Each media page uses the account's Instagram rate limit. Read only the pages
you need.

## Treat a cursor as opaque

Do not parse a cursor or build one yourself. The format can change.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.