# General API Clarifications in HubSpot

**URL:** <https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [January 7, 2020, 7:02am UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931 "2020-01-07T07:02:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jijoamt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jijoamt/32/101739_2.png) [@jijoamt](https://community.hubspot.com/u/jijoamt)\
**Post date:** [January 7, 2020, 7:02am UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/1 "2020-01-07T07:02:52Z")

</div>

Hi  
Are there API’s available in hubspot to get data for the following

1. to get details about who added how many contacts on a specified date  
2. to get details about who created how many deals on a specified date  
3. to get details about which deals were updated by whom and what was updated  
4. to get the total pipeline $ worth per respective hubspot user  
5. to get the total Pipeline value

Thanks

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [January 7, 2020, 8:43pm UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/2 "2020-01-07T20:43:34Z")

</div>

Welcome, @jijoamt.

This information can be indirectly retrieved or calculated from data which is accessible via the [Contacts API](https://developers.hubspot.com/docs/methods/contacts/contacts-overview) and [Deals API](https://developers.hubspot.com/docs/methods/deals/deals_overview), but **there are no dedicated endpoints for any of these metrics.** Several if not many steps are involved for each.

It sounds like you’re building an app focused on sales. Could you describe the “how many X on a specified date” use cases in more detail? I ask because I can already tell one significant roadblock will be historical changes. It will be much easier to create an app which keeps track of changes _after_ it is installed but much more challenging to go back in time and attribute changes to users.

---

<div class="post-metadata">

**Author:** ![jijoamt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jijoamt/32/101739_2.png) [@jijoamt](https://community.hubspot.com/u/jijoamt)\
**Post date:** [January 9, 2020, 11:13am UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/3 "2020-01-09T11:13:50Z")

</div>

Hi

can you please let me know hwo can we know the owner of a contact. In the APi for contact listing, i cant find the owner id of a contact

Also how can we know the owner of deal via API

Which APi should we use

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [January 10, 2020, 12:36pm UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/4 "2020-01-10T12:36:54Z")

</div>

Hi, @jijoamt.

If you’re using Contacts API endpoints like [this](https://developers.hubspot.com/docs/methods/contacts/get_contacts), you’ll have to append `property=hubspot_owner_id` to your request URL to get the values for that contact property, which are [owner IDs](https://developers.hubspot.com/docs/methods/owners/get_owners).

For example, a request which fetches a batch of contacts with their first name, last name, and owner values would be:

`https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property-firstname&property=lastname&property=hubspot_owner_id`

Similarly, when using the [Deals API](https://developers.hubspot.com/docs/methods/deals/get-all-deals), you must append `properties=hubspot_owner_id` to get the deal owner value.

For example, a request which retrieves a group of deals with the deal name, amount, and owner values would be:

`https://api.hubapi.com/deals/v1/deal/paged?properties=dealname&properties=amount&properties=hubspot_owner_id`

---

<div class="post-metadata">

**Author:** ![jijoamt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jijoamt/32/101739_2.png) [@jijoamt](https://community.hubspot.com/u/jijoamt)\
**Post date:** [January 16, 2020, 7:01am UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/5 "2020-01-16T07:01:16Z")

</div>

Hi Issac

thanks for the clarifications. I need a few more APi clarifcations

1. if something is updated on a deal, is it possible to know what exactly ( which field)was updated

2. is there an API to get the total pipeline $ worth per respective hubspot user, by providing the user id and dealstage

3. is there an APi to get the total pipeline value for the company

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [January 17, 2020, 2:56pm UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/6 "2020-01-17T14:56:02Z")

</div>

Hi, @jijoamt.

I’ll address each of your questions below:

1. Yes. This is most easily done by setting up `deal.propertyChange` subscriptions with the [Webhooks API](https://developers.hubspot.com/docs/methods/webhooks/webhooks-overview). If you don’t use webhooks, though, this goal becomes much more challenging. You’ll have to check every deal property and either compare it to historical values in your system or use the `timestamp` value as a reference for when the value was set.
2. No. At this time, you will have to loop through all deals returned by [this endpoint](https://developers.hubspot.com/docs/methods/deals/get-all-deals) and sort and calculate the deal values on your end. The **CRM Search API** which should be released to [developer preview](https://developers.hubspot.com/docs/preview/preview-overview) shortly should eliminate the need to loop through results. Subscribe to the [HubSpot Developer Changelog](https://developers.hubspot.com/changelog) to be notified when that API is released.
3. No. This answer is the same as above, however.

---

<div class="post-metadata">

**Author:** ![jijoamt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jijoamt/32/101739_2.png) [@jijoamt](https://community.hubspot.com/u/jijoamt)\
**Post date:** [April 4, 2020, 9:54am UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/7 "2020-04-04T09:54:16Z")

</div>

Hi Issac

Thankyou for your support.

Is there an APi available to get the notes added for a contact or company

Thanks jijo

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [April 7, 2020, 1:00pm UTC](https://community.hubspot.com/t/general-api-clarifications-in-hubspot/17931/8 "2020-04-07T13:00:32Z")

</div>

Hi, @jijoamt.

Yes. Notes are a type of engagement, so they can be retrieved through the [Engagements API](https://developers.hubspot.com/docs/methods/engagements/engagements-overview).

If you need to find the engagement IDs associated with a contact or company record, you can query the [CRM Associations API](https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview).

For example, if you sent the following request to [this endpoint](https://developers.hubspot.com/docs/methods/crm-associations/get-associations), the `results` array would contain engagement IDs associated with contact `1234` (since the `definitionId` of `9` is the “contact to engagement” association):

```auto
GET
https://api.hubapi.com/crm-associations/v1/associations/1234/HUBSPOT_DEFINED/9

```
