# Fetch a contact by a numeric custom property value

**URL:** <https://community.hubspot.com/t/fetch-a-contact-by-a-numeric-custom-property-value/97320>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [January 8, 2024, 12:26pm UTC](https://community.hubspot.com/t/fetch-a-contact-by-a-numeric-custom-property-value/97320 "2024-01-08T12:26:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvarofranz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alvarofranz/32/63428_2.png) [@alvarofranz](https://community.hubspot.com/u/alvarofranz)\
**Post date:** [January 8, 2024, 12:26pm UTC](https://community.hubspot.com/t/fetch-a-contact-by-a-numeric-custom-property-value/97320/1 "2024-01-08T12:26:31Z")

</div>

I am trying to retrieve a contact via the API based on the value of a custom property. This works fine if the custom poperty is of type: “Single line text”.

```lia-code-sample
const response = await hubspotClient.apiRequest({
 method: 'post',
 path: '/crm/v3/objects/contacts/search',
 body: {
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": 'original_hubspot_id',
 "operator": "EQ",
 "value": "whatever"
 }
 ]
 }
 ]
 }
 });

```

But if the property is of type “Numeric → Unformatted”, it won’t work. I tried as follows:

Without quotes:

```lia-code-sample
"filters": [
{
 "propertyName": 'original_hubspot_id',
 "operator": "EQ",
 "value": 4321
}

```

With quotes:

```lia-code-sample
"filters": [
{
 "propertyName": 'original_hubspot_id',
 "operator": "EQ",
 "value": "4321"
}

```

None of both options work. It returns 0 results, but I know that results exist.

---

<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:** [January 8, 2024, 10:46pm UTC](https://community.hubspot.com/t/fetch-a-contact-by-a-numeric-custom-property-value/97320/2 "2024-01-08T22:46:54Z")

</div>

Hey, @alvarofranz 👋 Thanks for your question and for including your example.

I set up a quick test and was able to return a result without issue. Here are my steps:

- Created a new custom Contact property

- The format was Number – unformatted

- Gave it the internal value of original\_hubspot\_id

- Went to a test contact and gave it a value of `0123456789`

- Used Postman to send the request  
`POST https://api.hubapi.com/crm/v3/objects/contacts/search​`

- Response

Can you check your formatting and try again?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![alvarofranz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alvarofranz/32/63428_2.png) [@alvarofranz](https://community.hubspot.com/u/alvarofranz)\
**Post date:** [January 10, 2024, 9:48am UTC](https://community.hubspot.com/t/fetch-a-contact-by-a-numeric-custom-property-value/97320/3 "2024-01-10T09:48:43Z")

</div>

Thanks for helping!
