We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

How to retrieve user list from a campaign?

elango
Regular Participant

How to retrieve user list from a campaign?

Hello,


          We have a requirement where we need the list of contacts under a particular campaign. For example today if we send a email campaign to 1000 users and just by providing the campaign id I should get the list of contact ids. Is it possible to get these records? Please do let me know the details.


 


Regards,


Elango

6 REPLIES 6
DanHoran
Employee

It is possible to get the List Id's that the email was sent to however it is not possible to get a list of the specific contacts directly from the email details.


 


While it is possible to drill down and retrieve the contacts based on the list id, it is not 100% accurate as the return data will be the current list of contacts on that list and not necessarily the contacts that were on the list at the time the email was sent.

Dan H

Support Engineer, Constant Contact

mcheatham
Participant

So the only way for me to see the list of users who got the email campaign and their corresponding actions is to use the website? Is there any plans to add this functionality to the api?


 


Thanks,


Marc

DaveBerard
Moderator

You can get the list of sends for any given campaign by accessing the events collection for that campaign.  Here is a sample of how the request would look:


 


https://api.constantcontact.com/ws/customers/{username}/campaigns/{campaign-id}/events/sends


 


Please note, this is a pagenated return list of 50 contacts at a time, you would have to loop through to get the full list of contacts.  You can find more information on the Events collection for campaigns here: http://developer.constantcontact.com/doc/campaignEvents.


 


Currently there is no way to export the sends list to a CSV file through the API as there is in the UI.  We are looking to add this functionality in the future.  So far, the demand has been low though.  If you are looking for some sort of Export feature through our Bulk Activities API, please let me know and I'll pass that on to our Product Strategy group.

Dave Berard
Senior Product Manager, Constant Contact

How can i capture the send out contacts from the constant contact. Is there any sample to to do this?

 

Thanks,

Hey,

 

As Dave mentioned above you can do a GET to your events/sends collection to gather your information.  You can read more about it here.

Ryan Davis
Quality Engineer
dansully
Participant

This would be useful for me too.


Every month I give our sales team a report on their customers' interactions with our monthly newsletter. If I could easily pull a list of contacts, the links they clicked, and their opt-out or fwd activities via csv file, that would be great.


 


thanks,


Dan Sullivan


Marketing Coordinator, Norlight, Inc.

Developer Portal

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

Visit Page