Campaigns API Pull not Pulling All Campaigns

Upon using an HTTP request to pull all campaigns, I am not receiving a full list of campaigns. In fact, the campaigns that are pulled through the ‘/campaigns’ extension do not seem to be sent at all when examined on the site. I receive about 20 responses from the campaign api pull, but there are about 400+ campaigns when using the ActiveCampaign interface.

The only way I can pull all of these campaigns is to run a for loop from 0 → MAX(ID) with a ‘campaigns/ids=’ tag at the end of the API call.

I am using V3 of the API.

Hi,
the API response is paginated, you can increase the page size up to 100 and go through all the pages until you get all the results

Check the pagination section of the documentation to see how to retrieve more results

https://developers.activecampaign.com/reference/pagination

Hope this can help you.