# How to get all contacts property values using API?

**URL:** <https://community.hubspot.com/t/how-to-get-all-contacts-property-values-using-api/15489>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [July 25, 2019, 3:01pm UTC](https://community.hubspot.com/t/how-to-get-all-contacts-property-values-using-api/15489 "2019-07-25T15:01:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benchmark\_achen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/benchmark_achen/32/2401_2.png) [@Benchmark\_achen](https://community.hubspot.com/u/Benchmark_achen)\
**Post date:** [July 25, 2019, 3:01pm UTC](https://community.hubspot.com/t/how-to-get-all-contacts-property-values-using-api/15489/1 "2019-07-25T15:01:36Z")

</div>

Hi,

I was able to use the Hubspot API post/create new contacts in Hubspot using data from our database. Now, I want to GET these contacts data back along with their associated contact vid. I used the following API and it doesn’t seem to work:

[https://api.hubapi.com/contacts/v1/lists/all/contacts/all&property=vid&property=bnid\_&property=email](https://api.hubapi.com/contacts/v1/lists/all/contacts/all&property=vid&property=bnid_&property=email)

(note: bnid\_ is a custom property)

Let me know what need to be changed on the API in order to make it work.

Thanks,

Allan

---

<div class="post-metadata">

**Author:** ![lscanlan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lscanlan/32/66262_2.png) [@lscanlan](https://community.hubspot.com/u/lscanlan)\
**Post date:** [July 25, 2019, 10:18pm UTC](https://community.hubspot.com/t/how-to-get-all-contacts-property-values-using-api/15489/2 "2019-07-25T22:18:27Z")

</div>

Hi [@Benchmark\_achen](https://community.hubspot.com/t5/user/viewprofilepage/user-id/94325),

When you get data back from the endpoint documented here: [https://developers.hubspot.com/docs/methods/contacts/get\_contacts](https://developers.hubspot.com/docs/methods/contacts/get_contacts), you should be getting the contact’s vid in the response, along with the specific properties you’re requesting. If you’re making the request to the exact URL you wrote:

`https://api.hubapi.com/contacts/v1/lists/all/contacts/all&property=vid&property=bnid_&property=email`

that actually is beginning the query string incorrectly. propery=XXXX should be a query string parameter. So you actually want to be making your request to something like:

`https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=bnid_&property=email`

Take note that I’ve changed & to ? before the first query string parameter. I’ve also removed property=vid because that vid is not a contact property, but rather is unique to the contact record itself. If you make the request to that URL, you should get the specific properties you’re requesting, along with some other information about the contact record, including the vid.

If you’re still having trouble, let me know how you’re making the request and I’ll be happy to look again.

---

<div class="post-metadata">

**Author:** ![Benchmark\_achen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/benchmark_achen/32/2401_2.png) [@Benchmark\_achen](https://community.hubspot.com/u/Benchmark_achen)\
**Post date:** [July 26, 2019, 1:53am UTC](https://community.hubspot.com/t/how-to-get-all-contacts-property-values-using-api/15489/3 "2019-07-26T01:53:09Z")

</div>

Thank you Leland! Your suggestion works! I’m learning new things everyday on this Hubspot integration project…  
 ![16x16_smiley-happy.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/22d5e40d253def47f5f4ea7f0e3e70be19010689.png)

--Allan

---

<div class="post-metadata">

**Author:** ![WBHydrosense](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wbhydrosense/32/48165_2.png) [@WBHydrosense](https://community.hubspot.com/u/WBHydrosense)\
**Post date:** [October 15, 2020, 11:55am UTC](https://community.hubspot.com/t/how-to-get-all-contacts-property-values-using-api/15489/4 "2020-10-15T11:55:46Z")

</div>

Hi All,

Appologies if I am commenting in the wrong section but the parapiter for the maximum contact records you can get using this API is 100, is there a workaround to get all? if not what would be the api call for subsquient records when ‘has-more’ is true?

Thank you!

Will
