Links

Cursor Pagination

Some of our endpoints provide cursor-based pagination. A cursor is a random string which points to a specific item in a list of data. A string pointed to an element can be changed in future. Therefore, your app should not store cursors.
curl "https://graph.whisk.com/v1/products/autocomplete?language=en&limit=5&after=eyJpZCI6IlBPUksgQkFCWSBCQUNLIFJJQiIsImluZGV4Ijo5fQ==" \
-H "Accept: application/json" \
-H "Authorization: Bearer <Access-Token>"
A result will contain segment with pagination which includes cursors to the first and the last item in the result. Reference will be empty if there are no elements before or after cursor.
Example of a segment with cursors:
{
"after": "eyJpZCI6IkNISUEgU0VFRFMiLCJpbmRleCI6MTR9",
"before": "eyJpZCI6IkdSQU5PTEEiLCJpbmRleCI6MTB9"
}

FinitePaging

ATTRIBUTE
TYPE
DESCRIPTION
cursors*
Cursors
total*
integer

Cursors

ATTRIBUTE
TYPE
DESCRIPTION
after
string
before
string