# recently updated contacts

**URL:** <https://community.hubspot.com/t/recently-updated-contacts/61332>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [July 20, 2022, 11:38am UTC](https://community.hubspot.com/t/recently-updated-contacts/61332 "2022-07-20T11:38:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KGaur](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@KGaur](https://community.hubspot.com/u/KGaur)\
**Post date:** [July 20, 2022, 11:38am UTC](https://community.hubspot.com/t/recently-updated-contacts/61332/1 "2022-07-20T11:38:09Z")

</div>

Hi  
I am trying to get contacts that were created or updated in last 24 hours.  
when i hit the API :

**/contacts/v1/lists/recently\_updated/contacts/recent?hapikey={My\_Key\_Secret}**

**It returned last 30 days of updated/created contact. Could any one help in this ?**

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [July 20, 2022, 12:59pm UTC](https://community.hubspot.com/t/recently-updated-contacts/61332/2 "2022-07-20T12:59:14Z")

</div>

Hi @KGaur,

I don’t know about that endpoint but it’s v1 and it looks like there are better options available to you now.

Have you tried using the [search the CRM](https://developers.hubspot.com/docs/api/crm/search) endpoint ?

There’s even an example on that page really close to what you’re trying to achieve, getting all contacts updated between two timestamps :

```lia-code-sample
curl https://api.hubapi.com/crm/v3/objects/contacts/search \
 --request POST \
 --header "Content-Type: application/json" \
 --data '{
 "filterGroups":[{
 "filters":[
 {
 "propertyName":"hs_lastmodifieddate",
 "operator":"BETWEEN",
 "highValue": "1642672800000",
 "value":"1579514400000"
 }
]
}
]'
}

```

Make a call to that endpoint and as a filter:

- use the same field : “hs\_lastmodifieddate”

- use the same operator “between”

- change the values to the current timestamp and another one where you’ll substract 24 hours.

I reckon this will be even more helpful since you’ll be able to sort the results by any property you like, making it easier to manage.

Hope this helps !  
If it does, please consider marking this answer as a solution 🙂

Best,

Ludwig

---

<div class="post-metadata">

**Author:** ![KGaur](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@KGaur](https://community.hubspot.com/u/KGaur)\
**Post date:** [July 21, 2022, 5:25am UTC](https://community.hubspot.com/t/recently-updated-contacts/61332/3 "2022-07-21T05:25:24Z")

</div>

Thanks @LMeert , That went really well. But i could not get all the data i needed. Got only 10 as i applied  
“limit”:100 , could you please help in how to go to next page ?  
Thanks a ton

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [July 21, 2022, 9:57am UTC](https://community.hubspot.com/t/recently-updated-contacts/61332/4 "2022-07-21T09:57:09Z")

</div>

Hi @KGaur,

No worries, glad I could help !  
To get to the next page you simply run the same call but you add another parameter to the body :

“after”: [value].  
The value is equal to the paging.next.after value you receive in the previous call.

 ![LMeert_0-1658397339157.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b205a62d69f51415773b0bac7f4390abba77ef42.png)

See example above, I’ve already run the call to get the second page, and the result is the bottom arrow =\> “paging.next.after” : “200”, and to get the third page I wrote the same call but added an “after”:200 to get to the next page.

Hope this helps !  
If it does, please consider marking this answer as a solution 🙂

Best,

Ludwig

---

<div class="post-metadata">

**Author:** ![KGaur](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@KGaur](https://community.hubspot.com/u/KGaur)\
**Post date:** [July 21, 2022, 10:57am UTC](https://community.hubspot.com/t/recently-updated-contacts/61332/5 "2022-07-21T10:57:20Z")

</div>

Bingoo! Thanks @LMeert

---

<div class="post-metadata">

**Author:** ![Grawat](https://avatars.discourse-cdn.com/v4/letter/g/a698b9/32.png) [@Grawat](https://community.hubspot.com/u/Grawat)\
**Post date:** [April 5, 2024, 10:46am UTC](https://community.hubspot.com/t/recently-updated-contacts/61332/6 "2024-04-05T10:46:11Z")

</div>

Hi @LMeert ,

how to check the request we are making for getting modified contact having more records or not in version 3.

Likewise in version 2 we have “Hasmore” attribute is there any attribute in version or any logic for the checking the there is no more records
