---
title: "Pagination with cursors"
url: https://klipperstudio.com/developers/pagination
description: "Klipper Studio list endpoints use opaque cursors: pass next_cursor back as cursor until has_more is false."
---

# Pagination

List endpoints (`/plans`, `/search`) return one page:

```json
{ "data": [ ... ], "next_cursor": "bzoyMA", "has_more": true, "total": 31 }
```

- `limit`: items per page, 1-50, default 20.
- `cursor`: pass `next_cursor` from the previous page unchanged. It is opaque; do not build it yourself.
- Stop when `has_more` is `false` (`next_cursor` is then `null`).

```bash
curl "https://klipperstudio.com/api/v1/search?q=clipper&limit=5"
curl "https://klipperstudio.com/api/v1/search?q=clipper&limit=5&cursor=bzo1"
```

An invalid cursor returns `400 invalid_cursor`.
