APIs & Integrations

AGautheyrou
Member | Diamond Partner
Member | Diamond Partner

How to get all contacts subscribe with API

Hi,
I want to get all my subscribed contact with API, but with the doc I can see it's a call one by one with the Email. Is there a way to get all contact with one call and not contact by contact (batch, search)?

Thanks

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

How to get all contacts subscribe with API

Hi, @AGautheyrou 👋 Thanks for the question. You are correct that there is not a batch endpoint for this request.

 

Have you considered leveraging the List tool and API? 

 

You can create an active list of subscribers and then query the list to get the contacts from the list, either all contacts on a list or only contacts recently add to a list:

An example of the list filter might look like this:

CleanShot 2023-01-30 at 16.46.21.png

 

This knowledge base article gives more detail into opted-in and not-opted-in statues.

 

Have fun building! 

— Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes