Service to retrieve quota limit for each endpoint?

Hello openrouteservice team,

Is it possible to get information about how many requests per day and minute are still available for a specific enpoint? I would not like to let users run into an error message when the maximum is reached and would rather block the function for that period.

Best regards.

Hi @Worker,

see X-ratelimit-remaining returns wrong number
the info is only available for daily limits.

To not let the user run into the minutely quota, you can handle the 429 http status.

Best regards