Is it possible to chunk a big list of leads into groups of 10 with apollo API?

Hi.
I am using Apollo api, and after getting the leads, I need to pass them through the enrichment API to get the emails.

I use the bulk enrich API call, which allows 10 leads at a time.
The initial API call to get the leads produces batches of 100.

How to split them and run them sequentially through the enrichment API in groups of 10?
Is it even possible?

TIA

Solved using this community post how-to-group-bundles-in-x-amount-of-bundles

Hmm, I think there’s a better way instead of using that complex filter shown in your linked example thread.

Simply use a “Set Variable” module with the slice built-in function…

This saves one operation per “chunk”, so if you need 100 chunks you’re saving 100 (or 200) operations, because now instead of an iterator-aggregator pair, you only need one (or even zero modules) required to extract a “chunk”, because you are doing it using a built-in function.

I have explained this further here: A Better Solution for "How to group bundles in X amount of bundles"

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

2 Likes

You are amazing, I can’t thank you enough!
Will save me hundreds of ops per run.
:pray:

1 Like