# How to fetch recently modified contacts based on timeoffset

**URL:** <https://community.hubspot.com/t/how-to-fetch-recently-modified-contacts-based-on-timeoffset/11560>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [October 11, 2018, 1:46pm UTC](https://community.hubspot.com/t/how-to-fetch-recently-modified-contacts-based-on-timeoffset/11560 "2018-10-11T13:46:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 11, 2018, 1:46pm UTC](https://community.hubspot.com/t/how-to-fetch-recently-modified-contacts-based-on-timeoffset/11560/1 "2018-10-11T13:46:25Z")

</div>

I want to collect contacts from HubSpot. This process will involves large number of contacts. The initial list of contacts present in portal were consumed through “Get all contacts [API](https://developers.hubspot.com/docs/methods/contacts/get_contacts)”. But when I am trying to fetch updated/created contacts after previous request using timestamp offset returns contacts which are not modified through [API](https://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts)

I passed current time in milliseconds as a timeOffset param value. Actually I am expecting API should return empty results. Because I didn’t do nothing in my portal. But it returns contacts having timestamp before the one that I have passed.

Any example or suggestions, how to fetch the modified contacts intelligently.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 12, 2018, 4:29pm UTC](https://community.hubspot.com/t/how-to-fetch-recently-modified-contacts-based-on-timeoffset/11560/2 "2018-10-12T16:29:21Z")

</div>

Hi [@Kalpana\_Prakasam](https://community.hubspot.com/u/kalpana_prakasam),

The `timeOffset` parameter cannot be used to limit results on the first call to [this endpoint](https://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts). The _Get recently updated and created contacts_ endpoint always returns the most recently updated or created contacts in reverse chronological order.

Thus, no contacts have been created or updated since the first `addedAt` value returned.

Derek describes the functionality in more detail in [this topic](https://integrate.hubspot.com/t/get-recently-created-contacts-after-x/10476).
