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 get only id of contact list via API

Regular Participant

How to get only id of contact list via API

I am used ContactListId attribute to get contatc ist id , but it's returning whole url with id. 

How I can get only contact list id?


Hello Nishant,


The full request url is the id for the resources, but as most of the url is identical for all lists, the only thing that one really needs is the numbera the end of the url, which is determined by the sequence  in which lists are created in the account.


I hope this information helps.

Mark Coleman
Support Engineer
Developer Portal

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

Visit Page