# How can you use link header paging with parameters?

**URL:** <https://matillioncommunity.discourse.group/t/how-can-you-use-link-header-paging-with-parameters/1345>\
**Category:** Matillion ETL\
**Created:** [May 15, 2021, 3:47pm UTC](https://matillioncommunity.discourse.group/t/how-can-you-use-link-header-paging-with-parameters/1345 "2021-05-15T15:47:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JS217889](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@JS217889](https://matillioncommunity.discourse.group/u/JS217889)\
**Post date:** [May 15, 2021, 3:47pm UTC](https://matillioncommunity.discourse.group/t/how-can-you-use-link-header-paging-with-parameters/1345/1 "2021-05-15T15:47:56Z")

</div>

I'm having an issue when I pass parameters to an API that requires link paging. I can sample the data and retrieve data up to the page limit. When I run and it goes over the page limit I get a bad request error. If I remove parameters then I have no problem getting data from all the pages.

&nbsp;

I am pretty sure what is happening is Matillion is adding the parameters onto the link, however this API does not accept those. I have no idea how to ensure the RSD includes the parameters on the initial request, but not on requests from the link. Any guidance?

---

<div class="post-metadata">

**Author:** ![deBaris](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@deBaris](https://matillioncommunity.discourse.group/u/deBaris)\
**Post date:** [May 17, 2021, 8:42am UTC](https://matillioncommunity.discourse.group/t/how-can-you-use-link-header-paging-with-parameters/1345/2 "2021-05-17T08:42:41Z")

</div>

Hi JS217889,

&nbsp;

I think Matillion have implemented Link Header paging in such a way that it demands a page parameter too. In the API Query and API Extract dialogs it's called a Page Size Parameter and a Page Size. You can't get through the dialog without supplying a value.

&nbsp;

So every time the paging is invoked, the address that gets called always has an extra URL query parameter on the end. That's maybe the problem you are hitting.

&nbsp;

If you're using an API Query [this document](https://documentation.matillion.com/docs/6753241#link-header-pagination) might help you hand-code your own. There is a section on Link Header Pagination, and it doesn't force you to add a URL parameter.

&nbsp;

BR

---

<div class="post-metadata">

**Author:** ![JS217889](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@JS217889](https://matillioncommunity.discourse.group/u/JS217889)\
**Post date:** [May 17, 2021, 6:31pm UTC](https://matillioncommunity.discourse.group/t/how-can-you-use-link-header-paging-with-parameters/1345/3 "2021-05-17T18:31:33Z")

</div>

Thanks for the input! I was able to get around this through using a variable that wasnt a URL parameter. This solved my issue so the parameter gets added in the initial call, but not in the subsequent link calls.

&nbsp;

&nbsp;
