Get quota status by API

Hello team,
Is possible to get quota status by some API/url ?
or have actual particular service status returned in the API call ?

Thank you very much for your response.

Peter

Hi,

yes, there’s response headers X-RATELIMIT-..., they tell you for each endpoint how much the quota is and how much is left.

Cheers
Nils

Hi there,
I’m trying to use the X-RateLimit- Headers to figure out how many Matrix calls I can still make every day, but it is returning different numbers from what I see in my dashboard.

After my first call today, the remaining calls in the dashboard was correctly displayed as 499, while [x-ratelimit-remaining] retrurned ‘0’.
After the second call, dashboard correctly displayed 498, while [x-ratelimit-remaining] returned ‘466’.
After the third call, dashboard correctly displayed 498, while [x-ratelimit-remaining] returned 445.

I’m not really sure what’s going on.