# API call limits to first 10 records

**URL:** <https://community.hubspot.com/t/api-call-limits-to-first-10-records/114714>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [August 19, 2024, 6:35am UTC](https://community.hubspot.com/t/api-call-limits-to-first-10-records/114714 "2024-08-19T06:35:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rahulshah](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@rahulshah](https://community.hubspot.com/u/rahulshah)\
**Post date:** [August 19, 2024, 4:12pm UTC](https://community.hubspot.com/t/api-call-limits-to-first-10-records/114714/3 "2024-08-19T16:12:47Z")

</div>

Thanks for the pointer Gaurav. Really appreciated. Now it returns the 100 records.

However, I am not so expert in following your further suggestion to retrieve the next set of 100 records using the after keyword. Would you be able to help me with the sample code?  
This is what PowerBI generated as a backend code.  
let  
Source = Json.Document(Web.Contents(“[https://api.hubapi.com/crm/v3/objects/deals](https://api.hubapi.com/crm/v3/objects/deals)” & “?limit=100”, [Headers=[Authorization=“Bearer \<Key\>”]])),  
#“Converted to Table” = Table.FromRecords({Source}),  
#“Expanded results” = Table.ExpandListColumn(#“Converted to Table”, “results”),  
#“Expanded results1” = Table.ExpandRecordColumn(#“Expanded results”, “results”, {“id”, “properties”, “createdAt”, “updatedAt”, “archived”}, {“results.id”, “results.properties”, “results.createdAt”, “results.updatedAt”, “results.archived”}),  
#“Expanded results.properties” = Table.ExpandRecordColumn(#“Expanded results1”, “results.properties”, {“amount”, “closedate”, “createdate”, “dealname”, “dealstage”, “hs\_lastmodifieddate”, “hs\_object\_id”, “pipeline”}, {“results.properties.amount”, “results.properties.closedate”, “results.properties.createdate”, “results.properties.dealname”, “results.properties.dealstage”, “results.properties.hs\_lastmodifieddate”, “results.properties.hs\_object\_id”, “results.properties.pipeline”}),  
#“Expanded paging” = Table.ExpandRecordColumn(#“Expanded results.properties”, “paging”, {“next”}, {“paging.next”}),  
#“Expanded paging.next” = Table.ExpandRecordColumn(#“Expanded paging”, “paging.next”, {“after”, “link”}, {“paging.next.after”, “paging.next.link”}),  
#“Changed Type” = Table.TransformColumnTypes(#“Expanded paging.next”,{{“results.id”, Int64.Type}, {“results.properties.amount”, Int64.Type}, {“results.properties.closedate”, type datetime}, {“results.properties.createdate”, type datetime}, {“results.properties.dealname”, type text}, {“results.properties.dealstage”, type text}, {“results.properties.hs\_lastmodifieddate”, type datetime}, {“results.properties.hs\_object\_id”, Int64.Type}, {“results.properties.pipeline”, type text}, {“results.createdAt”, type datetime}, {“results.updatedAt”, type datetime}, {“results.archived”, type logical}, {“paging.next.after”, Int64.Type}, {“paging.next.link”, type text}})  
in  
#“Changed Type”

---

_[View the full topic](https://community.hubspot.com/t/api-call-limits-to-first-10-records/114714)._
