data, a has_more flag, and a next_cursor. Set limit to 1–100. The default is 25.
- Omit
cursoron the first request. - While
has_moreis true, copynext_cursorinto the next request’scursor. Keep the same search criteria and sort. Treat the cursor as opaque. - Stop when
has_moreis false. The last page has a nullnext_cursor.
limit even when has_more is true. Keep paging based on the flag.
Store search sort order
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.