How to get all contacts of a list?

hi,

I am implementing a integration service with activecampaign. I need a way to be able to get all contact of any list.
I cannot find any API supporting this.
What would you say?
Thanks.

Hello!

Hope your day is going well. You can use contact_list for this: (http://www.activecampaign.com/api/example.php?call=contact_list). Let me know if you have any issues!

See the filters argument of contact_list http://www.activecampaign.com/api/example.php?call=contact_list

The example in the docs is //'filters[listid]' => '4',

It works perfectly for me now. Thanks guys.

1 Like

I’ve used this API method to list all contacts. But, it lists everything about each contact, including previous messages sent, etc.

I’m only interested in firstname and email.

What’s the best way to list just those fields, in the response?

Nevermind, I’ve got it sorted.

I used this setting to get an abbreviated contact list…

$params - array(
    'full' => 0,
);

Hey all,

Biannca here from our CX team, I just wanted to share this if anyone comes across this post - we have an updated API V3 documentation on retrieving a list of contacts https://developers.activecampaign.com/reference/list-all-contacts.

You can use these filters/parameters and sort by name in ascending or descending order https://screen.ac/z8uo5xxg.

Please don’t hesitate to reply back out or email us at help@activecampaign.com if you have any further questions.