YouTube Widget
Shows subscriber count, total views, and video count for one or more YouTube channels.
Requirements
A YouTube Data API v3 key.
Getting an API key
- Go to console.cloud.google.com
- Create a project (or select an existing one)
- Enable the YouTube Data API v3
- Go to Credentials → Create Credentials → API Key
- Copy the key (optionally restrict it to the YouTube Data API)
The free tier provides 10,000 units/day. Each channel lookup costs 1 unit.
Configuration
| Key | Type | Description |
|---|---|---|
apiKey | string | YouTube Data API v3 key |
channelIds | string[] | List of YouTube channel IDs |
Finding a channel ID
A channel ID looks like UCxxxxxxxxxxxxxxxxxxxxxxxx. To find it:
- Go to the channel page on YouTube
- The ID is in the URL:
youtube.com/channel/UC... - For custom URLs (
youtube.com/@handle), use a tool like commentpicker.com/youtube-channel-id.php
Example config
json
{
"apiKey": "YOUR_KEY_HERE",
"channelIds": [
"UCVls1GmFKf6WlTraIb_IaJg",
"UC9-y-6csu5WGm29I7JiwpnA"
]
}