đCursor Pagination
Learn how to use cursor pagination to get all the data from Airstack queries.
Last updated
Was this helpful?
Learn how to use cursor pagination to get all the data from Airstack queries.
Last updated
Was this helpful?
Airstack uses cursor-based paginations to retrieve huge amounts of on-chain and off-chain data that is broken down into pages with a maximum of 200 objects returned in a single response.
If you're look on how to implement pagination using the Airstack SDKs in your application, click here.
Each response result from an API call is a page and is indicated by a cursor
value.
Thus, in order to go to the next (or previous) page, you will need to get the cursor
value for the next (or previous) page, which is provided in every Airstack GraphQL schema as pageInfo.nextCursor
(or pageInfo.prevCursor
):
If pageInfo.nextCursor
or pageInfo.prevCursor
is returned as an empty string, then it implies that there is no more next or previous page, respectively.
Once you have the cursor for the next page, you can use the cursor value to retrieve data from the 2nd page by making another API call with the pageInfo.nextCursor
value provided in the cursor
input filter:
If you have any questions or need help regarding how cursor pagination work, please join our Airstack's Telegram group.