<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom objects count (without paginating all objects) in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/1109854#M80384</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264"&gt;@weiliang_lee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a useful hack!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 03:48:20 GMT</pubDate>
    <dc:creator>Mike_Eastwood</dc:creator>
    <dc:date>2025-02-17T03:48:20Z</dc:date>
    <item>
      <title>Custom objects count (without paginating all objects)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/725485#M59274</link>
      <description>&lt;P&gt;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 "&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;crm/v3/objects/{objectType"?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, would be great if in the payload sent back from endpoint (above), an additional field would be included like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;page: {&amp;nbsp;next: null},total_count: 35000&lt;/PRE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source: &lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/crm-custom-objects&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 17:40:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/725485#M59274</guid>
      <dc:creator>crossbill</dc:creator>
      <dc:date>2022-12-01T17:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom objects count (without paginating all objects)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/725671#M59295</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using the search endpoint:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/crm/v3/objects/{object}/search&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the Contacts Object as an example, the &lt;STRONG&gt;List&lt;/STRONG&gt; endpoint doesn't give the total count indeed. But using the &lt;STRONG&gt;Search&lt;/STRONG&gt; 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).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="weiliang_lee_0-1669948763451.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80355iE8F59422B8837901/image-size/medium?v=v2&amp;amp;px=400" role="button" title="weiliang_lee_0-1669948763451.png" alt="weiliang_lee_0-1669948763451.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;WL&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 02:41:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/725671#M59295</guid>
      <dc:creator>weiliang_lee</dc:creator>
      <dc:date>2022-12-02T02:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom objects count (without paginating all objects)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/942623#M71856</link>
      <description>&lt;P&gt;Is this fix still operational?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 22:54:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/942623#M71856</guid>
      <dc:creator>storycollab</dc:creator>
      <dc:date>2024-03-12T22:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom objects count (without paginating all objects)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/1109854#M80384</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264"&gt;@weiliang_lee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a useful hack!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 03:48:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-objects-count-without-paginating-all-objects/m-p/1109854#M80384</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2025-02-17T03:48:20Z</dc:date>
    </item>
  </channel>
</rss>

