SwitchBotAPI icon indicating copy to clipboard operation
SwitchBotAPI copied to clipboard

requests left metric (rate limit)

Open zenhighzer opened this issue 10 months ago • 0 comments

Current Situation

I wonder if I can get a metric which shows how many requests i can still run

Something like Docker has already implemented for example: https://docs.docker.com/docker-hub/usage/pulls/#view-hourly-pull-rate-and-limit

This way I can automatically throttle my automated requests to the switchbot-api

Proposed Change

I would like to have an api route like:

GET /v1.1/ratelimit

Additional Context

No response

zenhighzer avatar Feb 21 '25 11:02 zenhighzer