Hi guys, i’m to get a solution for my problem in n8n, so let’s go, when i use an API to search some leads, they return to me a couple of leads and i need to cadence this leads to don’t break up my next request on n8n, so i start an execution with one item and after the search i have 10000 itens on my workflow, so in my next action how can i cadence item by item and config a couple of seconds between than
Hi Leonardo! For processing 10,000 leads without overwhelming your next API requests, you’ll want to use n8n’s batching capabilities. The best approach is to use the **“Loop Over Items”** node right after your lead search - set the batch size to a manageable number (like 10-50 items) and configure a delay between batches using the “Wait” node inside the loop.
Here’s the setup:
• Add a “Loop Over Items” node after your API search
• Set batch size to control how many leads process at once
• Inside the loop, add your processing nodes followed by a “Wait” node (set to a few seconds delay)
• This will process your leads in controlled batches with pauses between each batch
This approach prevents rate limiting and keeps your workflow stable while processing large datasets. You can find more details about batching strategies in the [n8npro.in](n8n Batching: Optimize Workflows for Big Data) guide and [n8n’s official documentation](Looping | n8n Docs) on looping.