# Querying custom objects

**URL:** <https://community.hubspot.com/t/querying-custom-objects/89675>\
**Category:** APIs & Integrations\
**Tags:** enterprise\
**Created:** [September 14, 2023, 3:14pm UTC](https://community.hubspot.com/t/querying-custom-objects/89675 "2023-09-14T15:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HKamminga](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@HKamminga](https://community.hubspot.com/u/HKamminga)\
**Post date:** [September 14, 2023, 3:14pm UTC](https://community.hubspot.com/t/querying-custom-objects/89675/1 "2023-09-14T15:14:02Z")

</div>

Hiya,

I am asking for a follow-up on this

[https://community.hubspot.com/t5/APIs-Integrations/Using-API-to-search-for-companies-based-on-a-specific-property/m-p/282906](https://community.hubspot.com/t5/APIs-Integrations/Using-API-to-search-for-companies-based-on-a-specific-property/m-p/282906)

Basically, the only way we could achieve this (searching / matching) by a custom propery would yield a situation where we will have to pull all companies in order to associate after a manual mapping of a custom property. Is this something in progress or unavoidable?  
For example, we want to hydrate a company registered with HS with data that is a custom object. But presently we have to make an association to HS’s internal Id to one of ours, it would be so much better if we could target the company in HS without doing a fetch, first if that makes sense. For example:

[https://api.hubapi.com/crm/v3/objects/companies?my\_random\_propery](https://api.hubapi.com/crm/v3/objects/companies?my_random_propery)

If this is something that is already in place, please let us know because we otherwise will have to do regular pulls against HS API and that seems wasteful?

I understand this may seem a bit disjointed but please advise.

Please advise.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 15, 2023, 9:47pm UTC](https://community.hubspot.com/t/querying-custom-objects/89675/2 "2023-09-15T21:47:16Z")

</div>

Hey, @HKamminga 👋 I’m not 100% sure. And I’d like to ask a question – is this a case where you’ve already the [Search API](https://developers.hubspot.com/docs/api/crm/search)?

Thank you! — Jaycee
