YouTube AI Videos
by @mjohannp
Fetch latest AI-related YouTube videos from curated channels using YouTube Data API v3 and filter by keywords
clawhub install youtube-ai-videosπ About This Skill
name: youtube-ai-videos description: Fetch latest AI-related YouTube videos from curated channels using YouTube Data API v3 and filter by keywords requiresEnvVars: - YOUTUBE_API_KEY
YouTube AI Videos
Fetch and display the latest AI-related videos from YouTube channels using YouTube Data API v3.
Requirements
This skill requires a YouTube Data API v3 key to function. The API key can be provided in three ways (priority order):
1. Environment variable: YOUTUBE_API_KEY
2. Secrets file: ~/.openclaw/secrets/youtube_api_key.txt
3. Config file: config.json (fallback, not recommended for security)
Get a free API key: https://console.cloud.google.com/apis/api/youtube.googleapis.com
Usage
Use this skill when you need recent AI-related videos from YouTube.
Workflow
1. Fetch recent videos from configured YouTube channels using YouTube Data API v3 2. Filter videos by keywords in title 3. Filter by max age (default: 3 days) 4. Return up to 15 videos (configurable) 5. Sort by publication date (newest first)
Configuration
All settings are in config.json:
Adding Channels
Find YouTube channel handles or IDs:
1. Go to channel page
2. Look at URL: youtube.com/@CHANNELNAME or youtube.com/channel/CHANNEL_ID
3. Use @handle format (recommended) or channel ID
Output Format
Each video includes:
Example:
1. [2h ago] OpenClaw: The Next Generation of AI Agents
by @IchBinFabian
Running the Script
./scripts/fetch_youtube_ai_videos.py
The script loads --> YouTube API key from environment, secrets file, or config (in that order) and outputs filtered videos.
Security Note
For security, prefer storing your API key in:
export YOUTUBE_API_KEY="your_key"~/.openclaw/secrets/youtube_api_key.txtAvoid storing the API key directly in config.json as it's visible in plain text.
π‘ Examples
Use this skill when you need recent AI-related videos from YouTube.
βοΈ Configuration
All settings are in config.json: