# How do you use the pages variable for a HTTP rest API endpoint when the {page} variable is two parts:

**URL:** <https://connective.celigo.com/t/how-do-you-use-the-pages-variable-for-a-http-rest-api-endpoint-when-the-page-variable-is-two-parts/1446>\
**Category:** Integrator.io\
**Tags:** pagination, http\
**Created:** [June 19, 2020, 5:19pm UTC](https://connective.celigo.com/t/how-do-you-use-the-pages-variable-for-a-http-rest-api-endpoint-when-the-page-variable-is-two-parts/1446 "2020-06-19T17:19:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![courtneyjordan](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@courtneyjordan](https://connective.celigo.com/u/courtneyjordan)\
**Post date:** [June 19, 2020, 5:19pm UTC](https://connective.celigo.com/t/how-do-you-use-the-pages-variable-for-a-http-rest-api-endpoint-when-the-page-variable-is-two-parts/1446/1 "2020-06-19T17:19:33Z")

</div>

From Brysonwf on reddit:

How do you use the pages variable for a HTTP rest API endpoint when the {page} variable is two parts:

/endpoint?begingPage=1&EndPage=2

---

<div class="post-metadata">

**Author:** ![courtneyjordan](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@courtneyjordan](https://connective.celigo.com/u/courtneyjordan)\
**Post date:** [June 19, 2020, 5:20pm UTC](https://connective.celigo.com/t/how-do-you-use-the-pages-variable-for-a-http-rest-api-endpoint-when-the-page-variable-is-two-parts/1446/2 "2020-06-19T17:20:01Z")

</div>

Hi [u/brysonwf](https://www.reddit.com/u/brysonwf/), can you tell us what application you are using? That would help us to be more precise. Are you using HTTP or REST connector? If you look in the Does this API support paging? section, you can set:  
Paging method: Next page URL  
Path: begingPage  
Last page status code: leave blank  
Lat pagepath: EndPage  
Last page values: 2

Please let us know if that worked?
