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

# Pagination

> Follow opaque cursors and choose a store sort for browsing or full synchronizations.

Store search and app search return a page in `data`, a `has_more` flag, and a `next_cursor`. Set `limit` to 1–100. The default is 25.

1. Omit `cursor` on the first request.
2. While `has_more` is true, copy `next_cursor` into the next request's `cursor`. Keep the same search criteria and sort. Treat the cursor as opaque.
3. Stop when `has_more` is false. The last page has a null `next_cursor`.

Store search can return fewer rows than `limit` even when `has_more` is true. Keep paging based on the flag.

## Store search sort order

| Sort | Order |
| - | - |
| `top` (default) | Highest-ranked stores first. |
| `newest` | Most recently recorded stores first. |
| `id` | Store ID order. Use it to sync the full result set. |

With `top` or `newest`, a store whose sort value changes during the walk can move across the cursor, so it can be skipped or seen again. With `id`, a store record that keeps matching the filters is visited once.

If you receive `410 cursor_expired`, restart from the first page. For `400 invalid_request`, check that the cursor is unchanged and that the request still uses the same search criteria and sort.


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