# get contact : company using API

**URL:** <https://community.hubspot.com/t/get-contact-company-using-api/76425>\
**Category:** APIs & Integrations\
**Tags:** python, companies, contacts\
**Created:** [March 3, 2023, 8:02am UTC](https://community.hubspot.com/t/get-contact-company-using-api/76425 "2023-03-03T08:02:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bintangazhari](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bintangazhari](https://community.hubspot.com/u/bintangazhari)\
**Post date:** [March 3, 2023, 8:02am UTC](https://community.hubspot.com/t/get-contact-company-using-api/76425/1 "2023-03-03T08:02:06Z")

</div>

Hi Devs,

My name is Bintang, I am actually quite new with this platform and have a basic of programming language.

Currently I have a goal to pull all the contact data using API in python. I follow the github repo by using get\_all:

 ![test.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/6/968e4fbafa7a00f104c5763973eae42b4bfa616d.png)

using this method, i can get the contact data, but it is not completed. It doesn’t include like the company data, contact owner, and phone number. In the code there is also a note stated that “pagination is used under the hood to get all results”.

Could somebody please explain me what this sentence means and how is the step i should do/read to achieve this goal?

I really appreciate your kind effort.

Thanks,

---

<div class="post-metadata">

**Author:** ![skimura](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@skimura](https://community.hubspot.com/u/skimura)\
**Post date:** [March 3, 2023, 8:56am UTC](https://community.hubspot.com/t/get-contact-company-using-api/76425/2 "2023-03-03T08:56:12Z")

</div>

@bintangazhari

Hi.

How about set optional parameter “properties”?

_:param list[str] properties: A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored._

[https://github.com/HubSpot/hubspot-api-python/blob/master/hubspot/crm/contacts/api/basic\_api.py#L389](https://github.com/HubSpot/hubspot-api-python/blob/master/hubspot/crm/contacts/api/basic_api.py#L389)

```lia-code-sample
# not tested
all_contacts = api_client.crm.contacts.get_all(properties=["foo","bar"])

```

Thanks.

---

<div class="post-metadata">

**Author:** ![bintangazhari](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bintangazhari](https://community.hubspot.com/u/bintangazhari)\
**Post date:** [March 3, 2023, 9:41am UTC](https://community.hubspot.com/t/get-contact-company-using-api/76425/3 "2023-03-03T09:41:33Z")

</div>

Hi @skimura ,

Thanks for your reply and your reference.

After exploring, i found associations\_api.py which contains get\_all function.

But, i can’t find the list of parameters that i can use to get the company name.

Or maybe do you know where I can find the parameter list so I can set some parameter to include the company info?

Thanks,

---

<div class="post-metadata">

**Author:** ![skimura](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@skimura](https://community.hubspot.com/u/skimura)\
**Post date:** [March 3, 2023, 9:53am UTC](https://community.hubspot.com/t/get-contact-company-using-api/76425/4 "2023-03-03T09:53:20Z")

</div>

@bintangazhari

Hi.

“But, i can’t find the list of parameters that i can use to get the company name.”

You need property’s " **Internal name"** , it used by API request “property”.

Please check this, and find your property’s internal name.

> **[Create and edit properties](https://knowledge.hubspot.com/properties/create-and-edit-properties)**
>
> Learn how to create custom properties manually or using Breeze. Also learn how to edit or clone existing custom properties.

Thanks.

---

<div class="post-metadata">

**Author:** ![bintangazhari](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bintangazhari](https://community.hubspot.com/u/bintangazhari)\
**Post date:** [March 6, 2023, 4:07am UTC](https://community.hubspot.com/t/get-contact-company-using-api/76425/5 "2023-03-06T04:07:53Z")

</div>

Hi @skimura

Thanks for your kind support.

After following your guidance to check the internal name, and adding the properties, finally i can pull the company name.

Thanks for your kind support!
