# Request to get all hs\_object\_ids

**URL:** <https://community.hubspot.com/t/request-to-get-all-hs-object-ids/70479>\
**Category:** APIs & Integrations\
**Created:** [December 2, 2022, 9:05pm UTC](https://community.hubspot.com/t/request-to-get-all-hs-object-ids/70479 "2022-12-02T21:05:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eibach-cv](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eibach-cv/32/52876_2.png) [@eibach-cv](https://community.hubspot.com/u/eibach-cv)\
**Post date:** [December 2, 2022, 9:05pm UTC](https://community.hubspot.com/t/request-to-get-all-hs-object-ids/70479/1 "2022-12-02T21:05:12Z")

</div>

Is there a request/way to get the hs\_object\_id for all object data in Hubspot?

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [December 5, 2022, 10:07am UTC](https://community.hubspot.com/t/request-to-get-all-hs-object-ids/70479/2 "2022-12-05T10:07:22Z")

</div>

Hi there,

You might want to try the search endpoint: [Search the CRM - HubSpot docs](https://developers.hubspot.com/docs/api/crm/search)

Simply specify an empty search request and specify only the property you want as the body:

```lia-code-sample
{
 "properties": [
 "hs_object_id"
 ]
}

```

You’ll be returned with an array of all object IDs, similar to this:

 ![weiliang_lee_0-1670234821046.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/8/d8f98efd63af394efb277166dc5537a6357cead4.png)

Cheers

WL
