Parameters
Response
Get every page
SendnextCursor back as cursor, and keep the other parameters the same. Stop when hasMore is false:
Cursor rules
- Cursors are opaque. Don’t parse, change, or build a cursor. Its format can change at any time.
- Cursors go forward only. There is no cursor for the previous page. To go back, start again from the first page.
- A cursor works only with the request it came from. Send it to the same endpoint, with the same filters and sort order. If you change a filter or send the cursor to a different endpoint, you get
400 INVALID_CURSOR. Onlylimitcan change between pages. - Cursors don’t expire. A long export can continue where it stopped. Items deleted between two requests don’t appear on later pages.
400 INVALID_CURSOR has the same message for every cause, so it doesn’t tell you which rule the request broke. Start again from the first page without a cursor.
Ordering
Each endpoint documents its sort order on its reference page. Some endpoints takesort and direction parameters. A list endpoint’s order is not always the order you expect from the product. For example, a merge queue’s pull request list isn’t in the order the queue tests them. See Queue order.