curl --request GET \
--url https://api.hubapi.com/analytics/v2/reports/{object_type}/{time_period}{
"offset": 123,
"total": 123,
"totals": {
"rawViews": 123,
"visits": 123,
"visitors": 123,
"leads": 123,
"contacts": 123,
"subscribers": 123,
"marketingQualifiedLeads": 123,
"salesQualifiedLeads": 123,
"opportunities": 123,
"customers": 123,
"pageviewsPerSession": 123,
"bounceRate": 123,
"timePerSession": 123,
"newVisitorSessionRate": 123,
"sessionToContactRate": 123,
"contactToCustomerRate": 123,
"ctaViews": 123,
"submissions": 123,
"entrances": 123,
"exits": 123,
"timePerPageview": 123,
"pageBounceRate": 123,
"exitsPerPageview": 123
},
"breakdowns": [
{
"rawViews": 123,
"visits": 123,
"visitors": 123,
"leads": 123,
"contacts": 123,
"subscribers": 123,
"marketingQualifiedLeads": 123,
"salesQualifiedLeads": 123,
"opportunities": 123,
"customers": 123,
"pageviewsPerSession": 123,
"bounceRate": 123,
"timePerSession": 123,
"newVisitorSessionRate": 123,
"sessionToContactRate": 123,
"contactToCustomerRate": 123,
"ctaViews": 123,
"submissions": 123,
"entrances": 123,
"exits": 123,
"timePerPageview": 123,
"pageBounceRate": 123,
"exitsPerPageview": 123,
"breakdown": "<string>",
"meta": "<string>"
}
]
}Get analytics data for specific objects, based on the type of object.
curl --request GET \
--url https://api.hubapi.com/analytics/v2/reports/{object_type}/{time_period}{
"offset": 123,
"total": 123,
"totals": {
"rawViews": 123,
"visits": 123,
"visitors": 123,
"leads": 123,
"contacts": 123,
"subscribers": 123,
"marketingQualifiedLeads": 123,
"salesQualifiedLeads": 123,
"opportunities": 123,
"customers": 123,
"pageviewsPerSession": 123,
"bounceRate": 123,
"timePerSession": 123,
"newVisitorSessionRate": 123,
"sessionToContactRate": 123,
"contactToCustomerRate": 123,
"ctaViews": 123,
"submissions": 123,
"entrances": 123,
"exits": 123,
"timePerPageview": 123,
"pageBounceRate": 123,
"exitsPerPageview": 123
},
"breakdowns": [
{
"rawViews": 123,
"visits": 123,
"visitors": 123,
"leads": 123,
"contacts": 123,
"subscribers": 123,
"marketingQualifiedLeads": 123,
"salesQualifiedLeads": 123,
"opportunities": 123,
"customers": 123,
"pageviewsPerSession": 123,
"bounceRate": 123,
"timePerSession": 123,
"newVisitorSessionRate": 123,
"sessionToContactRate": 123,
"contactToCustomerRate": 123,
"ctaViews": 123,
"submissions": 123,
"entrances": 123,
"exits": 123,
"timePerPageview": 123,
"pageBounceRate": 123,
"exitsPerPageview": 123,
"breakdown": "<string>",
"meta": "<string>"
}
]
}Scope requirements
The type of object that you want the analytics data for.
event-completions, forms, pages, social-assists The time period used to group the data.
total, daily, weekly, monthly, summarize/daily, summarize/weekly, summarize/monthly The start date for the data you want. Must be included as ISO 8601 format, YYYYMMDD.
^\d{8}$The end date for the data you want. Must be included as ISO 8601 format, YYYYMMDD.
^\d{8}$Used to drilldown into the data.
Used to further drill down into the data.
Filter the returned data to include only the specified breakdown. May be included multiple times.
Exclude data for the specified breakdown. May be included multiple times.
The ID of an Analytics view.
If included, the results are sorted by the specified field.
Controls the direction of sorted results.
ASC, DESC Used to limit the number of results per request.
Used to get the next page of results.
Was this page helpful?