SAP Cloud Platform Open Connectors

How Does Cursor Pagination Work?

Cursor pagination is an alternative to traditional pagination. The response headers contain a next page token that can be passed into the next request to get the next page of results.

Example of next page token:

content-type: application/json;charset=UTF-8 elements-next-page-token: eyJsaW1pdCI6MSwicGFnZVNpemUiOjEsInBhZ2UiOjJ9 elements-request-id: 5a6f8ba4e4b0fe73329cbc84 elements-returned-count: 1

Example of a request using next page token:

https://api.openconnectors.us2.ext.hana.ondemand.com/elements/api-v2/hubs/crm/accounts?pageSize=1&nextPage=eyJsaW1pdCI6MSwicGFnZVNpemUiOjEsInBhZ2UiOjJ9

Note that a next page token is returned regardless if there is data on the next page.