Get contacts by list

Occasional Contributor

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
Highlighted
Regular Advisor

Re: Get contacts by list

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.

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured