Show API quota status on extension options page
See original GitHub issueDescription
We already query the API to check the token scope, it would be better to make more use of the response.
The following headers are available in the response:
x-ratelimit-limit
: total quotax-ratelimit-remaining
/x-ratelimit-used:
: remaining/used quotax-ratelimit-reset
: time at which the quota will reset
We can show these info on the extension options page as an additional “feature”, which can also help debugging potential issues with rate limit.
Screenshot
No response
Example URL
chrome://extensions/?options=balgliakcbamepammkbcjdepogihccmj
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Limits and Quotas on API Requests | Analytics Management API
This document describes the limits and quotas of requesting the Management APIs and Reporting APIs. Google Analytics is used by millions of ...
Read more >Working with quotas | Documentation - Google Cloud
The Quotas page shows the quota names for the API. You can click on monitoring Show usage chart for each quota to see...
Read more >Monitor API quotas - Google Workspace Admin Help
Option 2: All project quotas · Click the API you want to monitor. · Use the filters at the top of the page...
Read more >chrome.storage - Chrome Developers
The Storage API provides an extension-specific way to persist user data and state. ... The options page immediately saves the new settings to...
Read more >Quotas and limits | Cloud Functions for Firebase - Google
To increase quotas above the defaults listed here, go to the Cloud Functions Quotas Page, select the quota(s) you want to modify, click...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, one line would do it. I’d also show the reset time (
API Quota: 34% left, resetting in 1234 seconds
)Rather than seconds I’d use a fixed time. We can also add a “check/refresh” button anywhere near the field. For example
The button would just need to dispatch an input event in the token field to refresh, probably.