Skip to main content
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

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.