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.

Check for the existence of analytics data for an object type

Last updated May 15, 2023

GET /analytics/v2/reports/:objectType/exists

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Required Scope:

business-intelligence

Check to see if there is analytics data for a specified object type. This can be used to perform a simple, quick check to see if a HubSpot account has any analytics data for the specified object type.

The response is a simple "exists": true if there is data, or "exists": false if there is no data for the object type.

Note: Access to the data from this endpoint will depend on the subscription of the HubSpot account. Please see the overview page for more details.

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.
Object Type  :objectType
Used in the request URL
The object type that you want to check for analytics data. See the table below for the supported object types.

Supported object types

Object type Description
event-completions Data for analytics events.
forms Data for HubSpot forms.
pages Data for individual URLs, collected by the HubSpot tracking code.
social-assists Data for messages published through the social publishing tools.
landing-pages Data for HubSpot hosted landing pages.
standard-pages Data for HubSpot hosted website pages.
blog-posts Data for HubSpot hosted blog posts.
listing-pages Data for HubSpot blog listing pages.
knowledge-articles Data for HubSpot knowledge base articles.