# HTTP Pagination with json body parameters

**URL:** <https://community.n8n.io/t/http-pagination-with-json-body-parameters/78855>\
**Category:** Questions\
**Tags:** node, workflow-building, http-request, pagination, ai-kapa\
**Created:** [February 17, 2025, 3:30pm UTC](https://community.n8n.io/t/http-pagination-with-json-body-parameters/78855 "2025-02-17T15:30:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadner\_Joseph](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/shadner_joseph/32/28084_2.png) [@Shadner\_Joseph](https://community.n8n.io/u/Shadner_Joseph)\
**Post date:** [February 17, 2025, 3:30pm UTC](https://community.n8n.io/t/http-pagination-with-json-body-parameters/78855/1 "2025-02-17T15:30:02Z")

</div>

## Describe the problem/error/question

I’m having issues successfully paginating as it only returns the first result.

## What is the error message (if any)?

## Please share your workflow

returned:  
[  
{  
“body”: {  
“data”: [  
{  
“id”: “67b0611da29431f27cb11843”,  
“thumbnail”: null,  
“sku”: “VORG9964495”,  
“attributes”: {  
“brand\_name”: “WD-40”,  
“cost\_per\_item”: 7.14,  
“inventory\_management”: “shopify”,  
“model\_number”: “120107”,  
“pro\_benchmark\_retail”: 8.39,  
“shelf\_pack”: “FALSE”,  
“shelf\_pack\_quantity”: “1”,  
“suggested\_retail”: 9.65,  
“variant\_inventory\_policy”: “deny”,  
“variant\_weight\_unit”: “lb”,  
“warehousename”: “Orgill Ecommerce”,  
“weight”: 6.04  
},  
“num\_variations”: 0,  
“product\_family\_id”: null,  
“product\_family\_model\_id”: null,  
“modified”: “2025-02-17T13:27:10.298000+00:00”,  
“modified\_user\_audit”: {  
“type”: “SYSTEM”,  
“user\_email”: “System”,  
“user\_name”: “System”  
},  
“created\_user\_audit”: {  
“type”: “SYSTEM”,  
“user\_email”: “System”,  
“user\_name”: “System”  
},  
“overwritten\_attributes”: ,  
“categories”:   
}  
],  
“pagination”: {  
“count”: 172864,  
“order”: null,  
“page”: 1,  
“page\_size”: 1,  
“total\_count”: 288821  
}  
},  
“headers”: {  
“date”: “Mon, 17 Feb 2025 15:27:27 GMT”,  
“content-type”: “application/json”,  
“content-length”: “821”,  
“connection”: “close”,  
“server”: “uvicorn”,  
“x-request-id”: “9a5cc762-f925-45f7-a4e5-38b39e04d7e6”,  
“access-control-allow-origin”: “_"  
},  
“statusCode”: 200,  
“statusMessage”: “OK”  
},  
{  
“body”: {  
“data”: [  
{  
“id”: “67b0611da29431f27cb11843”,  
“thumbnail”: null,  
“sku”: “VORG9964495”,  
“attributes”: {  
“brand\_name”: “WD-40”,  
“cost\_per\_item”: 7.14,  
“inventory\_management”: “shopify”,  
“model\_number”: “120107”,  
“pro\_benchmark\_retail”: 8.39,  
“shelf\_pack”: “FALSE”,  
“shelf\_pack\_quantity”: “1”,  
“suggested\_retail”: 9.65,  
“variant\_inventory\_policy”: “deny”,  
“variant\_weight\_unit”: “lb”,  
“warehousename”: “Orgill Ecommerce”,  
“weight”: 6.04  
},  
“num\_variations”: 0,  
“product\_family\_id”: null,  
“product\_family\_model\_id”: null,  
“modified”: “2025-02-17T13:27:10.298000+00:00”,  
“modified\_user\_audit”: {  
“type”: “SYSTEM”,  
“user\_email”: “System”,  
“user\_name”: “System”  
},  
“created\_user\_audit”: {  
“type”: “SYSTEM”,  
“user\_email”: “System”,  
“user\_name”: “System”  
},  
“overwritten\_attributes”: [],  
“categories”: []  
}  
],  
“pagination”: {  
“count”: 172864,  
“order”: null,  
“page”: 1,  
“page\_size”: 1,  
“total\_count”: 288821  
}  
},  
“headers”: {  
“date”: “Mon, 17 Feb 2025 15:27:28 GMT”,  
“content-type”: “application/json”,  
“content-length”: “821”,  
“connection”: “close”,  
“server”: “uvicorn”,  
“x-request-id”: “49457817-4997-452b-b91f-e18ad65d693f”,  
“access-control-allow-origin”: "_”  
},  
“statusCode”: 200,  
“statusMessage”: “OK”  
}  
]

## Information on your n8n setup

- \*\*n8n version:_1.78.0_
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- \*\*Running n8n via (Docker, npm, n8n cloud, desktop app):_Cloud_
- \*\*Operating system:_Windows_

---

<div class="post-metadata">

**Author:** ![solomon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/solomon/32/43567_2.png) [@solomon](https://community.n8n.io/u/solomon)\
**Post date:** [February 24, 2025, 7:29pm UTC](https://community.n8n.io/t/http-pagination-with-json-body-parameters/78855/3 "2025-02-24T19:29:27Z")

</div>

You have to use `$response` to get data from the output.  
Otherwise you end up referencing previous input data.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/5/3508c9ae42d6ad76c6bfef519606433758c37c58.png)

See **[documentation here](https://docs.n8n.io/code/cookbook/http-node/pagination/#use-a-url-from-the-response-to-get-the-next-page-using-response)**

If my reply answers your question, please remember to mark it as the solution.

---

<div class="post-metadata">

**Author:** ![solomon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/solomon/32/43567_2.png) [@solomon](https://community.n8n.io/u/solomon)\
**Post date:** [February 28, 2025, 10:31pm UTC](https://community.n8n.io/t/http-pagination-with-json-body-parameters/78855/4 "2025-02-28T22:31:22Z")

</div>

Hey @Shadner_Joseph were you able to solve this?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 29, 2025, 10:31pm UTC](https://community.n8n.io/t/http-pagination-with-json-body-parameters/78855/5 "2025-05-29T22:31:40Z")

</div>

Closed on May 29, 2025, 10:31pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
