Skip to main content

Hi everyone,

I'm trying to set up a weekly Zap that pulls all lead data from SalesRabbit via a Webhook GET request and pastes it into a Google Sheet. However, I'm running into an issue where the Zap only retrieves the first few thousand entries instead of the full dataset.

I understand that SalesRabbit paginates its API responses, so I’ve tried using Looping by Zapier to iterate through the pages. Unfortunately, I haven't been able to make it work correctly—it still stops after a certain number of rows.

Here's what I’ve tried so far:

  1. Setting up a loop with page numbers in the Webhook URL (e.g., https://api.salesrabbit.com/leads?page={{loop_value}}).

  2. Running the loop through a range of numbers (1-10, for example).

  3. Using Code by Zapier (Python) to try and fetch multiple pages dynamically.

I’ve attached a screenshot of my current setup for reference.

👉 Has anyone successfully handled pagination with SalesRabbit in Zapier?
👉 How can I ensure the Zap continues fetching data until all pages are retrieved?

Any advice would be greatly appreciated! Thanks in advance.

 

 

Hi ​@SharkDonuts 

A different approach would be to use a Code step to make the API request and handle the iteration of the pagination.

Code help: https://zapier.com/apps/code/integrations#help

ChatGPT can generate that code for you.

 

Zap steps

  1. Trigger: Schedule - Weekly
  2. Action: Code
  3. Action: GSheets - Create Rows