# Get Contact Web Activity via API

**URL:** <https://community.hubspot.com/t/get-contact-web-activity-via-api/11779>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [January 11, 2018, 1:41am UTC](https://community.hubspot.com/t/get-contact-web-activity-via-api/11779 "2018-01-11T01:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:17pm UTC](https://community.hubspot.com/t/get-contact-web-activity-via-api/11779/12 "2021-09-07T13:17:23Z")

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

---

_[View the full topic](https://community.hubspot.com/t/get-contact-web-activity-via-api/11779)._
