What happens when the API gets its limit?

Hi.

Accroding to this link https://developers.hubspot.com/docs/api/usage-details#:~:text=RateLimit%2DInterval%2DMilliseconds-,Note,-%3A%20The%20X%2DHubSpot

They said

PRODUCT TIERPER 10 SECONDSPER DAY
Private Apps(What about Public Apps?)Free and Starter100 / private app250,000 acount

like this.

So what happes when I use 250,00 API call an day and what will does `X-HubSpot-RateLimit-Remaining` return?

And is public apps too?

Do you know of those?

Hey @LA23 ,

thank you for reaching out to the community.

A lot of the information you’re asking about it actually on the page you shared. In case of reaching the limit, the endpoint returns an 429 Rate Limit Error like this:

//Example
{
 "status": "error",
 "message": "You have reached your daily limit.",
 "errorType": "RATE_LIMIT",
 "correlationId": "c033cdaa-2c40-4a64-ae48-b4cec88dad24",
 "policyName": "DAILY",
 "requestId": "3d3e35b7-0dae-4b9f-a6e3-9c230cbcf8dd"
}

Public Apps require a different way of authentication called OAuth. Using this there is only 100 calls in 10 seconds rule beside some other limits regarding the search endpoint for example.

Hope this answers your question.

If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I’d really appreciate it.

Cheers,

Chriso

Thanks for quick reply.

English is not my first language and the note actually makes me confused.

> NOTE: The Daily and Daily-Remaining headers are not included for requests authorized using OAuth.

The way it is written, it looks as if something else is going to happen when I use OAuth.

Anyway, I appreciate it.

Hey @LA23 ,

I see what you mean.

Since the daily rate limit does not apply to calls that are made using OAuth, HubSpot doesn’t include the amount of daily calls remaining in the header when for example creating a contact through the API.

Hope that helps clarify things.

Cheers,

Chriso

@ChrisoKlepke It would be helpful me.

Actually, I would ask something again in the future.

I hope you answer without hesitation.

Thanks again for quick answer.