Get contacts by list

Occasional Participant

Get contacts by list

How can we do an API call to get contacts from a specific list?

 

It seems you don't support a "list_id" parameter for the contacts API?  This would seem to be a fairly common request.

1 REPLY 1
Member

Hello,

 

Thanks for posting on the forums.  We have a group of ContactList endpoints, one of which will allow you to retrieve the membership of a particular list.  Details on the endpoint are here:

 

http://developer.constantcontact.com/docs/contact-list-api/contactlist-membership-collection.html

 

The short of it is, make a GET call to the following URL:

 

https://api.constantcontact.com/v2/lists/{listId}/contacts

 

You will get a paginated response back that contains an array of contacts in the particular list.  This will allow you to retrieve contacts from a list.  I hope the information helps.

 

Andrew B.

API Support, Constant Contact

Developer Portal

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

Visit Page