# API Query Profile - Paging in Post Body

**URL:** <https://matillioncommunity.discourse.group/t/api-query-profile-paging-in-post-body/1635>\
**Category:** Matillion ETL\
**Created:** [January 28, 2022, 5:26pm UTC](https://matillioncommunity.discourse.group/t/api-query-profile-paging-in-post-body/1635 "2022-01-28T17:26:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayliwk1607952686371](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@mayliwk1607952686371](https://matillioncommunity.discourse.group/u/mayliwk1607952686371)\
**Post date:** [January 28, 2022, 5:26pm UTC](https://matillioncommunity.discourse.group/t/api-query-profile-paging-in-post-body/1635/1 "2022-01-28T17:26:49Z")

</div>

I have an API Query that I created that has the paging details in the post body. Is there a way for me to use the built in paging tools in Matillion for this call.

&nbsp;

This is the body of the POST. I wasnt sure if we could plug in Parameters to use with this or not.

&nbsp;

The only info in the response is a totalHits piece that tells me how many records there are but nothing else for paging.

 ![0694G00000IKt0FQAT_0D54G00008CktaHSAR](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/77ca57a1da130d6742a3c2b7bf0ebb9a7c8a2b8e.png)

Thanks for the help

---

<div class="post-metadata">

**Author:** ![mayliwk1607952686371](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@mayliwk1607952686371](https://matillioncommunity.discourse.group/u/mayliwk1607952686371)\
**Post date:** [February 8, 2022, 2:54pm UTC](https://matillioncommunity.discourse.group/t/api-query-profile-paging-in-post-body/1635/2 "2022-02-08T14:54:17Z")

</div>

I wasnt able to create a new variable in the RSD file but I was able to use some logic to use the current variable thats automatically created by the paging functions in the wizard.

knowing that the rows@next variable would be a place holder for the record count and that it would increment by 50 each time, I could divide that by 50 and add 1 to it to get my current page.

 ![0694G00000J63ifQAB_0D74G000007kb4USAQ](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/4e606bd58e44a06a937baea6aea45dc4d6e9439e.png)
