Https request - not pulling all user ids

I am using https request to pull all user ids in ActiveCampaign. Metal total says there are 159 but the last record I have from the action is 119. And I could not proceed with the next steps as the user id I am mapping to ActiveCampaign (create deal node) is not being captured by the https request.

I tried using Loop over items to run it per batch but I get the same results.

I do not see any error indicated in the node.

We have the latest version n8n Version 1.99.1

I can’t paste the node here as it seems unsafe to show API url and user information. If there is anyone who can give me possible reasons and fixes, much appreciated.

Thank you!

ActiveCampaign’s API paginates large responses. That means it sends data in multiple pages, not all at once. By default, it may only return 100 or fewer users per request, even if it says there are 159 total.

So if your HTTPS node is not handling pagination, it will stop at the first 100–120 users, and skip the rest.

Enable Pagination in Your HTTPS Node

  1. Look at the ActiveCampaign API docs — they often include a limit and offset (or page) parameter.
  2. In n8n, use a Loop (or while loop in a Function or Code node) to:
  • Call the API repeatedly, increasing the offset each time.
  • Combine all results into one list.

Example:
GET https://your-account.api-us1.com/api/3/contacts?limit=100&offset=0
GET https://your-account.api-us1.com/api/3/contacts?limit=100&offset=100

You can loop until meta.total = total records collected.

Hope this helps, cheers!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.