The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Querying the campaign collection

Occasional Contributor

Querying the campaign collection

Is it possible to query campaign collection to retrieve only campaigns in some period?

For example (pseudo code):{user-name}/campaigns?date-from=’2012-01-01’&date-to=’2012-06-01’

or the only way is to retrieve all campaigns (handling rel="next" if we have more than 50 campaigns) and then locally filter the collection?


My final intention is to retrieve bounced mail addresses (contacts) in specified period.


Thanks in advance


Re: Querying the campaign collection



I see what you mean.  Unfortunately there isn't a way to get a list of campaigns sent in a given time period.  We are working on version 2 of our API, and I will pass on the suggestion for that feature.


You're correct, you would have to work through the pages of email campaigns and process it on your side to get the bounces in a given time period.


Best Regards,

Shannon W.

API Support Specialist

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More