ListIDs

Regular Participant

ListIDs

Could someone advise me on how to obtain the ListID in this format:

http://api.constantcontact.com/ws/customers/{ListID}/lists/1 ... where {ListID} is the List ID?

 

Thank you!

2 REPLIES 2
Employee

Hi,

 

We do have an API call available to GET your contact lists and their respective list ID's through the API.   The URI format to get a single list is

 

https://api.constantcontact.com/ws/customers/{username}/lists/{listID}

 

You can also make a call to get all of your contact lists and their ID's by doing a GET to:

 

https://api.constantcontact.com/ws/customers/{username}/lists

 

The easiest way to see a list ID is to login to the account, go to the Contacts tab, click on a list, and look at the URL. It should look something like this: 

 

https://ui.constantcontact.com/rnavmap/em/contacts/browse?listId=3&srchwithinlst=true 

 

In this case, the list ID is 3. I hope that helps! 

 

Best Regards,

Shannon W.

API Support Specialist

One note: the format above is using our older API.  You can find details about how to get lists here, for individual lists, and here, for the list collection, for the newer API.

 

Best Regards,

Shannon W.

API Support Specialist

Developer Portal

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

Visit Page