# Get all recent modified companies

**URL:** <https://community.hubspot.com/t/get-all-recent-modified-companies/69080>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [November 11, 2022, 9:38am UTC](https://community.hubspot.com/t/get-all-recent-modified-companies/69080 "2022-11-11T09:38:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hernanmaguina](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hernanmaguina](https://community.hubspot.com/u/hernanmaguina)\
**Post date:** [November 11, 2022, 9:38am UTC](https://community.hubspot.com/t/get-all-recent-modified-companies/69080/1 "2022-11-11T09:38:47Z")

</div>

Hello Hubspot,

We need to get the last modified companies; in the API V2, there is an Endpoint [https://api.hubapi.com/companies/v2/companies/recent/modified](https://api.hubapi.com/companies/v2/companies/recent/modified)

Now we are trying to switch to the V3. Which one would be a similar Endpoint in the V3? I’m trying to get these from **crm/v3/objects/companies/recent** but the API is returning:

```lia-code-sample
{
 "status": "error",
 "message": "Object not found. objectId are usually numeric.",
 "correlationId": "XXXXXXX-YYYYY-FFFF-CCCC-DDDDDDDDDDD",
 "context": {
 "id": [
 "recent"
 ]
 },
 "category": "OBJECT_NOT_FOUND"
}

```

Thanks in advance!

---

<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:** [November 11, 2022, 10:07am UTC](https://community.hubspot.com/t/get-all-recent-modified-companies/69080/2 "2022-11-11T10:07:24Z")

</div>

Hi there,

It doesn’t seem like there is a recently modified endpoint in v3. How about using the Search Endpoint? [Search the CRM - HubSpot docs](https://developers.hubspot.com/docs/api/crm/search)

Then do a sort by **hs\_lastmodifieddate** and you’d be able to achieve similar results.

Cheers

WL

---

<div class="post-metadata">

**Author:** ![hernanmaguina](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hernanmaguina](https://community.hubspot.com/u/hernanmaguina)\
**Post date:** [November 11, 2022, 2:41pm UTC](https://community.hubspot.com/t/get-all-recent-modified-companies/69080/3 "2022-11-11T14:41:48Z")

</div>

[@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264) Thank you for your advice. I’ll try it.
