Skip to Main Content
Builder.io Ideas
Status Shipped
Created by Guest
Created on Sep 18, 2023

Return the total amount of items in a model for pagination purposes

It would be great in the Content API, to be able to get the total amount of items in the return of the getAll method.

That would allow us to be able to display a very common pagination pattern with numbered pages.

At the moment, we do not know if there is more content to query when limiting a query to X number of items.

  • Attach files
  • Admin
    Adam Murray
    Feb 26, 2026

    This is available on the Content API via a fetchTotalCount param. Add &fetchTotalCount=true to the end of your query and you will see a totalCount key that has the number of total results for the model. That number can be used for pagination or other use-cases where you need to know the total results.

    For the Content API, we'll be adding this to the docs as well as the API Explorer to surface it better.

    We will also be working to add this to the getAll options for use via SDK. In the meantime, you can get this using the direct fetch method instead of getAll.

  • Paige P
    Feb 26, 2026

    Checking in on this feature in 2026. Seems like this has been requested for Years. Any chance this is on the docket?

  • Guest
    Nov 23, 2025

    Hi, its 2025 November and still this basic feature is not yet implemented, what kind of stupidity is this? If someone uses your api its basic that you should provide the totalcount of the records to paginate.

  • Guest
    Nov 14, 2025

    Hi, it is 2025 and still not implemented. Such a basic functionality supported by other CMSes. Bummer.

  • Guest
    Nov 20, 2024

    This has been requested for a long time on the forums, and is a basic feature of pagination. Low effort win here.

  • John Paul Wilkens
    Nov 12, 2024

    This is a big issue for us, which seems on the surface as a relatively minor feature to add!

    Lower effort, big win?

  • Guest
    Aug 28, 2024

    Builder dev team, any chances to implement that anytime soon?


  • Mauricio
    Oct 4, 2023

    Really important feature to be able to build full pagination components when having lot of content on a data model.