# Access Lead Score via API ?

**URL:** <https://community.hubspot.com/t/access-lead-score-via-api/43294>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [September 2, 2021, 12:57pm UTC](https://community.hubspot.com/t/access-lead-score-via-api/43294 "2021-09-02T12:57:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PChalasani](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pchalasani/32/74736_2.png) [@PChalasani](https://community.hubspot.com/u/PChalasani)\
**Post date:** [September 2, 2021, 12:57pm UTC](https://community.hubspot.com/t/access-lead-score-via-api/43294/1 "2021-09-02T12:57:20Z")

</div>

I am developing a HubSpot integration (app) that analyzes a user’s prospects data. Is it possible to access Lead Scores via the API?

For example if a B2B HubSpot marketer is targeting 1000 companies, I want to pull out the latest Lead Scores for all contacts via the API. Even better if I can get the _history_ of those lead scores over time. When I say “Lead Score”, it can either be the score based on rules that the HubSpot user setup, or it can be the Predictive Lead Score that HubSpot calculates. I am interested in accessing both.

Any help will be much appreciated.

---

<div class="post-metadata">

**Author:** ![natsumimori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/natsumimori/32/39807_2.png) [@natsumimori](https://community.hubspot.com/u/natsumimori)\
**Post date:** [September 7, 2021, 8:14am UTC](https://community.hubspot.com/t/access-lead-score-via-api/43294/2 "2021-09-07T08:14:36Z")

</div>

Hi @PChalasani ,

I think it’s possible with [Get a contact by vid](https://legacydocs.hubspot.com/docs/methods/contacts/get_contact) API. You’ll want to add this as a parameter to your request URL:

`?property=hubspotscore`

This should then add the HubSpot Score into the response you receive.

---

<div class="post-metadata">

**Author:** ![PChalasani](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pchalasani/32/74736_2.png) [@PChalasani](https://community.hubspot.com/u/PChalasani)\
**Post date:** [September 7, 2021, 12:48pm UTC](https://community.hubspot.com/t/access-lead-score-via-api/43294/3 "2021-09-07T12:48:57Z")

</div>

@natsumimori thank you.

I assume I need to use the v1 API if I want to get historical values of the hubspotscore, for a given contact?

---

<div class="post-metadata">

**Author:** ![natsumimori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/natsumimori/32/39807_2.png) [@natsumimori](https://community.hubspot.com/u/natsumimori)\
**Post date:** [September 8, 2021, 5:52am UTC](https://community.hubspot.com/t/access-lead-score-via-api/43294/4 "2021-09-08T05:52:23Z")

</div>

Yes, you’re right- The V3 endpoint do not return historical property values, therefore, you’ll want to use the V1 endpoint for this purpose. ([Reference](https://community.hubspot.com/t5/APIs-Integrations/API-v3-Properties-History-Available/td-p/365099))
