# Contacts Fields in API

**URL:** <https://community.hubspot.com/t/contacts-fields-in-api/12689>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [January 31, 2019, 11:46am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689 "2019-01-31T11:46:01Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianmelanson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brianmelanson/32/97852_2.png) [@brianmelanson](https://community.hubspot.com/u/brianmelanson)\
**Post date:** [January 31, 2019, 11:46am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/1 "2019-01-31T11:46:01Z")

</div>

Hi Team,

We want to fetch these columns information in contact API.

API is:

[https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=2](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=2)

And We need these columns

First Name  
Last Name  
Create Date  
Company Name  
Email  
Job title  
Message  
Lead Status  
Lead Stage  
Lead Rating  
Lifecycle Stage  
Contact Owner  
City  
Country  
Website URL  
Phone Number  
Hubspot Team  
Domain Value  
Original Source  
Original source drill-down 1

---

<div class="post-metadata">

**Author:** ![DaniellePeters](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daniellepeters/32/6115_2.png) [@DaniellePeters](https://community.hubspot.com/u/DaniellePeters)\
**Post date:** [January 31, 2019, 5:38pm UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/2 "2019-01-31T17:38:16Z")

</div>

Hey there!

If you take a look at the doc, you’ll see that you can include the property parameter in the request to get back the desired properties. You can add it multiple times to get the properties you need. An example of a request that would return the First Name and Email:

[https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=2&property=firstname&property=email](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=2&property=firstname&property=email)

Documentation

[https://developers.hubspot.com/docs/methods/contacts/get\_contacts](https://developers.hubspot.com/docs/methods/contacts/get_contacts)

---

<div class="post-metadata">

**Author:** ![brianmelanson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brianmelanson/32/97852_2.png) [@brianmelanson](https://community.hubspot.com/u/brianmelanson)\
**Post date:** [February 1, 2019, 9:12am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/3 "2019-02-01T09:12:01Z")

</div>

Hi Team,

Thanks for replying , really this is very helpfull for us, still we have query regarding these fields.

1. **Lead Stage** : how can we find out this in all contacts API

2. **Contact Owner** : we are getting Contact Owner Id in contacts API but we would to get contact owner name.

---

<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:** [February 1, 2019, 4:11pm UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/4 "2019-02-01T16:11:25Z")

</div>

Thanks for jumping in, @DaniellePeters! (Hi, by the way  
 ![16x16_smiley-very-happy.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a83ec960612094a57cfb392e21c202c8e77b967c.png)  
)

@brianmelanson, let’s see if I can help out here:

1. Are you referring to the default contact property “Lead status” (`hs_lead_status`)? If so, as Danielle said, you can include the parameter `property=hs_lead_status` in your request URL. HubSpot will include the contact’s value for this property if it exists. This method also works for the [Get all contacts](https://developers.hubspot.com/docs/methods/contacts/get_contacts) endpoint.
2. You’ll have to cross-reference the `ownerId` values with those returned from the [Owners API](https://developers.hubspot.com/docs/methods/owners/get_owners), which does include names.

---

<div class="post-metadata">

**Author:** ![brianmelanson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brianmelanson/32/97852_2.png) [@brianmelanson](https://community.hubspot.com/u/brianmelanson)\
**Post date:** [February 13, 2019, 7:56am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/5 "2019-02-13T07:56:23Z")

</div>

Hi Team,

I need one more things.

**Hubspot Team** : we are getting Hubspot Team Id in contacts API but we would to get Hubspot Team name, please help us to get the name of Hubspot Team.

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:** [February 13, 2019, 3:06pm UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/6 "2019-02-13T15:06:29Z")

</div>

Hi, @brianmelanson.

I’m not familiar with that parameter. Could you share some example contact JSON which shows the “HubSpot team ID” and the endpoint URL you retrieved it from? (Please do not include your API key.)

At this time, it’s currently not possible to get team information through the [Owners API](https://developers.hubspot.com/docs/methods/owners/get_owners); this information can only be found in the UI. Per [this related discussion](https://community.hubspot.com/t5/APIs-Integrations/Get-Team-of-Owner/m-p/248696), I recognize this is a pain point.

If you would like to see team information returned via the Owners API, please upvote and comment on [this feature request](https://community.hubspot.com/t5/HubSpot-Ideas/Owners-API-Add-Team-value-to-returned-results/idi-p/221009#M26574). I’ve already upvoted it.

---

<div class="post-metadata">

**Author:** ![brianmelanson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brianmelanson/32/97852_2.png) [@brianmelanson](https://community.hubspot.com/u/brianmelanson)\
**Post date:** [February 14, 2019, 6:59am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/7 "2019-02-14T06:59:39Z")

</div>

Hi Team,

Please get the sample contacts JSON and request api url..

**Request URL**

[https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=67677-565656-dfffk-3434&count=1&property=jobtitle&property=country&property=website&property=firstname&property=lastname&property=email&property=city&property=company&property=hubspot\_owner\_id&property=hs\_predictivecontactscorebucket&property=hs\_lead\_status&property=lifecyclestage&property=message&property=phone&property=hubspot\_team\_id&property=hs\_content\_membership\_registration\_domain\_sent\_to&property=hs\_analytics\_source&property=hs\_lead\_stage&vidOffset=0](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=67677-565656-dfffk-3434&count=1&property=jobtitle&property=country&property=website&property=firstname&property=lastname&property=email&property=city&property=company&property=hubspot_owner_id&property=hs_predictivecontactscorebucket&property=hs_lead_status&property=lifecyclestage&property=message&property=phone&property=hubspot_team_id&property=hs_content_membership_registration_domain_sent_to&property=hs_analytics_source&property=hs_lead_stage&vidOffset=0)

Reponse JSON

{  
“contacts”: [  
{  
“addedAt”: 1511811772905,  
“vid”: 565,  
“canonical-vid”: 345,  
“merged-vids”: [],  
“portal-id”: ,  
“is-contact”: true,  
“profile-token”: “”,  
“profile-url”: “[HubSpot](https://app.hubspot.com/contacts/4064021/contact/351)”,  
“properties”: {  
**“hubspot\_team\_id”: {**  
**“value”: “58199”**  
**},**  
“hs\_predictivecontactscorebucket”: {  
“value”: “bucket\_3”  
},  
“firstname”: {  
“value”: “Barbara”  
},  
“hubspot\_owner\_id”: {  
“value”: “344545”  
},  
“jobtitle”: {  
“value”: “Senior Vice President, Marketing”  
},  
“hs\_analytics\_source”: {  
“value”: “OFFLINE”  
},  
“phone”: {  
“value”: “”  
},  
“lastmodifieddate”: {  
“value”: “1549905623970”  
},  
“hs\_lead\_status”: {  
“value”: “Contacted”  
},  
“company”: {  
“value”: “”  
},  
“lifecyclestage”: {  
“value”: “opportunity”  
},  
“email”: {  
“value”: “”  
},  
“lastname”: {  
“value”: “ffgh”  
}  
},  
“form-submissions”: [],  
“identity-profiles”: [  
{  
“vid”: 351,  
“saved-at-timestamp”: 1511811772765,  
“deleted-changed-timestamp”: 0,  
“identities”: [  
{  
“type”: “EMAIL”,  
“value”: “[test@test.com](mailto:test@test.com)”,  
“timestamp”: 1511811772756,  
“is-primary”: true  
},  
{  
“type”: “LEAD\_GUID”,  
“value”: “0720c201-326e-4411-818e-34354rgrrt23”,  
“timestamp”: 1511811772759  
}  
]  
}  
],  
“merge-audits”: []  
}  
],  
“has-more”: true,  
“vid-offset”: 351  
}

In reponse JSON we are getting numeric value of hubspot\_team\_id, we need name of it.

Thanks

---

<div class="post-metadata">

**Author:** ![brianmelanson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brianmelanson/32/97852_2.png) [@brianmelanson](https://community.hubspot.com/u/brianmelanson)\
**Post date:** [February 19, 2019, 8:04am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/8 "2019-02-19T08:04:16Z")

</div>

Hi Team,

Can we get any solution about this requirement?

Thanks

Pramod

---

<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:** [February 19, 2019, 9:30pm UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/9 "2019-02-19T21:30:55Z")

</div>

Hey, @brianmelanson.

Apologies for the delayed response. I missed your question coming in. For the fastest response, please tag the user you are asking (e.g. @IsaacTakushi) so that we receive a notification.

Thanks for clarifying. The labels and option IDs for the `hubspot_team_id` property can be viewed [here](https://app.hubspot.com/property-settings/4064021/contact/hubspot_team_id).

You should also be able to pull the team labels and option IDs by using [this endpoint](https://developers.hubspot.com/docs/methods/companies/get_contact_property), specifically:

`https://api.hubapi.com/properties/v1/contacts/properties/named/hubspot_team_id`

However, I’m currently not seeing anything returned in the `options` array, unlike other dropdown-type properties I’ve tested. I’ll look into this, but as I said, the same data is visible in-app [here](https://app.hubspot.com/property-settings/4064021/contact/hubspot_team_id).

---

<div class="post-metadata">

**Author:** ![viktoratfunnel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/viktoratfunnel/32/58551_2.png) [@viktoratfunnel](https://community.hubspot.com/u/viktoratfunnel)\
**Post date:** [October 30, 2019, 7:41am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/10 "2019-10-30T07:41:55Z")

</div>

Hi @IsaacTakushi,

We have the same problem as Brian. I have tried your suggested endpoint: [https://api.hubapi.com/properties/v1/contacts/properties/named/hubspot\_team\_id](https://api.hubapi.com/properties/v1/contacts/properties/named/hubspot_team_id)but I get an empty options array as well.

Is there any way we could get Hubspot team labels from the API? We ran into the same issue with Owner Ids but we were able to solve it by mapping the Ids with the response from this endpoint [https://developers.hubspot.com/docs/methods/owners/get\_owners](https://developers.hubspot.com/docs/methods/owners/get_owners).

Best regards,

Viktor, Developer @ Funnel

---

<div class="post-metadata">

**Author:** ![Richard\_Wein](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/richard_wein/32/2401_2.png) [@Richard\_Wein](https://community.hubspot.com/u/Richard_Wein)\
**Post date:** [November 15, 2019, 3:34pm UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/11 "2019-11-15T15:34:07Z")

</div>

Hello. I’ve just come across the same problem. The Get A Deal endpoint returns Team IDs in fields like “hubspot\_team\_id” and “hs\_all\_team\_ids”, but I have no way of getting the corresponding team labels to display to my users.

---

<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:** [November 15, 2019, 4:43pm UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/12 "2019-11-15T16:43:54Z")

</div>

Hi, all.

Apologies for the delayed response.

At this time, team data is _not_ surfaced via the [Owners API](https://developers.hubspot.com/docs/methods/owners/get_owners). Currently, the only way to view team labels and IDs is in app by navigating to **Settings** \> **Properties** \> **Contact properties** \> **HubSpot**  **team** \> **Edit**. See the screenshot below:

\*\*

 ![Team labels and IDs.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/f/bfba16a3a98388c6f089e704e00b20cf835f7222.jpeg)  
\*\*

That said, we are working to add team support to the Owners API and expect changes to be released to [developer preview](https://developers.hubspot.com/docs/preview/preview-overview) in early 2020.

If you are beta-tolerant, willing to give active feedback, and agree to [HubSpot’s Developer Beta Terms](https://legal.hubspot.com/developerbetaterms), direct message me with your Hub ID and email and I will work to get you added to the private beta with this feature.

---

<div class="post-metadata">

**Author:** ![oswaldobiolo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/oswaldobiolo/32/86357_2.png) [@oswaldobiolo](https://community.hubspot.com/u/oswaldobiolo)\
**Post date:** [July 10, 2020, 1:24am UTC](https://community.hubspot.com/t/contacts-fields-in-api/12689/13 "2020-07-10T01:24:35Z")

</div>

Hi guys.

As Isaac said above, today this in possible in v3 api.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-crm-owners-v3%2Fguide)**

Below json response with object teams

```auto
{
 "results": [
 {
 "firstName": "John",
 "lastName": "Smith",
 "createdAt": "2019-10-30T03:30:17.883Z",
 "archived": false,
 "teams": [
 {
 "id": "178588",
 "name": "West Coast Sales"
 }
 ],
 "id": "6166860",
 "userId": 1296619,
 "email": "jsmith@example.com",
 "updatedAt": "2019-12-07T16:50:06.678Z"
 }
 ],
 "paging": {
 "next": {
 "after": "string",
 "link": "string"
 }
 }
}

```

I hope this helps you.
