# Search Contact by specific property value

**URL:** <https://community.hubspot.com/t/search-contact-by-specific-property-value/27296>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [October 28, 2020, 9:20am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296 "2020-10-28T09:20:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![testuser27](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/testuser27/32/35493_2.png) [@testuser27](https://community.hubspot.com/u/testuser27)\
**Post date:** [October 28, 2020, 9:20am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/1 "2020-10-28T09:20:54Z")

</div>

Hello,  
I have one dropdown for locations in contact and i want to search contact by specific location using api but i didn’t get any related post where i can filter contact by having fix property value using API.  
Can you please help me to as fast as possible to filter contact by specific property value using api?

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [October 28, 2020, 10:22am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/2 "2020-10-28T10:22:52Z")

</div>

Hi @testuser27

do yo u want to request directly an api endpoint or do you want to use a sdk ? Does this code is standalone or is part of an exiting code you have with already hubspot integration ?

---

<div class="post-metadata">

**Author:** ![testuser27](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/testuser27/32/35493_2.png) [@testuser27](https://community.hubspot.com/u/testuser27)\
**Post date:** [October 28, 2020, 10:29am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/3 "2020-10-28T10:29:21Z")

</div>

It is part of hubspot integration. Anyhow i have managed to search contacts with specific property value but api is not returning all properties so if you have idea how to get all properties then pls help for that.

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [October 28, 2020, 10:31am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/4 "2020-10-28T10:31:44Z")

</div>

Do you want to use sdk or api endpoint ?  
Your issue is not on searching on specific properties it’s that you don’t get all the field you want as return of the request ?

---

<div class="post-metadata">

**Author:** ![testuser27](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/testuser27/32/35493_2.png) [@testuser27](https://community.hubspot.com/u/testuser27)\
**Post date:** [October 28, 2020, 10:34am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/5 "2020-10-28T10:34:48Z")

</div>

Firstly issue was about search but after that i got solutions for search but using below endpoint i’m not getting all properties list.  
[https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=apikey](https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=apikey)

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [October 28, 2020, 10:51am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/6 "2020-10-28T10:51:32Z")

</div>

You can use this enpoint to list all your contact :

`https://api.hubapi.com/crm/v3/objects/contacts?hapikey={apiKey}&properties=lastname`

Just have to add a “&properties={propertyName}” for each additional field you want and loop over pagination

---

<div class="post-metadata">

**Author:** ![testuser27](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/testuser27/32/35493_2.png) [@testuser27](https://community.hubspot.com/u/testuser27)\
**Post date:** [October 28, 2020, 10:59am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/7 "2020-10-28T10:59:56Z")

</div>

You didn’t get my point let me explain scenario. Firstly i will get contacts for search api by post below data

```lia-code-sample
{
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "referring_office_test",
 "operator": "EQ",
 "value": "61352"
 }
 ]
 }
 ]
}

```

Above api will give contact who have this property value and this return only below properties

```lia-code-sample
"results": [
 {
 "id": "189601",
 "properties": {
 "createdate": "2020-07-24T00:59:14.277Z",
 "email": "dekiefte@iinet.net.au",
 "firstname": "CATHERINE",
 "hs_object_id": "189601",
 "lastmodifieddate": "2020-09-22T23:20:13.267Z",
 "lastname": "DE KIEFTE"
 },
 "createdAt": "2020-07-24T00:59:14.277Z",
 "updatedAt": "2020-09-22T23:20:13.267Z",
 "archived": false
 }
]

```

So my query is i want to get all properties list using this api.

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [October 28, 2020, 11:10am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/8 "2020-10-28T11:10:17Z")

</div>

Can you post me all your request code ?

---

<div class="post-metadata">

**Author:** ![testuser27](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/testuser27/32/35493_2.png) [@testuser27](https://community.hubspot.com/u/testuser27)\
**Post date:** [October 30, 2020, 7:18am UTC](https://community.hubspot.com/t/search-contact-by-specific-property-value/27296/9 "2020-10-30T07:18:17Z")

</div>

Thank you for support. My issue is resolved your suggestions helped me to resolve this.
