# Pagination not working

**URL:** <https://community.n8n.io/t/pagination-not-working/160315>\
**Category:** Help me Build my Workflow\
**Tags:** http-request, pagination, external-api\
**Created:** [August 1, 2025, 11:19am UTC](https://community.n8n.io/t/pagination-not-working/160315 "2025-08-01T11:19:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cosmin\_Zahariea](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/cosmin_zahariea/32/59691_2.png) [@Cosmin\_Zahariea](https://community.n8n.io/u/Cosmin_Zahariea)\
**Post date:** [August 1, 2025, 11:19am UTC](https://community.n8n.io/t/pagination-not-working/160315/1 "2025-08-01T11:19:49Z")

</div>

Hello,  
I’m trying to configure the pagination of a HTTP request.  
I have the domain of the api [https://riverzshop.ro](https://riverzshop.ro) and the endpoint ‘/api/v2/products&manufacturer\_id=x&start=10&limit10’  
Everytime I’m calling this api I will receive in the response in meta the next url which will be something like this: “/api/v2/products&manufacturer\_id=x&start=20&limit10”  
At this moment I tried every possibility but everytime my api will only be [https://riverzshop.ro](https://riverzshop.ro) when the pagination is done and is not getting the next path for pagination. Even if it’s the first run of the pagination I will only call ‘[https://riverzshop.ro](https://riverzshop.ro)’  
My workflow is:

At this moment I tried everything but nothing it’s working. I need to run through every page till the ‘next’ field is null and to add every data of the pages in a json.

Can you please help me do it?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/msquare_automation/32/75048_2.png) [@Msquare\_Automation](https://community.n8n.io/u/Msquare_Automation)\
**Post date:** [August 1, 2025, 12:19pm UTC](https://community.n8n.io/t/pagination-not-working/160315/2 "2025-08-01T12:19:09Z")

</div>

Hi Cosmin,

You can try this method in n8n:  
Set your initial API URL with a Set node, then use an HTTP Request node to fetch the first batch of data. Next, add a Loop node to control the pagination. After each request, use an IF or Function node to check if the response contains a `meta.next` field. If it does, the Loop node updates the URL to the next page and continues fetching data. This process repeats automatically until there are no more pages (when `meta.next` is null), ensuring all records are collected. This way, n8n handles the pagination for you, and you can aggregate all results once the loop completes.
