# Company IDs

**URL:** <https://community.hubspot.com/t/company-ids/2014>\
**Category:** CRM\
**Created:** [May 12, 2017, 3:49pm UTC](https://community.hubspot.com/t/company-ids/2014 "2017-05-12T15:49:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![artiebha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/artiebha/32/9140_2.png) [@artiebha](https://community.hubspot.com/u/artiebha)\
**Post date:** [May 12, 2017, 3:49pm UTC](https://community.hubspot.com/t/company-ids/2014/1 "2017-05-12T15:49:48Z")

</div>

I’m looking for a way to get the ID number for each of my companies that I’ve loaded into Hubspot. I want to create a link in an external application so I can get to each individual company record. Can someone please point me to a way to accomplish this? I tried the API but could not get my HAPI key to work.

---

<div class="post-metadata">

**Author:** ![bradmin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bradmin/32/56633_2.png) [@bradmin](https://community.hubspot.com/u/bradmin)\
**Post date:** [May 12, 2017, 3:55pm UTC](https://community.hubspot.com/t/company-ids/2014/2 "2017-05-12T15:55:02Z")

</div>

Hi, @artiebha. You may have more success asking questions about development this on [developers.hubspot.com](http://developers.hubspot.com). Those pages also contain API docs that should have the schema you’re looking for. [This doc](https://developers.hubspot.com/docs/methods/companies/get_company) shows how to get the companyID from a company record. (Alternately, it may be easier to review the Contact Lists API, then retrieve the companyID from all contacts on a list.)

---

<div class="post-metadata">

**Author:** ![artiebha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/artiebha/32/9140_2.png) [@artiebha](https://community.hubspot.com/u/artiebha)\
**Post date:** [May 12, 2017, 4:06pm UTC](https://community.hubspot.com/t/company-ids/2014/3 "2017-05-12T16:06:59Z")

</div>

ok, I’ll go back there but like I said my HAPI key doesn’t work. I wish Hubspot would add an option to include the internal Hubspot CompanyID when exporting from the CRM interface.

---

<div class="post-metadata">

**Author:** ![bradmin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bradmin/32/56633_2.png) [@bradmin](https://community.hubspot.com/u/bradmin)\
**Post date:** [May 12, 2017, 4:11pm UTC](https://community.hubspot.com/t/company-ids/2014/4 "2017-05-12T16:11:05Z")

</div>

I understand the frustration. HubSpot Support isn’t likely to help with issues related to why a HAPI key may or may not be valid, but the community on the developer page can better speak to that. I recommend posting the question on the developer forums, along with any responses from invalid attempts.

Also, posting the suggestion about exposing the Company ID is a good suggestion for the ideas page in these forums. Making requests in the support forums are less likely to be seen by HubSpot product management, compared to the ideas board.

---

<div class="post-metadata">

**Author:** ![BustaGrimes](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bustagrimes/32/52876_2.png) [@BustaGrimes](https://community.hubspot.com/u/BustaGrimes)\
**Post date:** [July 27, 2018, 5:43pm UTC](https://community.hubspot.com/t/company-ids/2014/5 "2018-07-27T17:43:32Z")

</div>

I know this is an old thread, but my googling brought me to it and I’ve put together a work around. You can create a free Zapier account and create a zap workflow that takes all company/contact info that you map out of Hubspot and puts it into a google sheet (or a thousand other options).

The zaps are pretty self explanatory. Hope this helps.

---

<div class="post-metadata">

**Author:** ![artiebha](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/artiebha/32/9140_2.png) [@artiebha](https://community.hubspot.com/u/artiebha)\
**Post date:** [July 28, 2018, 6:50pm UTC](https://community.hubspot.com/t/company-ids/2014/6 "2018-07-28T18:50:03Z")

</div>

But that still doesn’t include the “CompanyID” field. That’s what I need. I found a way to loosely put back together. But I wish they would make it easy for us on just export.
