<?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 Ensure contact limit isn't exceeded in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Ensure-contact-limit-isn-t-exceeded/m-p/797167#M64225</link>
    <description>&lt;P&gt;I am developing an integration to HubSpot that bulk uploads contacts. This will run on a cron every hour. I was asked to ensure that this will never exceed the tier limit of 1 million total contacts. I thought this would be easy, but I can't find any endpoint that has information about that limit. There are endpoints to check daily / hourly limits, but no overall limits.&lt;BR /&gt;&lt;BR /&gt;Is there an endpoint that I can get the total number of contacts that have been uploaded so far?&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 16:12:21 GMT</pubDate>
    <dc:creator>JDevore</dc:creator>
    <dc:date>2023-05-22T16:12:21Z</dc:date>
    <item>
      <title>Ensure contact limit isn't exceeded</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Ensure-contact-limit-isn-t-exceeded/m-p/797167#M64225</link>
      <description>&lt;P&gt;I am developing an integration to HubSpot that bulk uploads contacts. This will run on a cron every hour. I was asked to ensure that this will never exceed the tier limit of 1 million total contacts. I thought this would be easy, but I can't find any endpoint that has information about that limit. There are endpoints to check daily / hourly limits, but no overall limits.&lt;BR /&gt;&lt;BR /&gt;Is there an endpoint that I can get the total number of contacts that have been uploaded so far?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 16:12:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Ensure-contact-limit-isn-t-exceeded/m-p/797167#M64225</guid>
      <dc:creator>JDevore</dc:creator>
      <dc:date>2023-05-22T16:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ensure contact limit isn't exceeded</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Ensure-contact-limit-isn-t-exceeded/m-p/797347#M64234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/572479"&gt;@JDevore&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can make a call to the &lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;search endpoint '&lt;SPAN&gt;/crm/v3/objects/contacts/search'&lt;/SPAN&gt;&lt;/A&gt;, with the following POST body:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "hs_object_id",
          "operator": "HAS_PROPERTY"
        }
      ]
    }
  ],
  "limit": 0
}&lt;/LI-CODE&gt;
&lt;P&gt;It will return the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "total": 745,
    "results": [],
    "paging": {
        "next": {
            "after": "0"
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;Since all contacts must have an object id, the total will be the total number of contacts in the account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 22:05:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Ensure-contact-limit-isn-t-exceeded/m-p/797347#M64234</guid>
      <dc:creator>JBeatty</dc:creator>
      <dc:date>2023-05-22T22:05:54Z</dc:date>
    </item>
  </channel>
</rss>

