Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

How to download campaigns in a batch using API?

SOLVED
Go to solution
SilviaG20
Marketing Expert
0 Votes
Hi there!
 
I want to know the best time for my customers to send emails. Is there a way to download my past campaigns in a batch, especially the open-time data as shown in the picture below? Can I use API to do it? 
 
CC open time.png
 
Any help will appreciated!
 
Best,
Sara
1 ACCEPTED SOLUTION
John__B
Employee

Hello Sara,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

It looks like we've already followed up with you directly via email, but here is the information provided for visibility on the forum:

 

It is definitely possible to obtain the unique opens reporting for your campaigns through our API. I would note that on the website and through the API, the reporting for unique opens has to be pulled per campaign but if you want to build an integration to automate that part of the process, here’s how it could be done via API:

 

In order to obtain the unique opens reporting for your campaigns that includes the contact details for each individual recipient, you would first need to get the campaign ids for all of your campaigns. You can do this with the Get a collection of Email Campaigns endpoint. I would note that this request pulls data for all campaigns, including drafts. Since you’ll only need the sent campaigns, you’ll want to pull the campaign ids for the campaigns that appear with a status of “Done”.

 

GET a Collection of Email Campaigns:

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

 

Once you have your collection of campaign IDs, you can use the Get Details About a Single Email Campaign endpoint to obtain the campaign activity ID for each campaign.

 

GET Details About a Single Email Campaign:

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

 

Once you have the campaign activity ID, you can use it to get the unique opens report for each campaign, which will provide the contact details for each recipient who opened your campaigns.

 

GET an Email Unique Opens Report: 

https://developer.constantcontact.com/api_reference/index.html#!/Email_Reporting/getUniqueOpens

 

 Alternatively, if you don’t need to pull the contact details for each individual recipient of a campaign, you can use the Get an Email Campaigns Summary Report endpoint which provides an overview for the statistics of up to 500 campaigns including unique sends, opens, clicks, forwards and opt outs.

 

GET an Email Campaigns Summary Report:

https://developer.constantcontact.com/api_reference/index.html#!/Email_Reporting/getAllBulkEmailCamp...

 

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

Regards,


John B.
API Support Specialist
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.

View solution in original post

4 REPLIES 4
John__B
Employee

Hello Sara,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

It looks like we've already followed up with you directly via email, but here is the information provided for visibility on the forum:

 

It is definitely possible to obtain the unique opens reporting for your campaigns through our API. I would note that on the website and through the API, the reporting for unique opens has to be pulled per campaign but if you want to build an integration to automate that part of the process, here’s how it could be done via API:

 

In order to obtain the unique opens reporting for your campaigns that includes the contact details for each individual recipient, you would first need to get the campaign ids for all of your campaigns. You can do this with the Get a collection of Email Campaigns endpoint. I would note that this request pulls data for all campaigns, including drafts. Since you’ll only need the sent campaigns, you’ll want to pull the campaign ids for the campaigns that appear with a status of “Done”.

 

GET a Collection of Email Campaigns:

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

 

Once you have your collection of campaign IDs, you can use the Get Details About a Single Email Campaign endpoint to obtain the campaign activity ID for each campaign.

 

GET Details About a Single Email Campaign:

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

 

Once you have the campaign activity ID, you can use it to get the unique opens report for each campaign, which will provide the contact details for each recipient who opened your campaigns.

 

GET an Email Unique Opens Report: 

https://developer.constantcontact.com/api_reference/index.html#!/Email_Reporting/getUniqueOpens

 

 Alternatively, if you don’t need to pull the contact details for each individual recipient of a campaign, you can use the Get an Email Campaigns Summary Report endpoint which provides an overview for the statistics of up to 500 campaigns including unique sends, opens, clicks, forwards and opt outs.

 

GET an Email Campaigns Summary Report:

https://developer.constantcontact.com/api_reference/index.html#!/Email_Reporting/getAllBulkEmailCamp...

 

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

Regards,


John B.
API Support Specialist
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.
SilviaG20
Marketing Expert
0 Votes
Hi John,
 
Thanks so much for your help and prompt reply! Our developers will check the information you’ve provided. Thank you again! :smileyface:
 
Best,
Sara
ErinR842
Rookie
0 Votes

To download campaigns to a pdf (to post to website archives) requires programming?!  Is there an easier way that CC has set up to download campaigns as pdfs to a folder?

Courtney_E
Moderator
0 Votes

Hello ErinR842,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

The process listed above is just for those who are building an integration with Constant Contact and prefer to do it programmatically.

 

To download your campaigns as a PDF within the website interface, you can follow the steps in the following article:

 

Download or print an email

http://knowledgebase.constantcontact.com/articles/KnowledgeBase/6130-download-an-email-campaign

 

Alternately, once each email is sent, we host a permanent URL for each sent email as a web page which you can link to if you'd prefer:

 

The permanent URL for a campaign

http://knowledgebase.constantcontact.com/articles/KnowledgeBase/6128-email-campaign-url

 

If you would like assistance with this process, please reach out to Constant Contact's  Support Team at 866-289-2101.

 

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