# Https request - not pulling all user ids

**URL:** <https://community.n8n.io/t/https-request-not-pulling-all-user-ids/140898>\
**Category:** Questions\
**Tags:** active-campaign\
**Created:** [June 30, 2025, 9:10am UTC](https://community.n8n.io/t/https-request-not-pulling-all-user-ids/140898 "2025-06-30T09:10:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcb](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@lcb](https://community.n8n.io/u/lcb)\
**Post date:** [June 30, 2025, 9:10am UTC](https://community.n8n.io/t/https-request-not-pulling-all-user-ids/140898/1 "2025-06-30T09:10:51Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Abrar\_Sami](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/abrar_sami/32/95868_2.png) [@Abrar\_Sami](https://community.n8n.io/u/Abrar_Sami)\
**Post date:** [June 30, 2025, 10:13am UTC](https://community.n8n.io/t/https-request-not-pulling-all-user-ids/140898/2 "2025-06-30T10:13:38Z")

</div>

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](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](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!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [July 7, 2025, 11:42am UTC](https://community.n8n.io/t/https-request-not-pulling-all-user-ids/140898/3 "2025-07-07T11:42:50Z")

</div>

Closed on July 7, 2025, 11:42am UTC

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