Handle pagination in HTTP requests
This example workflow demonstrates how to handle pagination. This example assumes that the API you are making the request to has pagination, and returns a cu...
🔌 Nodes & Integrations Used (1)
📖 Implementation & Setup Guide
This example workflow demonstrates how to handle pagination.
This example assumes that the API you are making the request to has pagination, and returns a cursor (something that points to the next page).
This example workflow makes a request to the HubSpot API to fetch contacts. You will have to modify the parameters based on your API.

**Config URL node:** This node sets the URL that the HTTP Request node calls.
**HTTP Request node:** This node makes the API call and returns the data from the API. Based on your API, you will have to modify the parameters of the node.
**NoOp node and Wait node:** These nodes help me avoiding any rate limits. If you're API has rate limits, make sure you configure the correct time in the Wait node.
**Check if pagination:** This IF node checks if the API returns any cursor. If the API doesn't return any cursor, it means that there is no data to be fetched, and the node returns false. If the API returns a cursor, it means that there is still some data that needs to be fetched. In this case, the node returns true.
**Set next URL:** This Set node is used to set the URL. In the next cycle, the HTTP Request node makes a call to this URL.
**Combine all data:** This node combines all the data that gets returned by the API calls from the HTTP Request node.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Handle pagination in HTTP requests.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related General Automation Workflows
View All in General Automation →Generate Application Copy
Production-ready n8n automation template for Generate Application Copy built by AhiXLight. Seamlessly connects Execute Workflow Trigger, OpenAI with 4 configured nodes.
2-way sync Google Contacts and Notion
Sync your Google Contacts with your Notion database. You can filter contacts by label or sync all contacts. All contact information is kept in sync between G...
2D Image to 3D Model Automation
Production-ready n8n automation template for 2D Image to 3D Model Automation built by AhiXLight. Seamlessly connects HTTP Request, Google Sheets, Google Drive with 17 configured nodes.
2 way sync assignments completion between Canvas LMS and Notion
Syncs assignments and completion states to and fro between Canvas LMS and a Notion database. Automatically triggers every 2 hours during the schoolday by def...