Hey guys I have an n8n workflow that pulls thousands of records from an external API using pagination.
The problem is that the dataset can change while the workflow is running. New records may be inserted, and existing records can be updated or deleted between page requests.
For example:
GET /customers?page=1
GET /customers?page=2
GET /customers?page=3
…
With offset-based pagination, I’m worried that records could be skipped or processed twice when the dataset changes between requests.
Would you use cursor-based pagination instead?
How would you handle APIs that only support page + limit and don’t provide a cursor or snapshot token?
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: