# Cursor based pagination

Sometimes APIs use something that looks weird for their pagination. Each call may return a cursor key to use to get the next page. Something like *"*`nextPageCursor": "<cursor_key>"` or ID as the next cursor (Stripe API) `"next cursor" : data['data'][data['data'].length - 1].id`

For instance, **Stripe** sends back a URL as well as a cursor (object ID) to use to get the next page. Their docs show this:

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ08RFAKZvFADEiXKFy%2F-MEN7lusGJUPDvMe9NsW%2F-MEPWCcGwF8nrcBM8x5f%2Fimage.png?alt=media\&token=6204ecaa-2a8e-48be-b752-d556e887a3b6)

You can send this in two ways. Either use the cursor or use the full URL. If you use the cursor, you need to send it in a parameter.

For instance, Stripe API in Jet API Builder that would be set up with these settings:

```javascript
https://api.stripe.com/v1/customers?limit={{paging.limit}}&starting_after={{paging.cursor_next}}&ending_before={{paging.cursor_prev}}
```

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F3oRliaDRndexVGrrJgNX%2Fimage.png?alt=media&#x26;token=e8914d66-ee0f-4e57-bab4-c65a4cac1c0e" alt=""><figcaption></figcaption></figure>
