# Filter contacts by id

**URL:** <https://community.hubspot.com/t/filter-contacts-by-id/43023>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, free, professional, timeline-and-extensions-apis\
**Created:** [August 27, 2021, 5:27pm UTC](https://community.hubspot.com/t/filter-contacts-by-id/43023 "2021-08-27T17:27:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kizus](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kizus/32/97852_2.png) [@kizus](https://community.hubspot.com/u/kizus)\
**Post date:** [August 27, 2021, 5:27pm UTC](https://community.hubspot.com/t/filter-contacts-by-id/43023/1 "2021-08-27T17:27:14Z")

</div>

Hello everyone,  
I am trying to filter/get a contact using the endpoint  
**POST** /crm/v3/objects/contacts/search

I am building the request like that:

```lia-code-sample
{
 "filters": [
 {
 "operator": "EQ",
 "propertyName": "id",
 "value": "7951"
 }
 ]
}

```

However, this returns an error like

```lia-code-sample
{
 "status": "error",
 "message": "There was a problem with the request.",
 "correlationId": "a517c46c-c5ec-4057-8cdd-03954b3d6fbe"
}

```

Some weeks ago, filtering by the id like that was working. Right now it is not.  
Now changing the filter to consider another property, filtering by email for example, the request is well succeded. What is wrong? Can someone help me/w

---

<div class="post-metadata">

**Author:** ![miljkovicmisa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miljkovicmisa/32/86357_2.png) [@miljkovicmisa](https://community.hubspot.com/u/miljkovicmisa)\
**Post date:** [August 28, 2021, 10:01am UTC](https://community.hubspot.com/t/filter-contacts-by-id/43023/2 "2021-08-28T10:01:41Z")

</div>

Hello @kizus , thank you for writing!

For the [CRM Search API](https://developers.hubspot.com/docs/api-reference/latest/crm/search-the-crm), use `hs_object_id` to filter contacts by their HubSpot Record ID. The `vid` identifier comes from HubSpot’s older contact API conventions.

_Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 23, 2026. Thank you for your contributions to the HubSpot Community!_

---

<div class="post-metadata">

**Author:** ![kizus](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kizus/32/97852_2.png) [@kizus](https://community.hubspot.com/u/kizus)\
**Post date:** [August 30, 2021, 5:28pm UTC](https://community.hubspot.com/t/filter-contacts-by-id/43023/3 "2021-08-30T17:28:05Z")

</div>

Hello @miljkovicmisa , thanks by your answer. I tested your suggestion and it really works.  
I found out another way to filter by the contact id using the property **hs\_object\_id,** like that

```lia-code-sample
{
 "filters": [
 {
 "operator": "EQ",
 "propertyName": "hs_object_id",
 "value": "7951"
 }
 ]
}

```

So thank you!
