We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jul 25, 2019 10:58 AM - edited Jul 25, 2019 11:05 AM
We are looking to track the number of HubSpot CRM contacts over-time for total overall and total from specific lists.
I do not see an analytics object type for 'contacts' in the analytics API: https://developers.hubspot.com/docs/methods/analytics/get-analytics-data-by-object
I see we can access a list size by ID with this: https://developers.hubspot.com/docs/methods/lists/get_list
Question:
(1) Ideally, we'd be able to pull out this data to show total contacts overall or total contacts by list ID, historically by date for the last year:
7/1/2019 - 2203
7/2/2019 - 2245
7/3/2019 - 2301
Is this possible via any of the APIs?
Thanks,
Jul 26, 2019 3:05 AM
Hi @swroblew,
When looking to get the total number of contacts you have in your HubSpot portal, we can look into using the default property - create date (the date that a contact entered the system)
In this case, you're right, we can definitely utilize the contact list APIs together with the create date property:
Hope this helps to clarify!
Jul 29, 2019 9:53 AM
Hey Wendy!
This makes sense to get total contacts. But if we wanted to get total number of contacts by created date from the API, is the only way to query every contact and then count them by date?
Jul 29, 2019 9:36 PM
Hi @swroblew,
You wouldn't need to query every contact if you're using an active list to keep track:
Hope this helps to clarify further!
Jul 30, 2019 8:56 AM
Hey Wendy,
Like my example in the first post, I am looking to have the date returned, along with the count of contacts registered on that date.
Date - Contacts
7/1/19 - 2109
7/2/19 - 2188
7/3/19 - 2304
It does not seem like that is possible at this time just from the API. It sounds like the best option would be to query all contacts once, to get their registered date, create this list like above example, and then query daily at end of day and log the daily total moving forward.