cancel
Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

Retrieving Contacts from a Mailing List

New Member

Retrieving Contacts from a Mailing List

Hello,

I know I'm able to retrieve a list of all contacts for a given customer at:
http://api.constantcontact.com/ws/customers/{UserName}/contacts.

I can also retrieve a list of customer's mailing lists at:
http://api.constantcontact.com/ws/customers/{UserName}/lists.

Currently, I don't believe there is a way to get the contacts on a particular list, such as:

http://api.constantcontact.com/ws/customers/{UserName}/lists/{ListID}/contacts

or:
http://api.constantcontact.com/ws/customers/{UserName}/contacts?ListID={ListID}

From what I've read, I must create an activity and do a bulk download in order to filter a list of contacts for a particular list, which seems a little complicated and a lot of overhead on both ends of the system just to filter contacts by mailing list, which seems pretty basic.

To me, the above methods would be much simpler, and would avoid having to create an activity just to get contacts from one list.

Is there any possibility this could be implemented in the near future? Or, is there a particular reason why this is not currently supported? (Why would I want all contacts for a customer without being able to filter by list?)

Thank you,
Tom
2 REPLIES 2
Moderator

RE: Retrieving Contacts from a Mailing List

At this time we do not offer that type of query on the lists collection, we'll take a look and see what kind of feedback we get for this. Regardless of implementing this or not, the limit on how many contacts can be queried per HTTP Request to the API is 50 per request. For you to get the entire contents of one list of 1000 contacts, for example, it would take 20 HTTP Requests, each of which would have to be processed for the next URI for collecting them. Because of this limit, it generally is more overhead on both our servers, the bandwidth of everyone and your program to process contact retrievals of any modest size using this method. I would recommend using the Bulk Activity collect for all these types of queries, the files generally are ready in 5 to 10 minutes and require much less processing overhead on both your program and our system.

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Valued Developer

re: Retrieving the Members of a Contact List

The Constant Contact API now includes an API which traverses the members of a Contact List.  Please see this reference on the Contact List Members Resource for more information. 


 


Note that if you have large Contact Lists, you should consider using the Activities resource.  The Activities resource submits an asynchronous batch job which, when completed, returns all the members of the list in a single report .  The Contact List Members resource responds immediately with the first page (ie. the first 50) of Contacts in the identified list.   

Tom M
Group Product Manager – Content Editing
Constant Contact