Calling HTTP APIs with different offsets / limits

Hi, we need to call APIs via HTTP module where in the API would need to be called with different offset and limits until an empty response is received. How do we do that?

(it would be a GET API call to get a list of contacts from a CRM. Sometimes the list might be very long and the API would not support more than 50 contacts per response.

So, suppose there are 130 contacts and the max limit is 50.

In that case, the 1st Api call would have to specify offset as 0; 2nd API call should specify offset as 50 and 3rd one should specify offset as 100. )

Hey @Saandhy_Ganeriwala!

Here’s a workflow that you can refer to: https://n8n.io/workflows/1169