How can I get the active contacts on each lists on AC? I think there’s none for APIv3?
I don’t think there’s a way with API v3. I believe you would need to use the v1 API and filter contacts based on a list ID. For example:
/admin/api.php?api_action=contact_list&api_key={yourApiKey}&api_output=json&filters[listid]={id}
Replace {yourApiKey}
and {id}
with your values.
Also, to filter only contacts who are actively subscribed to the list, add &filters[status]=1
to the call.
I hope this helps!
One more update… yes API v3 can also filter contacts by list ID using ?listid={id}
as a query string parameter.