# GET specific information

**URL:** <https://community.hubspot.com/t/get-specific-information/107710>\
**Category:** APIs & Integrations\
**Tags:** companies, object, contacts\
**Created:** [May 22, 2024, 9:48am UTC](https://community.hubspot.com/t/get-specific-information/107710 "2024-05-22T09:48:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![devphoenix](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/devphoenix/32/55778_2.png) [@devphoenix](https://community.hubspot.com/u/devphoenix)\
**Post date:** [May 22, 2024, 9:48am UTC](https://community.hubspot.com/t/get-specific-information/107710/1 "2024-05-22T09:48:55Z")

</div>

Hi Team,

Could you please help in this problem statement,  
**Case :** Do we have any parameter for these APIs that allows us to fetch only specific records after a certain time? For example, suppose my HubSpot account has 10 records, and we fetch these 10 records on May 21, 2024, at 01:00 PM. After that, we add 2 new records and modify 1 of the existing 10 records. When we hit the API on May 22, 2024, at 01:00 PM, we want to receive only the 2 new records and the 1 modified record.  
API’s

- [https://api.hubapi.com/crm/v3/objects/companies](https://api.hubapi.com/crm/v3/objects/companies)
- [https://api.hubapi.com/crm/v3/objects/contacts](https://api.hubapi.com/crm/v3/objects/contacts)
- [https://api.hubapi.com/crm/v3/objects/deals](https://api.hubapi.com/crm/v3/objects/deals)
- [https://api.hubapi.com/contacts/v1/lists/1/contacts/all?&property=email&property=firstname&property=lastname](https://api.hubapi.com/contacts/v1/lists/1/contacts/all?&property=email&property=firstname&property=lastname)

Please let me know if you need any further details or clarification.

Thank you!

---

<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:** [May 22, 2024, 7:39pm UTC](https://community.hubspot.com/t/get-specific-information/107710/2 "2024-05-22T19:39:05Z")

</div>

Hey, @devphoenix 👋 The Search API will be your best bet. It allows for search operators like [GT, GTE, LT, LTE, and BETWEEN](https://developers.hubspot.com/docs/api/crm/search#filter-search-results). The CRM endpoints you linked to do not allow for filtering and using search operators.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![devphoenix](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/devphoenix/32/55778_2.png) [@devphoenix](https://community.hubspot.com/u/devphoenix)\
**Post date:** [June 7, 2024, 4:37pm UTC](https://community.hubspot.com/t/get-specific-information/107710/3 "2024-06-07T16:37:06Z")

</div>

Could you please help here, my below CURL is not working  
curl --location ‘[https://api.hubapi.com/crm/v3/objects/companies/search](https://api.hubapi.com/crm/v3/objects/companies/search)’ \  
--header ‘Content-Type: application/json’ \  
--header ‘Accept: application/json’ \  
--header ‘Authorization: Bearer NOPE’ \  
--data ‘{  
“filters”: [  
{  
“propertyName”: “updatedAt”,  
“operator”: “EQ”,  
“value”: “2024-06-04T14:25:53.231Z”  
}  
]  
}’

 ![devphoenix_0-1717778217901.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/b/ab0d9e474b97b228eeecd09784854bc82d8a1b0f.png)

Thanks in advance

---

<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:** [June 7, 2024, 5:20pm UTC](https://community.hubspot.com/t/get-specific-information/107710/4 "2024-06-07T17:20:49Z")

</div>

Hey @devphoenix 👋 One issue I see is that `updatedAt` is not a property itself. `updatedAt` is a value that is part of the response for other properties. Essentially, each property can have metadata like `updatedAt` that shows when the property was last updated, but you can’t use `updatedAt` directly as a property in your API calls. We can verify this by making a request to the Properties API:

Request

```lia-code-sample
curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/properties/company/updatedAt?archived=false' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

```

Response

```lia-code-sample
HTTP 404

{
 "status": "error",
 "message": "No property named 'updatedAt' exists.",
 "correlationId": "b9983aa0-b4cd-4a69-86d9-12ea5b5028b7",
 "context": {
 "name": [
 "updatedAt"
 ]
 },
 "category": "OBJECT_NOT_FOUND",
 "subCategory": "Properties.PROPERTY_NOT_FOUND"
}

```

Have you tried using the `hs_lastmodifieddate` property? This property updates any time any property on an object record is changed, reflecting the most recent update timestamp. You can leverage `hs_lastmodifieddate` to filter or sort your search results based on when records were last modified.

I hope this helps get you moving forward! — Jaycee  
PS, you included your Private App key in your reply. I removed it, but you should consider rotating it to be safe.

---

<div class="post-metadata">

**Author:** ![devphoenix](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/devphoenix/32/55778_2.png) [@devphoenix](https://community.hubspot.com/u/devphoenix)\
**Post date:** [June 8, 2024, 3:22pm UTC](https://community.hubspot.com/t/get-specific-information/107710/5 "2024-06-08T15:22:39Z")

</div>

Thanks 😀

---

<div class="post-metadata">

**Author:** ![devphoenix](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/devphoenix/32/55778_2.png) [@devphoenix](https://community.hubspot.com/u/devphoenix)\
**Post date:** [June 10, 2024, 1:22pm UTC](https://community.hubspot.com/t/get-specific-information/107710/6 "2024-06-10T13:22:25Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)

GET {{baseUrl}}/crm/v3/objects/companies ?properties=company\_name&properties=industry &propertiesWithHistory=annual\_revenue&propertiesWithHistory=num\_employees &associations=contacts&associations=deals &archived=false&filter=hs\_lastmodifieddate eq 2024-06-10T14:25:53.231Z  
with this filter=hs\_lastmodifieddate eq 2024-06-10T14:25:53.231Z is not working, could you please help here!! I don’t want to use

`/search`

Thanks
