# Recently Created API call isn't paging results

**URL:** <https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [November 12, 2018, 10:10pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533 "2018-11-12T22:10:59Z")\
**Posts on this page:** 7\
**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:** [November 12, 2018, 10:10pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533/1 "2018-11-12T22:10:59Z")

</div>

I’m trying to pull down recently create contacts (/contacts/v1/lists/all/contacts/recent), and I am paging through the results with the vid-offset field.

Here’s the query.

[https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs\_lead\_status&property=hs\_lifecyclestage\_customer\_date&property=lifecyclestage&property=referral\_code](https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs_lead_status&property=hs_lifecyclestage_customer_date&property=lifecyclestage&property=referral_code)

So that returns a vid-offset of 41151101, so I append my query to get the next “page”:

[https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs\_lead\_status&property=hs\_lifecyclestage\_customer\_date&property=lifecyclestage&property=referral\_code](https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs_lead_status&property=hs_lifecyclestage_customer_date&property=lifecyclestage&property=referral_code)  
&vidOffset=41151101

But Hubspot returns the exact same results?

---

<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:** [November 13, 2018, 2:05pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533/2 "2018-11-13T14:05:03Z")

</div>

Here’s the query.

[https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs\_lead\_status&property=hs\_lifecyclestage\_customer\_date&property=lifecyclestage&property=referral\_code](https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs_lead_status&property=hs_lifecyclestage_customer_date&property=lifecyclestage&property=referral_code)

So that returns a vid-offset of 41151101, so I append my query to get the next “page”:

[https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs\_lead\_status&property=hs\_lifecyclestage\_customer\_date&property=lifecyclestage&property=referral\_code](https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=xxx&count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs_lead_status&property=hs_lifecyclestage_customer_date&property=lifecyclestage&property=referral_code)  
&vidOffset=41151101

But Hubspot returns the exact same results?

---

<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:** [November 14, 2018, 6:32pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533/3 "2018-11-14T18:32:48Z")

</div>

Updated my question.

---

<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:** [November 16, 2018, 8:00pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533/4 "2018-11-16T20:00:17Z")

</div>

Hi [@obsidianreq](https://community.hubspot.com/u/obsidianreq),

Apologies for the delayed response. Connor and I try our best to respond to topics in the order they are posted. Edits and subsequent posts, however, reset the [Last] _Activity_ timer, making older topics appear much newer.

That said, what is your Hub ID? I would like to try and replicate this behavior myself.

---

<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:** [November 19, 2018, 2:19pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533/5 "2018-11-19T14:19:44Z")

</div>

No problem. Our Hub ID is 3306228

---

<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:** [November 19, 2018, 3:59pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533/6 "2018-11-19T15:59:10Z")

</div>

Hi [@obsidianreq](https://community.hubspot.com/u/obsidianreq),

Sorry for overlooking this earlier — you must use _both_ `vidOffset` _and_ `timeOffset` to properly page through recent contacts. This is stated as a requirement in [the documentation](https://developers.hubspot.com/docs/methods/contacts/get_recently_created_contacts), but I can see how it could be misinterpreted.

If you include both `offset` parameters, you will get the next 100 contacts:

`https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?count=100&property=vid&property=email&property=firstname&property=lastname&property=address&property=city&property=state&property=zip&property=phone&property=hs_lead_status&property=hs_lifecyclestage_customer_date&property=lifecyclestage&property=referral_code&vidOffset=41172702&timeOffset=1541530437001`

---

<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:** [November 26, 2018, 6:29pm UTC](https://community.hubspot.com/t/recently-created-api-call-isnt-paging-results/11533/7 "2018-11-26T18:29:20Z")

</div>

Thanks, that did the trick!
