Rate Limit API Calls with the Wait Node in n8n
Many APIs enforce rate limits to prevent overload. If you send too many requests too quickly, you will get errors like "429 Too Many Requests." This is especially common when processing batches of data.
The Wait node pauses workflow execution for a specified duration before continuing. Combined with the Loop Over Items node, you can process data in batches with delays between each batch to stay within API rate limits.
What you'll practice:
- Using the Wait node to add delays
- Processing items in batches with Loop Over Items
- Building rate-limited API workflows
Your Task
- 1Copy the exercise below
- 2Paste into your n8n editor (Ctrl+V)
- 3Solve it — use hints if you get stuck
- 4Check the solution when done
Some of your customers filled out a survey about your product. They provided you with their user id, first names, last names and email addresses. Your task is to verify that these users exist in your CRM and enrich their profiles with existing data.
To avoid overloading your CRM, you have to implement a wait node, so that the individual requests to check the database don't come all at once. A 2-second delay between each request should be enough.
- You are provided with an Edit Fields node that holds the form data. Build the workflow from here.
- Split the users array into individual items to get ready for the loop
- Set the loop to process batches of 1 user per iteration
- For each batch, make an HTTP request to fetch individual user details. Use the user id in the URL to fetch the correct user.
- Wait 2 seconds before processing the next batch
Expected output: 6 items in the "Done" branch of the Loop Over Items node, each containing extensive information about the 6 user IDs you requested from the API.
Get the exercise workflow
Create a free account to copy exercises into your n8n editor.