APIs & Integrations

darivers
Member

Getting the count of email subscribers through the api

Hello! Hopefully a simple question. I'm just getting my feet wet HS apis work. I have a client who wants to display the number of email subscribers she has on a page on her site. I'm basically going to use ajax so that the count will update when the number of subscribers change but after much research I'm not sure what the endpoint url should be. Any guidance would help. Thanks in advance.

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Getting the count of email subscribers through the api

Hello @darivers 

Welcome to the Community!

I am thinking you would want to target the list of contacts

I am curious how you are planning on not exposing your hapi key with this call 👀

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show