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 synchronize Contacts and Contact Lists

Occasional Participant

How to synchronize Contacts and Contact Lists



I need to synchronize both contacts and the lists that they're on with an external system.  Currently, I am using the API for searching contacts by Last Date Updated (Searching for Contacts by Last Updated Date (Synchronizing Contacts)) to determine what contacts changes since the last time I queried the system; then I can obtain the modified contacts' information and the lists they're on with the https://api.constantcontact.com/ws/customers/{username}/contacts/{contact-id} api call.  This is fine when the contacts themselves are updated, but I found out that if the contact list subscription changes, such as through contact list maintenance operations like Remove, Do Not Mail, etc., then my method doesn't work because the contacts themselves are not getting updated, so my searches for contacts by Last Date Updated do not yield any results.  Can you recommend alternative methods of keeping both contacts and their list subscriptions synchronized at all times, regardless of how each is managed?





Hi Daniel,


Unfortunately we don't record the changes that happen on a list membership basis.  We only store the current list members.  You could make a call to each list to see the list members (contacts) within each list.  You would do a GET to a URL like:




If there are more than 50 members in the list, you will receive a next link with the subsequent page of members.  You could also use our bulk activities API to retrieve a file with all of the list members and update your database accordingly.  Sorry there isn't a more streamlined way to do this--I am going to pass along the feedback that it would be good for us to record  changes in list subscriptions to make this less data-intensive.


Best Regards,

Shannon W

API Support Specialist

Developer Portal

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

Visit Page