# How to search for specific Custom Object Record using API

**URL:** <https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804>\
**Category:** APIs & Integrations\
**Tags:** workflows, developer-tools\
**Created:** [January 27, 2024, 1:14am UTC](https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804 "2024-01-27T01:14:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AutomateMyBiz](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@AutomateMyBiz](https://community.hubspot.com/u/AutomateMyBiz)\
**Post date:** [January 27, 2024, 1:14am UTC](https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804/1 "2024-01-27T01:14:24Z")

</div>

Hey, I would like to search for a specifc record on a custom object record.

The unique identifier is the email which is the name and require propery on this custom object, could anyone let me know if this is possible?

 ![AutomateMyBiz_0-1706317930944.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/4/742be10cf20a2684de997fe52fcb46788c0818eb.png)

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [January 27, 2024, 6:33am UTC](https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804/2 "2024-01-27T06:33:59Z")

</div>

Hi @AutomateMyBiz 👋

If you haven’t already, it might be helpful to read [HubSpot’s CRM Search API docs](https://developers.hubspot.com/docs/api/crm/search). An example request:

**Method & Endpoint**

**POST** [https://api.hubapi.com/crm/v3/objects/\*\*example\*\*/search](https://api.hubapi.com/crm/v3/objects/ **example** /search)

- Where _ **example** _ is the internal “name” of the custom object

**Headers**

Content-Type: application/json

Authorization: Bearer _YOUR\_ACCESS\_TOKEN_

**Body (JSON)**

```lia-code-sample
{
 "limit": 100,
 "properties": [
 "test_prop_2",
 "test_prop_3"
 ],
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "test_prop_1",
 "operator": "EQ",
 "value": "example"
 }
 ]
 }
 ]
}

```

- The API response will include any _ **example** _ records where _test\_prop\_1_ is equal to “example”
- _test\_prop\_2_ and _test\_prop\_3_ will be returned in the response per record

I hope this proves useful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![CGorczynski](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@CGorczynski](https://community.hubspot.com/u/CGorczynski)\
**Post date:** [January 16, 2025, 10:06am UTC](https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804/3 "2025-01-16T10:06:20Z")

</div>

Hi,

I already checked the solution and it doesn’t work for me.

I tried to get the results via Postman (I’m not using Hubpospot’s collection).

As the first step, I get the names of custom objects by sending a request to [https://api.hubapi.com/crm/v3/schemas](https://api.hubapi.com/crm/v3/schemas).  
In the next step, I decided to send the request as you suggested so I modified the URL and condition to get only objects modified since the beginning of this year…

```lia-code-sample
{
 "limit": 100,
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "hs_lastmodifieddate",
 "operator": "GT",
 "value": "17357442880"
 }
 ]
 }
 ]
}

```

but I received an error below

 ![CGorczynski_0-1737021704576.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/1/61e2327d39d1398e2aa1054769758db9c24aa05b.png)

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![CGorczynski](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@CGorczynski](https://community.hubspot.com/u/CGorczynski)\
**Post date:** [January 16, 2025, 10:12am UTC](https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804/4 "2025-01-16T10:12:09Z")

</div>

The error above I get because of the **GET method** but after changing to **POST** I received

{

“status”: “error”,

“message”: “Unable to infer object type from: xxxxxxx (object name)”,

“correlationId”: “a6ff1888-80f3-4a74-958e-0e30bb6c60f9”

}

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [January 16, 2025, 9:06pm UTC](https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804/5 "2025-01-16T21:06:59Z")

</div>

Hi @CGorczynski 👋

This usually means your referencing an invalid custom object identifier in your request URL. You can use any of the following custom object schema attributes as your identifier in request URLs:

1. **name** (e.g. “example”, case-sensitive, will no longer work starting ~April 2025)
2. **fullyQualifiedName** (e.g. “p12345\_example”)
3. **objectTypeId** (e.g. “2-12345”)
4. **“Short hand” custom object name** (e.g. “p\_example”)

I hope that helps. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![CGorczynski](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@CGorczynski](https://community.hubspot.com/u/CGorczynski)\
**Post date:** [January 17, 2025, 1:46pm UTC](https://community.hubspot.com/t/how-to-search-for-specific-custom-object-record-using-api/98804/6 "2025-01-17T13:46:12Z")

</div>

I have double-checked the name as the potential issue source but I’m sure that name is correct.

But when I used **fullyQualifiedName** everything worked perfectly 🙂

Thanks, Zach!
