# Polling recent Page View information

**URL:** <https://community.hubspot.com/t/polling-recent-page-view-information/37880>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [May 25, 2021, 4:17pm UTC](https://community.hubspot.com/t/polling-recent-page-view-information/37880 "2021-05-25T16:17:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cto/32/81360_2.png) [@CTo](https://community.hubspot.com/u/CTo)\
**Post date:** [May 25, 2021, 4:17pm UTC](https://community.hubspot.com/t/polling-recent-page-view-information/37880/1 "2021-05-25T16:17:09Z")

</div>

Hi i have read through many postings related to tracking page view but I haven’t been able to find what i am looking for. I am looking for an API to return me the information on the Contact Activity screen showing the Page Views. I want to get this information for all contacts but don’t want to do it one contact at a time. For performance reason I only want to get the latest page views. We have the Professional Subscription using API key.

(1) Ideally this API would be similar to how Email Event API works. It will give you the latest Page Views for All contacts in chronological order from most recent.

(2) Being able to add a filter like start date (Email Event API has startTimestamp) to only return all page views after this date. This is not critical but is nice to have.

(3) the information return would give me the contact (vid or email) that view the page. Hopefully also I would be able to get the Page Name and datetime it was view.

Possible Solution I have found on the forum:

(1) Using “Tracking Code Page API”  
I understand this uses javascript to pull information into Hubspot. However am trying  
to pull information from Hubspot. Would the Analytics API be used to pull the data  
gather from Tracking Code? I understand this API usage requires Enterprise which I  
don’t have. I am not sure if this API would give me the grandular data I need  
mentioned above like which contacts view the page etc.

(2) Using “Web Analytics”

I understand this is in Beta and wouldn’t be stable for us to use in our production  
environment. Also when I tested this API it looks like you can only get the latest page  
view per contact. I would need to get it for any contacts since I dont want to loop  
through all contacts.

(3) Contact API

Problem is this API return Page view per contact. We don’t want to loop through all  
contacts.

Here are two articles I found but are old.  
[https://community.hubspot.com/t5/APIs-Integrations/Downloading-page-view-data-for-all-contacts/m-p/277483](https://community.hubspot.com/t5/APIs-Integrations/Downloading-page-view-data-for-all-contacts/m-p/277483)  
[https://community.hubspot.com/t5/APIs-Integrations/API-to-Identify-Visitor-Track-Page-Track-Visitor-Events/m-p/275686](https://community.hubspot.com/t5/APIs-Integrations/API-to-Identify-Visitor-Track-Page-Track-Visitor-Events/m-p/275686)  
all contacts.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [May 25, 2021, 8:55pm UTC](https://community.hubspot.com/t/polling-recent-page-view-information/37880/2 "2021-05-25T20:55:31Z")

</div>

@himanshurauthan , would be able to help out here 😀

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [May 26, 2021, 2:31pm UTC](https://community.hubspot.com/t/polling-recent-page-view-information/37880/3 "2021-05-26T14:31:47Z")

</div>

Thank you @dennisedson for counting me in. 😊

Hi @CTo,

I’m afraid that, at this time HubSpot only has a single API that you might have to loop, but they have it planned for the future, as mentioned here that - **currently they only have it for a single object but they might restrict that in the future**.

You can use the **e\_visited\_page filter** to get the visited page only.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fevents-events-v3%2Fevents%2Fget-events-v3-events-)**

The alternative for this is, you might set a workflow - send a webhook request on a new page view.

I hope this helps.

Best regards,

---

<div class="post-metadata">

**Author:** ![CTo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cto/32/81360_2.png) [@CTo](https://community.hubspot.com/u/CTo)\
**Post date:** [May 26, 2021, 2:33pm UTC](https://community.hubspot.com/t/polling-recent-page-view-information/37880/4 "2021-05-26T14:33:46Z")

</div>

thanks for quick response and input.
