How to handle loops in n8n

What’s the best way to handle loops in n8n

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:

The Split in Batches node is your friend . It let’s you process items one batch at a time. You can loop over an array,make API calls for each item and even control the batch size to avoid rate limits

1 Like