# Api https://cdn.builder.io/ load limit record

**URL:** <https://forum.builder.io/t/api-https-cdn-builder-io-load-limit-record/6155>\
**Category:** Technical Questions\
**Created:** [August 21, 2024, 2:59am UTC](https://forum.builder.io/t/api-https-cdn-builder-io-load-limit-record/6155 "2024-08-21T02:59:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenz](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@Kenz](https://forum.builder.io/u/Kenz)\
**Post date:** [August 21, 2024, 2:59am UTC](https://forum.builder.io/t/api-https-cdn-builder-io-load-limit-record/6155/1 "2024-08-21T02:59:58Z")

</div>

_I have an issue where I pass in a productId to load data based on that productId, but the state from [Builder.io](http://Builder.io) only loads a limited number of records, either 20 or 100, which causes the search results to be inaccurate. Is there any way to fix this._

**Builder content link**  
_[Builder.io: Visual Development Platform](https://builder.io/content/ad80f4c7dcc248b19081861aebe9a58d/edit?activeDesignerTab=3)_

**Builder public api key**  
_8102a91244d54f29aa0462cc10eafd1e_

**What are you trying to accomplish**  
_I want to pass an ID from the URL and then load data from the data model based on that ID_

**Screenshots or video link**

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/8/8f1d5a79ae070c36439298a7d0426d2a84e2f00e.png)

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [August 21, 2024, 8:40am UTC](https://forum.builder.io/t/api-https-cdn-builder-io-load-limit-record/6155/2 "2024-08-21T08:40:34Z")

</div>

Hello @Kenz,

Please keep in mind that when making a single fetch call, there is a limit of 100 results. Consequently, connected data will only return a maximum of 100 products. If you are receiving less than 100 results, it may be due to the way the data is being filtered. You can address this by using pagination, which involves using the `limit` and `offset` parameters. This method enables you to load data in batches, making it easier to handle larger datasets.

 ![Screenshot 2024-08-21 at 1.56.35 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/5/538e56195cc8c7d82c0287443c77ac5d4296be3c.png)

> [@What's the maximum limit allowed in a single content API call?](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310):
>
> The maximum number of results returned in a single API call is 100, you can paginate results through the offset param, something like this would make multiple api requests to get all the content from builder: // pseudo code const limit = 100; let offset = 0; const pages = await getResults({limit, offset}); while(pages.length === (limit + offset)) { offset += limit; pages.push( ... (await getResults({ limit, offset})); } return pages;

> **[Custom Code in the Visual Editor - Builder.io](https://www.builder.io/c/docs/guides/custom-code#custom-javascript-example)**
>
> Add custom JavaScript and CSS to your Builder content. Learn how to access browser events, state properties, and add custom CSS to your pages.
