# Custom objects count (without paginating all objects)

**URL:** <https://community.hubspot.com/t/custom-objects-count-without-paginating-all-objects/70394>\
**Category:** APIs & Integrations\
**Created:** [December 1, 2022, 5:40pm UTC](https://community.hubspot.com/t/custom-objects-count-without-paginating-all-objects/70394 "2022-12-01T17:40:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crossbill](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@crossbill](https://community.hubspot.com/u/crossbill)\
**Post date:** [December 1, 2022, 5:40pm UTC](https://community.hubspot.com/t/custom-objects-count-without-paginating-all-objects/70394/1 "2022-12-01T17:40:24Z")

</div>

Is there an API endpoint available that allows me to get the total count of custom objects for a particular schema, without paginating through all the objects using the “crm/v3/objects/{objectType”?

For example, would be great if in the payload sent back from endpoint (above), an additional field would be included like:

`page: { next: null},total_count: 35000`

I suspect there’s probably some sort of API (perhaps internally available to hubspot only) that reveals the total count, given that at the top of the Hubspot console page/dashboard, the total count of items is displayed. Without that scalar value (total count) available, we would be required to pagination through all pages, an expensive operation (in terms of number of API calls) since each request permits only 100 records to be returned at a time…so if we have 30000 custom objects, we’d need to issue 300 API calls.

Source: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/crm-custom-objects)

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [December 2, 2022, 2:41am UTC](https://community.hubspot.com/t/custom-objects-count-without-paginating-all-objects/70394/2 "2022-12-02T02:41:26Z")

</div>

Hi there,

Try using the search endpoint:

`/crm/v3/objects/{object}/search`

Using the Contacts Object as an example, the **List** endpoint doesn’t give the total count indeed. But using the **Search** endpoint, the payload would include the “total” property. (You can use the Search endpoint and provide an empty body in the request, that would net the same results as doing a List).

 ![weiliang_lee_0-1669948763451.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/fe885c4fc6fecabb6c7231242947c86df2f3e83a.png)

Cheers

WL

---

<div class="post-metadata">

**Author:** ![storycollab](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/storycollab/32/35608_2.png) [@storycollab](https://community.hubspot.com/u/storycollab)\
**Post date:** [March 12, 2024, 10:54pm UTC](https://community.hubspot.com/t/custom-objects-count-without-paginating-all-objects/70394/3 "2024-03-12T22:54:04Z")

</div>

Is this fix still operational?

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [February 17, 2025, 3:48am UTC](https://community.hubspot.com/t/custom-objects-count-without-paginating-all-objects/70394/4 "2025-02-17T03:48:20Z")

</div>

Thank you [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264)

That’s a useful hack!

Mike
