Ingest paginated API data into Postgres with retries and rate limiting
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Postgres.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Code: runs custom JavaScript code
- HTTP Request: calls an HTTP API
- Code: runs custom JavaScript code
- If: checks a condition and branches into true / false
- Postgres: run a query
- Code: runs custom JavaScript code
- If: checks a condition and branches into true / false
- Wait: waits 1 seconds
- Code: runs custom JavaScript code
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Postgres
n8n-nodes-base.postgres - Wait
n8n-nodes-base.wait - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow manually ingests data from any paginated HTTP API, normalizes each record, and upserts it into a PostgreSQL table, looping through pages with built-in retries and an optional wait between requests. How it works 1. Starts when you…