Youtube Get Quota Status
youtube_get_quota_statusReport how much of today's YouTube Data API quota is left, and when it resets.
Instructions
Report how much of today's YouTube Data API quota is left, and when it resets.
Returns one entry per bucket — search, stats, shared — with used, remaining
and cap for the current quota day, resets_at as an ISO 8601 timestamp, and
approximate: true.
Check this before a deliberate search. search is only 100 calls/day and does not
recover until resets_at; when it is low it is worth spending a call on a cheaper route
instead — youtube_list_channel_videos (2 units from the shared pool) or
youtube_search_in_transcript (no Data API quota at all). Treat youtube_search_videos
as scarce and deliberate. stats (videos:batchGetStats) and shared are 10,000
units/day each, and quota resets at midnight Pacific Time.
Costs no quota. This reads our own in-process counter, never the API, so it is free
to call and cannot itself fail with quotaExceeded — a bucket at 0 is reported, not
refused.
The numbers are approximate, and they are ours — not Google's. They count what this server process has spent, so they reset to zero whenever it restarts, and they can under-count calls made before a restart or by another process using the same API key. Google can still refuse a call this tool says is affordable, and a bucket shown as exhausted is exhausted for this process only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buckets | Yes | ||
| resets_at | Yes | ||
| approximate | No |