<?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: API Call Limit per seconds in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227561#M6457</link>
    <description>&lt;P&gt;Thank you for that information, &lt;A class="mention" href="https://community.hubspot.com/u/cosima_lefranc"&gt;@Cosima_Lefranc&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I see several potential efficiency improvements:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First and foremost, you should use batch calls as much as possible when creating or updating &lt;A href="https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update" rel="nofollow noopener"&gt;contact&lt;/A&gt; records, and when updating &lt;A href="https://developers.hubspot.com/docs/methods/companies/batch-update-companies" rel="nofollow noopener"&gt;company&lt;/A&gt; and &lt;A href="https://developers.hubspot.com/docs/methods/deals/batch-update-deals" rel="nofollow noopener"&gt;deal&lt;/A&gt; records.&lt;/LI&gt;
&lt;LI&gt;Why do you need to read the contact profile in a separate call? If you use &lt;A href="https://developers.hubspot.com/docs/methods/contacts/create_contact" rel="nofollow noopener"&gt;this endpoint&lt;/A&gt; to create the record, it will return the contact's details upon success, including the &lt;CODE&gt;vid&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;Why do you update the &lt;CODE&gt;hubspot_owner_id&lt;/CODE&gt; in its own call? This property can be set when you first create the contact.&lt;/LI&gt;
&lt;LI&gt;There is an &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/contacts/automatically-create-and-associate-companies-with-contacts" rel="nofollow noopener"&gt;automatic setting which creates and associates companies in the CRM&lt;/A&gt;. If this feature does not fit your use case and you must create the company via the API, do so &lt;EM&gt;before&lt;/EM&gt; creating the deal. If you create the company with &lt;A href="https://developers.hubspot.com/docs/methods/companies/create_company" rel="nofollow noopener"&gt;this endpoint&lt;/A&gt;, it will return the &lt;CODE&gt;companyId&lt;/CODE&gt; and you won't need to retrieve it.&lt;/LI&gt;
&lt;LI&gt;With the &lt;CODE&gt;vid&lt;/CODE&gt; and &lt;CODE&gt;companyId&lt;/CODE&gt;, you can then &lt;A href="https://developers.hubspot.com/docs/methods/deals/create_deal" rel="nofollow noopener"&gt;create the deal&lt;/A&gt; and associate it with both the contact and company in just one call. In total, that is only &lt;STRONG&gt;three calls&lt;/STRONG&gt; to create and associate a contact, company, and deal.&lt;/LI&gt;
&lt;LI&gt;Consider adding multiple &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/contacts/how-do-i-use-products" rel="nofollow noopener"&gt;products&lt;/A&gt; to a single deal (order) instead of creating multiple deals for the same customer. This could save even more calls.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me know your thoughts.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 16:09:38 GMT</pubDate>
    <dc:creator>IsaacTakushi</dc:creator>
    <dc:date>2018-12-06T16:09:38Z</dc:date>
    <item>
      <title>API Call Limit per seconds</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227558#M6454</link>
      <description>&lt;P&gt;We have our ordering tool synced with Hubspot via API calls.&lt;BR /&gt;
We hit every second day the limit of 10 api calls per second (eg. when 2 customers order at the same moment)&lt;/P&gt;
&lt;P&gt;We don't have a throttle system in place as it will just postpone the problem in our opinion (eg. if we retry 2 seconds later, and this is going on over days. We might end up with a deal being updated 1 day after it was actually closed in our ordering tool or every deals being postponed couple of seconds depending on how we set it up).&lt;/P&gt;
&lt;P&gt;Do you have any recommendation?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:45:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227558#M6454</guid>
      <dc:creator>TestingTime</dc:creator>
      <dc:date>2018-12-03T15:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: API Call Limit per seconds</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227559#M6455</link>
      <description>&lt;P&gt;Welcome, &lt;A class="mention" href="https://community.hubspot.com/u/cosima_lefranc"&gt;@Cosima_Lefranc&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I understand you're hitting the "SECONDLY" limit. Can you let me know which practices from &lt;A href="https://developers.hubspot.com/docs/faq/working-within-the-hubspot-api-rate-limits"&gt;this article&lt;/A&gt; you are currently using? For example, are you using any of the &lt;A href="https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update"&gt;batch contact&lt;/A&gt;, &lt;A href="https://developers.hubspot.com/docs/methods/companies/batch-update-companies"&gt;company&lt;/A&gt;, or &lt;A href="https://developers.hubspot.com/docs/methods/deals/batch-update-deals"&gt;deal&lt;/A&gt; endpoints?&lt;/P&gt;
&lt;P&gt;What is your Hub ID? Does your tool use your account's API key or is it an &lt;A href="https://developers.hubspot.com/docs/faq/how-do-i-create-an-app-in-hubspot"&gt;OAuth app&lt;/A&gt;? If it is an app, what is your app ID?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 21:11:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227559#M6455</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-12-04T21:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: API Call Limit per seconds</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227560#M6456</link>
      <description>&lt;P&gt;HI Isaac,&lt;/P&gt;
&lt;P&gt;Thanks for your reply. Yes we are hitting the 10 api calls per second limit.&lt;BR /&gt;
We are not using batch calls nor workflows or webhook at the moment.&lt;BR /&gt;
What we do is that each time a deal gets created or saved again on our order form we trigger 6 api calls:&lt;BR /&gt;
1.upsertContact(lineup)&lt;BR /&gt;
2. .(this::fetchContact) // read contact profile&lt;BR /&gt;
3. .thenCompose(contactJson -&amp;gt; updateContactOwner(lineup, contactJson))&lt;BR /&gt;
4. .thenCompose(contactId -&amp;gt; doUpsertDeal(lineup, price, contactId))&lt;BR /&gt;
And we are looking into adding a call for associating the company as well which will be at least 2 more calls.&lt;BR /&gt;
=&amp;gt; these would mean that if two deals get saved/ordered in the same second: we reach the api limit.&lt;BR /&gt;
=&amp;gt; this is happening every second day (we have roughly 850 deal created or saved every day)&lt;/P&gt;
&lt;P&gt;Hubspot ID 4840334&lt;BR /&gt;
We use API key only.&lt;/P&gt;
&lt;P&gt;Thank you so much in advance for your help / recommendation.&lt;/P&gt;
&lt;P&gt;Cosima&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 08:15:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227560#M6456</guid>
      <dc:creator>TestingTime</dc:creator>
      <dc:date>2018-12-05T08:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: API Call Limit per seconds</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227561#M6457</link>
      <description>&lt;P&gt;Thank you for that information, &lt;A class="mention" href="https://community.hubspot.com/u/cosima_lefranc"&gt;@Cosima_Lefranc&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I see several potential efficiency improvements:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First and foremost, you should use batch calls as much as possible when creating or updating &lt;A href="https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update" rel="nofollow noopener"&gt;contact&lt;/A&gt; records, and when updating &lt;A href="https://developers.hubspot.com/docs/methods/companies/batch-update-companies" rel="nofollow noopener"&gt;company&lt;/A&gt; and &lt;A href="https://developers.hubspot.com/docs/methods/deals/batch-update-deals" rel="nofollow noopener"&gt;deal&lt;/A&gt; records.&lt;/LI&gt;
&lt;LI&gt;Why do you need to read the contact profile in a separate call? If you use &lt;A href="https://developers.hubspot.com/docs/methods/contacts/create_contact" rel="nofollow noopener"&gt;this endpoint&lt;/A&gt; to create the record, it will return the contact's details upon success, including the &lt;CODE&gt;vid&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;Why do you update the &lt;CODE&gt;hubspot_owner_id&lt;/CODE&gt; in its own call? This property can be set when you first create the contact.&lt;/LI&gt;
&lt;LI&gt;There is an &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/contacts/automatically-create-and-associate-companies-with-contacts" rel="nofollow noopener"&gt;automatic setting which creates and associates companies in the CRM&lt;/A&gt;. If this feature does not fit your use case and you must create the company via the API, do so &lt;EM&gt;before&lt;/EM&gt; creating the deal. If you create the company with &lt;A href="https://developers.hubspot.com/docs/methods/companies/create_company" rel="nofollow noopener"&gt;this endpoint&lt;/A&gt;, it will return the &lt;CODE&gt;companyId&lt;/CODE&gt; and you won't need to retrieve it.&lt;/LI&gt;
&lt;LI&gt;With the &lt;CODE&gt;vid&lt;/CODE&gt; and &lt;CODE&gt;companyId&lt;/CODE&gt;, you can then &lt;A href="https://developers.hubspot.com/docs/methods/deals/create_deal" rel="nofollow noopener"&gt;create the deal&lt;/A&gt; and associate it with both the contact and company in just one call. In total, that is only &lt;STRONG&gt;three calls&lt;/STRONG&gt; to create and associate a contact, company, and deal.&lt;/LI&gt;
&lt;LI&gt;Consider adding multiple &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/contacts/how-do-i-use-products" rel="nofollow noopener"&gt;products&lt;/A&gt; to a single deal (order) instead of creating multiple deals for the same customer. This could save even more calls.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Let me know your thoughts.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 16:09:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227561#M6457</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-12-06T16:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: API Call Limit per seconds</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227562#M6458</link>
      <description>&lt;P&gt;Very clear. Thank you very much.&lt;BR /&gt;
We would very much like to keep the automation of Hubspot creating the companies for us. But with your inputs we will be able to reduce the number of call from 6 to 5 (3 for contacts &amp;amp; deal + 2 for companies associations) so at least two deals can be saved at the same time.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 07:30:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Call-Limit-per-seconds/m-p/227562#M6458</guid>
      <dc:creator>TestingTime</dc:creator>
      <dc:date>2018-12-07T07:30:32Z</dc:date>
    </item>
  </channel>
</rss>

