APIs & Integrations

SZanni
Membre | Partenaire solutions Diamond
Membre | Partenaire solutions Diamond

API Rate Limit

Good afternoon,

in order not to reach api limit I'm starting monitoring the number of calls we made daily.  I'm using GET /integrations/v1/limit/daily
as I found it documented at  https://developers.hubspot.com/docs/api/usage-details
 

If I try now a call to that endpoint I get a response as follow:

[
    {
        "name": "api-calls-daily",
        "usageLimit": 500000,
        "currentUsage": 9665,
        "collectedAt": 1651151406073,
        "fetchStatus": "SUCCESS",
        "resetsAt": 1651255200001
    }
]

You said that the limit will reset every 24 hours: "The current day is measured from midnight to midnight based on the connected account’s time zone settings".
 
In this response there are more than 24 hours between "resetsAt" timestamp and "collectedAt" timestamp (even if we should be almost at the end of the day). It seems that you don't reset count daily or I'm missing something.

 

collectedAt (GMT): Thursday, 28 April 2022 13:10:06.073

resetAt (GMT): Friday, 29 April 2022 18:00:00.001

 

Am I wrong with something?  Can you please confirm how this works?

Thank you,
Sebastiano

 

0 Votes
2 Réponses
Teun
Expert reconnu | Partenaire solutions Diamond
Expert reconnu | Partenaire solutions Diamond

API Rate Limit

Hi @SZanni ,

 

I tried the same with a few different portals and the demo API key, but I wasn't able to reproduce the issue.

Based on the results, it seems that the daily limits should reset every day at 18:00 (GMT).



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

API Rate Limit

@himanshurauthan ,

Do you happen to have thoughts on this?

0 Votes