contact_reports for all contacts since a date

0 Votes

Is there a way to get all of the activity for all contacts since a date using the API? For example, say I have 1,000 contacts on a list. I want to send an email and know how many opened, clicked, unsubscribed, bounced, etc.


It looks like I could get all 1,000 people and get their activity one at a time. I would prefer to get the activity for all contacts or "all contacts in a list" instead of calling them one at a time.


Is this possible?




0 Votes

Hello RandyR8633,


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.


Currently, there are not any bulk activities available to accomplish what you are wanting in a more simplified manner. However, based on how you’d prefer to format your application (depending on the number of contacts/campaigns you wish to compare), here are two different ways you could gather the desired data:


Option 1:

  1. Get /contacts ( narrow by “lists” parameter if desired).
    GET Contacts Collection:!/Contacts/getContacts
  2. Get /reports/contact_reports/{contact_id}/activity_details for each contact, including all desired tracking_activities_list parameters desired.
    GET Contact Activity Details:!/Contacts_Reporting/getContactTra...
  3. Append and sort data within your application's code as desired.


Option 2:

  1. Get /emails (with parameter set for “after_date” if desired).
    GET a Collection of Email Campaigns:!/Email_Campaigns/retrieveEmailCam...
  2. Get /emails/{campaign_id} to get the campaign_activity_id(s) for each campaign from the previous results.
    GET Details About a Single Email Campaign:!/Email_Campaigns/retrieveEmailCampai...
  3. Make calls to each specific “email_reports” activity desired for each specified “campaign_activity_id”.
    Email Reporting Overview:
  4. Append and sort data within your application's code as desired.


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


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.
Developer Portal

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

Visit Page


API Updates

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

Sign Up