Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

Total count of email campaigns records By API request

user6030290
Rookie
0 Votes
How can I get the count of records for email campaigns by API request? I'm doing that lookup in order to know the count of pages is used to display all email campaigns.
1 REPLY 1
Courtney_E
Moderator
0 Votes

Hello user6030290,

 

When using the "GET a Collection of Email Campaigns" endpoint, there is not a way to predetermine the amount of pages that will be returned via API. However, to cut down on required calls, you can make sure you are setting the "limit" parameter to the highest available increment of 500. If the "limit" parameter is not specified, the default amount of campaigns returned is only 50.

 

GET a Collection of Email Campaigns

https://v3.developer.constantcontact.com/api_reference/index.html#!/Email_Campaigns/retrieveEmailCam...

 

Please have a look and let us know if you have any other questions!

 


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up