# What's the maximum limit allowed in a single content API call?

**URL:** <https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310>\
**Category:** Technical Questions\
**Created:** [December 3, 2020, 8:43pm UTC](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310 "2020-12-03T20:43:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [December 3, 2020, 8:43pm UTC](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310/1 "2020-12-03T20:43:24Z")

</div>

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:

```ts
// 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;

```

---

<div class="post-metadata">

**Author:** ![adler](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@adler](https://forum.builder.io/u/adler)\
**Post date:** [May 7, 2021, 7:07am UTC](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310/2 "2021-05-07T07:07:47Z")

</div>

how can we calculate the total number of items on the database so that the pagination can be done properly, e.g., deciding how to adjust the page size depending on the total number of items?

---

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [May 10, 2021, 9:02pm UTC](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310/3 "2021-05-10T21:02:54Z")

</div>

Hi @adler 👋 Thanks for reaching out.

We don’t currently have this functionality, but I will pass this along to our team as a feature request! We will keep you updated.

---

<div class="post-metadata">

**Author:** ![adler](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@adler](https://forum.builder.io/u/adler)\
**Post date:** [May 11, 2021, 5:00am UTC](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310/4 "2021-05-11T05:00:29Z")

</div>

Thanks for the reply.  
It’s a basic thing for an API payload to fetch data. Thus I’m really surprise this doesn’t exist with builder.

{  
“data”: [///row columns],  
“totalNumberOfRows”: 144000,  
“currentPage”: 1,  
“currentAmount”: 100  
}

---

<div class="post-metadata">

**Author:** ![srittam](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@srittam](https://forum.builder.io/u/srittam)\
**Post date:** [August 17, 2023, 6:23pm UTC](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310/5 "2023-08-17T18:23:04Z")

</div>

Hey @maddy / Builder team ,

As per last comment of Maddy -  
_We don’t currently have this functionality, but I will pass this along to our team as a feature request! We will keep you updated._

Is this implemented any chance ?

---

<div class="post-metadata">

**Author:** ![nicke920](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nicke920](https://forum.builder.io/u/nicke920)\
**Post date:** [August 17, 2023, 7:10pm UTC](https://forum.builder.io/t/whats-the-maximum-limit-allowed-in-a-single-content-api-call/310/6 "2023-08-17T19:10:58Z")

</div>

Hi @srittam ,

Currently there is no metadata on the model that would say how many elements exist for that model, but we have heard that feedback before, and it is something that we are currently taking a look at. The best process is to set a limit of 100 and then check if you get 100 results then make the call for the next 100 and so on

Thanks
