APIs & Integrations

ogrygor
Participant

Get page views via API

Hello.

Is there any way to get contact page views from timeline via API ?

Thank you in advance!

0 Upvotes
7 Replies 7
Not applicable

Get page views via API

Hey all - I think I'm trying to recreate a similar use case here.

The goal is to see a Hubspot contact's timeline based on SFDC Lead or Contact ID without using the Visualforce page. In particular, I want to see individual web pages visited, as if I was looking at the Hubspot timeline.

I'm thinking this is not currently possible with the response I saw over here:

Hi @nflaherty, I can't speak for every team here at HubSpot, but I do know of some discussion surrounding making timeline data available via API. The biggest consensus is that as a rule, we strive to build APIs that allow third parties to build powerful apps that add features to the HubSpot platform, or provide more specialized functionality. With that in mind, we generally don't prioritize APIs that can be used to directly replicate existing in-app functionality. While I can completely unders…

jagee
Participant

Get page views via API

I am looking to get data about each page on my website and which contacts are viewing them. Is there an API endpoint for getting that? At the end of the day I want to get access to all of the website views data.

0 Upvotes
Spencer1
Member

Get page views via API

also, if you are wanting specific information about what they are viewing, I am not sure if that is possible with Hubspot, but someone who works here might know more.

0 Upvotes
npuli
Member

Get page views via API

$.ajax({
type:“GET”,
dataType: “jsonp”,
jsonpCallback:‘callback’,
contentType:“application/json”,
url:"https://api.hubapi.com/content/api/v2/blog-posts/"+BLOGID+"?hapikey=**********"
success: function (data) {} });

Try this you will get all information about that particular Blog.

0 Upvotes
ogrygor
Participant

Get page views via API

@Spencer thank you for advice.

But I need more details, e.g. Page Name, and maybe date and time of that activity.
Maybe you could advise where to find that information?
Or maybe someone could state that it`s impossible for now?

Thank you!

0 Upvotes
Spencer1
Member

Get page views via API

https://app.hubspot.com/property-settings/<PORTAL_ID>/contact

in here, you can select contact properties and get the actual names of those properties to add as parameters to your call. You can append each of those as &property=<PROPERTY_NAME>.

Note, the naming convention changes between some of the API calls, so the parameter property might be properties, but I’m pretty sure it’s just property for all the contact APIs.

0 Upvotes
Spencer1
Member

Get page views via API

If you just want the page views for a specific contact, get that contact by id and use

?property=hs_analytics_num_page_views

0 Upvotes