Skip to content

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

  1. Go to console.cloud.google.com
  2. Create a project (or select an existing one)
  3. Enable the YouTube Data API v3
  4. Go to Credentials → Create Credentials → API Key
  5. 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

KeyTypeDescription
apiKeystringYouTube Data API v3 key
channelIdsstring[]List of YouTube channel IDs

Finding a channel ID

A channel ID looks like UCxxxxxxxxxxxxxxxxxxxxxxxx. To find it:

Example config

json
{
  "apiKey": "YOUR_KEY_HERE",
  "channelIds": [
    "UCVls1GmFKf6WlTraIb_IaJg",
    "UC9-y-6csu5WGm29I7JiwpnA"
  ]
}

Personal Homepage Dashboard