# Get Hubspotutk value via API

**URL:** <https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [June 6, 2022, 9:28pm UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440 "2022-06-06T21:28:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SearchHub](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SearchHub](https://community.hubspot.com/u/SearchHub)\
**Post date:** [June 6, 2022, 9:28pm UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440/1 "2022-06-06T21:28:35Z")

</div>

Hi,

So I am tring to see if there is a way to get the hubspotutk value from a contact record via the API?  
I know I can look up a contact by the utk but have not found a way to look up a contact id/email to then get the utk as the return value.

Is that possible? if so please link me to the documentation.

Ps You should really enable for web activity to be able to post via API not just the cookie on the frontend. Man y clients are moving to server side tracking and they do not want to load libraries on the client side.

Thanks,

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 7, 2022, 4:28pm UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440/2 "2022-06-07T16:28:19Z")

</div>

Hey, @SearchHub! Let’s add some voices to this thread — @tominal @RomanGruit do you have any insight for @SearchHub?

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![SearchHub](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SearchHub](https://community.hubspot.com/u/SearchHub)\
**Post date:** [June 7, 2022, 10:53pm UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440/3 "2022-06-07T22:53:41Z")

</div>

To add context:  
- Trying to move fully server side, so NO Hubspot tracking code

- Obviously all GA etc is already 100% working so it would be great to be able t post pagviews to Hubspot via the api

I am trying to find a workaround given that,whyever that is, Hubspot does not see to have an api for the actual web activity.

Not sure there is any way to get around this limitation, so I thought about looking into the utk value, but also does not seem that enables being able to send pageview/session data etc into Hubspot.

Hubspot should really add that, until then seems all there is left is to just send in custom ids from Google Analytics into Hubspot and then get any (even high level data) from there instead of in hubspot

---

<div class="post-metadata">

**Author:** ![tominal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tominal/32/73018_2.png) [@tominal](https://community.hubspot.com/u/tominal)\
**Post date:** [June 11, 2022, 5:56pm UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440/4 "2022-06-11T17:56:15Z")

</div>

Unless I am misunderstanding, [this post](https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-and-hubspotutk/m-p/259363#M23153) sounds like the answer to your question.

The HubSpot JS sounds like the way to go for their lead tracking.

---

<div class="post-metadata">

**Author:** ![SearchHub](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@SearchHub](https://community.hubspot.com/u/SearchHub)\
**Post date:** [June 13, 2022, 4:15pm UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440/5 "2022-06-13T16:15:29Z")

</div>

The intent is to go 100% server side, so have anything server in first party context, e.g. Google Analytics servers from [ga.owndomain.com](http://ga.owndomain.com) vs from google.

The same would be the goal for Hubspot, but I do not see a server endpoint for website tracking, just contact/forms etc..

So unless there is an endpoint I assume there is no way to serve the JS via a server call and not directly in the frontend.

---

<div class="post-metadata">

**Author:** ![simonbrook](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@simonbrook](https://community.hubspot.com/u/simonbrook)\
**Post date:** [September 14, 2024, 11:31am UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440/6 "2024-09-14T11:31:41Z")

</div>

Sorry for the bump here, but the post this is linked to is exactly the opposite of the question being asked. The question here is can we \*pull\* the hubspot\_utk from the contacts API when getting the contact from their email address for example. The other post is asking if they can push the hubspot\_utk to HubSpot when creating a contact via the API.

---

<div class="post-metadata">

**Author:** ![NTohill](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@NTohill](https://community.hubspot.com/u/NTohill)\
**Post date:** [May 23, 2023, 4:51pm UTC](https://community.hubspot.com/t/get-hubspotutk-value-via-api/58440/7 "2023-05-23T16:51:34Z")

</div>

Hi,

Did you get any further with this? We already have our ContactsAPI up and running and don’t want to use a hubspot form. Where you able to find a way to pass the hubspotutk (hutk) to the contact when you are creating them/updating them?  
Thanks in advance
