There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Get Contact Statistics

Last updated May 12, 2023

GET  /contacts/v1/contacts/statistics

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing & CRM

Required Scope:

crm.objects.contacts.read

Returns the total number of contacts in the account and the date of the last contact add. 

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.

Optional Parameters How to use Description
Include Total Contacts &includeTotalContacts={boolean} A boolean to determine if the number of total contacts should be included in the response. 
Include Last Contact At &includeLastNewContactAt={boolean} A boolean to determine if the time stamp of the last contact created should be included in the response.