# use API contacts

**URL:** <https://community.hubspot.com/t/use-api-contacts/19309>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [March 9, 2020, 1:22pm UTC](https://community.hubspot.com/t/use-api-contacts/19309 "2020-03-09T13:22:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayaramendes](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mayaramendes/32/53869_2.png) [@mayaramendes](https://community.hubspot.com/u/mayaramendes)\
**Post date:** [March 9, 2020, 1:22pm UTC](https://community.hubspot.com/t/use-api-contacts/19309/1 "2020-03-09T13:22:22Z")

</div>

`We would like to know how we can consult the customer's phone number via API?`

` `

**Consulta Contacts:** [https://api.hubapi.com/crm/v3/objects/contacts?limit=10&archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2](https://api.hubapi.com/crm/v3/objects/contacts?limit=10&archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2)

**Consulta ID Contact:** [https://api.hubapi.com/crm/v3/objects/contacts/101?archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2](https://api.hubapi.com/crm/v3/objects/contacts/101?archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2)

**Consulta Companies:** [https://api.hubapi.com/crm/v3/objects/companies?limit=10&archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2](https://api.hubapi.com/crm/v3/objects/companies?limit=10&archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2)

**Consulta ID Companie:** [https://api.hubapi.com/crm/v3/objects/companies/3137229502?archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2](https://api.hubapi.com/crm/v3/objects/companies/3137229502?archived=false&hapikey=04fac28e-acb1-46aa-8d52-8c0cb0e75ce2)

---

<div class="post-metadata">

**Author:** ![prosa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/prosa/32/4387_2.png) [@prosa](https://community.hubspot.com/u/prosa)\
**Post date:** [March 9, 2020, 1:48pm UTC](https://community.hubspot.com/t/use-api-contacts/19309/2 "2020-03-09T13:48:12Z")

</div>

using the api you can pass in the URL what props you want if you dont want to pull the whole set of props. just app &property=phone .. the &property param can be use multiple time in the same request. So, you can request all the props you need from the user. I would recommend using the get contact by email api endpoind

[https://developers.hubspot.com/docs/methods/contacts/get\_contact\_by\_email](https://developers.hubspot.com/docs/methods/contacts/get_contact_by_email)

BTW. if that is your api in production you should remove it from this portal.

tesf

![16x16_robot-very-happy.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/ee77e8f80d770ff1ac60a5e52baff8fe2808401a.png)  
If this helped you solve you issue please consider selecting this post as the answer to your question

---

<div class="post-metadata">

**Author:** ![mayaramendes](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mayaramendes/32/53869_2.png) [@mayaramendes](https://community.hubspot.com/u/mayaramendes)\
**Post date:** [March 9, 2020, 2:38pm UTC](https://community.hubspot.com/t/use-api-contacts/19309/3 "2020-03-09T14:38:03Z")

</div>

Via e-mail it is impossible, because I will consult in your CRM when I receive a call, so this consultation should be via phone

---

<div class="post-metadata">

**Author:** ![prosa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/prosa/32/4387_2.png) [@prosa](https://community.hubspot.com/u/prosa)\
**Post date:** [March 9, 2020, 2:52pm UTC](https://community.hubspot.com/t/use-api-contacts/19309/4 "2020-03-09T14:52:37Z")

</div>

you could try to sync your contacts with and external application on your own servers to create and index of phonenumner/users id and use that to get the user ID and pull their information from hubspot. There is no api endpoind that will let you find a contact using their phone number or other prop other than email/name or user id

---

<div class="post-metadata">

**Author:** ![mayaramendes](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mayaramendes/32/53869_2.png) [@mayaramendes](https://community.hubspot.com/u/mayaramendes)\
**Post date:** [March 9, 2020, 6:50pm UTC](https://community.hubspot.com/t/use-api-contacts/19309/5 "2020-03-09T18:50:16Z")

</div>

do you have any API to record calls from a PBX in CRM?
