# Search-After Pagination

**URL:** <https://connective.celigo.com/t/search-after-pagination/461>\
**Category:** Integrator.io\
**Tags:** pagination\
**Created:** [May 8, 2023, 12:20pm UTC](https://connective.celigo.com/t/search-after-pagination/461 "2023-05-08T12:20:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashkumar](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/yashkumar/32/9271_2.png) [@yashkumar](https://connective.celigo.com/u/yashkumar)\
**Post date:** [May 8, 2023, 12:20pm UTC](https://connective.celigo.com/t/search-after-pagination/461/1 "2023-05-08T12:20:23Z")

</div>

Hello All,

Has somebody previously used Search-After pagination method in a custom flow?

If yes could you please provide a little insight of the setup.

Thanks

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [May 10, 2023, 12:14am UTC](https://connective.celigo.com/t/search-after-pagination/461/2 "2023-05-10T00:14:57Z")

</div>

@yashkumar is there a specific endpoint with documentation that you're thinking about?

---

<div class="post-metadata">

**Author:** ![yashkumar](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/yashkumar/32/9271_2.png) [@yashkumar](https://connective.celigo.com/u/yashkumar)\
**Post date:** [May 10, 2023, 9:34am UTC](https://connective.celigo.com/t/search-after-pagination/461/3 "2023-05-10T09:34:32Z")

</div>

@tylerlamparter Yes, [Here's](https://api.akeneo.com/documentation/pagination.html#the-search-after-method) the link to the endpoint Documentation.

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [May 10, 2023, 2:31pm UTC](https://connective.celigo.com/t/search-after-pagination/461/4 "2023-05-10T14:31:50Z")

</div>

@yashkumar it looks like you would just use the "next page url" option in IO. From the docs, they respond with a next url link that has the search\_after parameter already filled for you.

 ![5301043caa20740200000001-5bdf8c45682b425d8b4f7e3871cc1286.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/e/ef2cdbfb5f55d651f4b67260ed0ec7b2f0e69912.png)

 ![5301043caa20740200000001-976fee7fabd548828690e97729052cff.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/6a1336479f8d833a3dff71ac721a88a5b41f1502.png)

---

<div class="post-metadata">

**Author:** ![yashkumar](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/yashkumar/32/9271_2.png) [@yashkumar](https://connective.celigo.com/u/yashkumar)\
**Post date:** [May 22, 2023, 11:57am UTC](https://connective.celigo.com/t/search-after-pagination/461/5 "2023-05-22T11:57:38Z")

</div>

@tylerlamparter This configuration is something which we are already using .

 ![5301043caa20740200000001-6d9d1ccaf9f846c8a7f7818ce341a8c7.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/a/aa6d0f01d3cc967e93b0a1e7536aae8244238ec6.png)

Well here's the confusing part, is the "Search after pagination" same as "Next page URL"?

Current configuration i.e "Next page URL" works fine for smaller number of records.

But the moment we try to perform the bulk import it throws the error in the screengrab below.

![5301043caa20740200000001-bd876ba0707347a789247a9566b0828c.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/5/50df56780925bb0e175a9d2b463243e64e426eed.png)

This is what lead to the conflict that is Search after is different from "Next Page url"!

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [May 22, 2023, 5:07pm UTC](https://connective.celigo.com/t/search-after-pagination/461/6 "2023-05-22T17:07:54Z")

</div>

@yashkumar what does the rest of your setup look like? What do you have in the relative url section of the export setup?

Everyone's terms for paging vary, but in this case, we use next page url because they are returning you a full url to use to grab the next page. Within that url, it specifies the page mechanism. Based on their docs, it says to use the \_links to get the next page as you can't explicitly come up with the query parameter on your own.

 ![5301043caa20740200000001-c5ab98bce6dc45d2a5a79a9c663606f1.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/7/72ed0c7f5ca7c451a9e71f7e077c420158379787.png)

---

<div class="post-metadata">

**Author:** ![yashkumar](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/yashkumar/32/9271_2.png) [@yashkumar](https://connective.celigo.com/u/yashkumar)\
**Post date:** [May 24, 2023, 11:28am UTC](https://connective.celigo.com/t/search-after-pagination/461/7 "2023-05-24T11:28:55Z")

</div>

@tylerlamparter Here's the complete export setup:-

GET- Call

api/rest/v1/product-models?search={"updated":[{"operator":"\>","value": "{{lastExportDateTime}}"}]}

 ![5301043caa20740200000001-429ae433bc5d47249b88065e74cef776.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/e/e1b8198aba769ef68e6e20a133f43f3fb0d71cd8.png)

 ![5301043caa20740200000001-ebb4011645554742824ed9a67a207fb0.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/f/f72ead72e68061260ea837072552ca0b8873e5d2.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [May 24, 2023, 2:24pm UTC](https://connective.celigo.com/t/search-after-pagination/461/8 "2023-05-24T14:24:32Z")

</div>

@yashkumar this is interesting because the next link url we're using clearly has paging method as search after. Can you debug that export step and review the requests being sent out?

 ![5301043caa20740200000001-bc93c36cf25245bbaa68b2a9b1d4a7cd.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/a/a06f99b220f9075a9455d51be99b12cb3560711a.png)
