# Web Activity API

**URL:** <https://community.hubspot.com/t/web-activity-api/21988>\
**Category:** HubSpot Ideas\
**Tags:** crm-objects-contacts-companies-deals-tickets\
**Created:** [June 23, 2020, 3:33pm UTC](https://community.hubspot.com/t/web-activity-api/21988 "2020-06-23T15:33:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scibelli](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/scibelli/32/48165_2.png) [@scibelli](https://community.hubspot.com/u/scibelli)\
**Post date:** [June 23, 2020, 3:33pm UTC](https://community.hubspot.com/t/web-activity-api/21988/1 "2020-06-23T15:33:47Z")

</div>

I’ve found a few community questions but never a request for a Web Activity API.

My use case is to measure all activities that are performed or tracked in HubSpot and create a machine learning model outside the portal that would provide recommendations. We have some of that activity within HubSpot (meetings, notes, calls, forms, etc.), but a big hole is the web visits.

Since this activity is already tracked, I’m wondering how difficult this would be to create.

The questions submitted that I found include these:

- [https://community.hubspot.com/t5/APIs-Integrations/Tracking-Contact-Website-Activity-via-API/m-p/230697#M9593](https://community.hubspot.com/t5/APIs-Integrations/Tracking-Contact-Website-Activity-via-API/m-p/230697#M9593)
- [https://community.hubspot.com/t5/APIs-Integrations/Get-Contact-Web-Activity-via-API/m-p/230546#M9442](https://community.hubspot.com/t5/APIs-Integrations/Get-Contact-Web-Activity-via-API/m-p/230546#M9442)

---

<div class="post-metadata">

**Author:** ![johnelmer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johnelmer/32/55984_2.png) [@johnelmer](https://community.hubspot.com/u/johnelmer)\
**Post date:** [October 16, 2020, 2:55pm UTC](https://community.hubspot.com/t/web-activity-api/21988/2 "2020-10-16T14:55:24Z")

</div>

@scibelli @There is now a solution for exporting raw web events data so that you can analyze it. The [Ultimate Data Export](https://app.hubspot.com/ecosystem/2756921/marketplace/apps/marketing/analytics-data/ultimate-data-export-224046) app for HubSpot was recently launched in the App Marketplace. The exported Excel file includes all HubSpot CRM data as well as web events for each contact. Ultimate Data Export is free to use.

---

<div class="post-metadata">

**Author:** ![dvanbrunt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dvanbrunt/32/18373_2.png) [@dvanbrunt](https://community.hubspot.com/u/dvanbrunt)\
**Post date:** [September 3, 2021, 8:31pm UTC](https://community.hubspot.com/t/web-activity-api/21988/3 "2021-09-03T20:31:11Z")

</div>

@johnelmer That link doesnt seem to work?

we just see the login to HS page and when we login it just says

“You don’t have assess to this account”  
When I’m already signed in to that account in another browser tab. (Enterprise account)

> **[2021-09-03\_16-28-23.png](https://app.screencast.com/mmZWmeaJrwUXY)**
>
> World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.

---

<div class="post-metadata">

**Author:** ![johnelmer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johnelmer/32/55984_2.png) [@johnelmer](https://community.hubspot.com/u/johnelmer)\
**Post date:** [September 4, 2021, 10:40pm UTC](https://community.hubspot.com/t/web-activity-api/21988/4 "2021-09-04T22:40:01Z")

</div>

@dvanbrunt The link is working, so it appears you are having a login problem. I suggest contacting HubSpot support.

---

<div class="post-metadata">

**Author:** ![dvanbrunt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dvanbrunt/32/18373_2.png) [@dvanbrunt](https://community.hubspot.com/u/dvanbrunt)\
**Post date:** [September 7, 2021, 1:18pm UTC](https://community.hubspot.com/t/web-activity-api/21988/5 "2021-09-07T13:18:06Z")

</div>

I’ve only briely tested it, but it is possible to get Contact account activity. (subscriptions, page views etc)

You can do this with the [Web Analytics API](https://developers.hubspot.com/docs/api/events/web-analytics)

by providing 2 query parameters to dig into specific objects, in the above example:

1. objectType=contact
2. objectId=XXXX

These parameters allow us to focus on a specific record by object ID.

If we then want to drill into specific events, we can use the following:

1. &eventType=e\_visited\_page

This will then show all page visits for this contact. We can also include the occurredAfter or occurredBefore parameters to refine our search to specific periods of time.
