---
updatedAt: 2025-01-31T00:34:23.000Z
agentTools:
  projectIndex: https://developer.runn.io/llms.txt
---

# Pagination

All collection endpoints (e.g. `GET /people`) are paginated, usually returning 50 items by default. The amount can be increased through the `limit` parameter, usually to 200 items.

The API response will indicate whether more records are available through a `nextCursor` property in the JSON response body (using [cursor-based pagination](https://slack.engineering/evolving-api-pagination-at-slack/)).

```curl
curl \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept-Version: 1.0.0' \
  https://api.runn.io/people
```

Response:

```json
{
    "values": [
        {
            "id": 1,
            "...": null
        },
        {
            "id": 2,
            "...": null
        }
    ],
    "nextCursor": "string"
}
```

In order to get more results, you need to pass through the `nextCursor` from the response as the `cursor` parameter in your next request.

```curl
curl \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept-Version: 1.0.0' \
  https://api.runn.io/people/?cursor={nextCursor}
```

Response:

```json
{
    "values": [
        {
            "id": 3,
            "...": null
        },
        {
            "id": 4,
            "...": null
        }
    ],
    "nextCursor": null
}
```

When no further items are available, the `nextCursor` value will be `null`.