APIs & Integrations

SZanni
Member

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 Upvotes
2 Replies 2
Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

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).



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

API Rate Limit

@himanshurauthan ,

Do you happen to have thoughts on this?

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes