API provider errors

When processing a large number of requests, my workflow starts receiving rate-limit errors from the API provider. What’s the best way to handle this within 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:

@Victory1 the built-in way is the HTTP Request nodes Batching option, theres a setup for exactly this. on the node hit Add Option > Batching and set Items per Batch and Batch Interval (ms) to pace the calls, eg if the api allows one request a second set items per batch to 1 and batch interval to 1000, that spaces them out so you stop tripping the limit (its basically Loop Over Items + Wait baked into the one node). then turn on Retry On Fail in the node settings with a wait between tries, so the odd 429 that still sneaks through just retries after a pause instead of failing the whole run. whats the providers actual limit, requests per second or per minute? i can give you the exact numbers to plug in.

Implement delays, batching, or retry logic to reduce the number of requests sent within a short period.

Most APIs document their rate limits, so designing the workflow around those limits can prevent failures.