# Can you query custom properties?

**URL:** <https://community.hubspot.com/t/can-you-query-custom-properties/24070>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [August 11, 2020, 5:37pm UTC](https://community.hubspot.com/t/can-you-query-custom-properties/24070 "2020-08-11T17:37:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jboekholt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jboekholt/32/57633_2.png) [@jboekholt](https://community.hubspot.com/u/jboekholt)\
**Post date:** [August 11, 2020, 5:37pm UTC](https://community.hubspot.com/t/can-you-query-custom-properties/24070/1 "2020-08-11T17:37:37Z")

</div>

I am looking for an api that wil query companies and only return those based on the value of a custom property that I have created.

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [August 12, 2020, 6:40am UTC](https://community.hubspot.com/t/can-you-query-custom-properties/24070/2 "2020-08-12T06:40:17Z")

</div>

Hey @jboekholt,

Just to clarify, are you looking to retrieve all companies and you’d like to only show the custom properties on the return response? If so, while some default properties will also get return on the response body, you can using the parameters “&properties” to specific the properties that you’d like to be returned in the response

i.e. GET /crm/v3/objects/companies?properties=custompropertyname

Or, are you looking to search and return only companies that has a certain custom property value?

i.e. find all companies with custompropertyname value equal to 123?

If so, you can explore the option of using the [CRM API | Search](https://developers.hubspot.com/docs/api/crm/search)
