# Get page views via API

**URL:** <https://community.hubspot.com/t/get-page-views-via-api/11825>\
**Category:** APIs & Integrations\
**Created:** [June 12, 2017, 12:37pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825 "2017-06-12T12:37:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ogrygor](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ogrygor/32/14727_2.png) [@ogrygor](https://community.hubspot.com/u/ogrygor)\
**Post date:** [June 12, 2017, 12:37pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/1 "2017-06-12T12:37:21Z")

</div>

Hello.

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

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 12, 2017, 5:49pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/2 "2017-06-12T17:49:35Z")

</div>

If you just want the page views for a specific contact, get that [contact by id](https://developers.hubspot.com/docs/methods/contacts/get_contact) and use

`?property=hs_analytics_num_page_views`

---

<div class="post-metadata">

**Author:** ![ogrygor](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ogrygor/32/14727_2.png) [@ogrygor](https://community.hubspot.com/u/ogrygor)\
**Post date:** [June 13, 2017, 8:03am UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/3 "2017-06-13T08:03:11Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 13, 2017, 1:59pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/4 "2017-06-13T13:59:06Z")

</div>

`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.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 13, 2017, 2:00pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/5 "2017-06-13T14:00:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![npuli](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/npuli/32/35608_2.png) [@npuli](https://community.hubspot.com/u/npuli)\
**Post date:** [June 16, 2017, 9:40am UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/6 "2017-06-16T09:40:07Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![jagee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jagee/32/2490_2.png) [@jagee](https://community.hubspot.com/u/jagee)\
**Post date:** [June 21, 2017, 4:22pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/7 "2017-06-21T16:22:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [August 21, 2018, 11:55pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/8 "2018-08-21T23:55:17Z")

</div>

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:

[How To Get Contact’s Timeline Events via API?](https://integrate.hubspot.com/t/how-to-get-contacts-timeline-events-via-api/4206/9) [Contacts](https://community.hubspot.com/c/contacts)

> 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…

---

<div class="post-metadata">

**Author:** ![eterobby](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eterobby/32/63860_2.png) [@eterobby](https://community.hubspot.com/u/eterobby)\
**Post date:** [August 20, 2026, 3:08pm UTC](https://community.hubspot.com/t/get-page-views-via-api/11825/9 "2026-08-20T15:08:33Z")

</div>

I realize this is necroposting, but this post is still a top result in Google, so here goes:

This information is readily available now via the [Events API](https://developers.hubspot.com/docs/api-reference/latest/events/guide) (using `eventType=e_visited_page`). The API returns specific pages, timestamps, and standard user agent/referrer information captured by Hubspot.
