# Get recently created contacts API issue

**URL:** <https://community.hubspot.com/t/get-recently-created-contacts-api-issue/11575>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [October 3, 2018, 9:19am UTC](https://community.hubspot.com/t/get-recently-created-contacts-api-issue/11575 "2018-10-03T09:19:46Z")\
**Posts on this page:** 3\
**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 3, 2018, 9:19am UTC](https://community.hubspot.com/t/get-recently-created-contacts-api-issue/11575/1 "2018-10-03T09:19:46Z")

</div>

I’m having some issues with the “Get recently created contacts” API call. I’m expecting it to return a list of contacts created since a specific time by passing timeOffset=X. However, I’m getting a paginated list of all contacts returned. Am I misreading the documentation?  
E.g. If I call `curl "api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=demo&count=10&timeOffset=1538557440000"`  
then the response includes contacts created **before** the timeOffset I have passed, which is not what I would expect.

Thanks,  
Simon

---

<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 3, 2018, 10:50am UTC](https://community.hubspot.com/t/get-recently-created-contacts-api-issue/11575/2 "2018-10-03T10:50:43Z")

</div>

Hi Simon

It does not seems to be feasible for now.

Instead you can read recently created contacts in descending order.  
First call without timeOffset - [api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=demo&count=10](http://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=demo&count=10)

and call API with pagination and check until timeOffset of last contact in API response is greater than the date from which you need contacts.

Hope this helps.

Salim

---

<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 4, 2018, 12:51am UTC](https://community.hubspot.com/t/get-recently-created-contacts-api-issue/11575/3 "2018-10-04T00:51:41Z")

</div>

Thanks for the response Salim.
