Youtube Ai Videos
Fetch latest AI-related YouTube videos from curated channels using YouTube Data API v3 and filter by
- Rating
- 4 (340 reviews)
- Downloads
- 9,405 downloads
- Version
- 1.0.0
Overview
Fetch latest AI-related YouTube videos from curated channels using YouTube Data API v3 and filter by keywords.
Complete Documentation
View Source →
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):
- Environment variable:
YOUTUBE_API_KEY - Secrets file:
~/.openclaw/secrets/youtube_api_key.txt - Config file:
config.json(fallback, not recommended for security)
Usage
Use this skill when you need recent AI-related videos from YouTube.
Workflow
- Fetch recent videos from configured YouTube channels using YouTube Data API v3
- Filter videos by keywords in title
- Filter by max age (default: 3 days)
- Return up to 15 videos (configurable)
- Sort by publication date (newest first)
Configuration
All settings are in config.json:
- channels: List of YouTube channel handles (@handle) or IDs
- keywords: List of keywords to search for
- maxVideos: Maximum number of videos to return (default: 15)
- maxAgeDays: Maximum video age in days (default: 3)
- youtubeApiKey: Fallback YouTube Data API v3 key (use environment/secrets instead)
Adding Channels
Find YouTube channel handles or IDs:
- Go to channel page
- Look at URL:
youtube.com/@CHANNELNAMEoryoutube.com/channel/CHANNEL_ID - Use @handle format (recommended) or channel ID
Output Format
Each video includes:
- Number (1-15)
- Time ago (e.g., "2h ago")
- Title with keyword matches highlighted in bold
- Channel name
- Direct YouTube link
1. [2h ago] [OpenClaw: The Next Generation of AI Agents](https://youtube.com/watch?v=...)
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:
- Environment variable:
export YOUTUBE_API_KEY="your_key" - Secrets file:
~/.openclaw/secrets/youtube_api_key.txt
config.json as it's visible in plain text.
Installation
openclaw install youtube-ai-videos
💻Code Examples
Example:
1. [2h ago] [OpenClaw: The Next Generation of AI Agents](https://youtube.com/watch?v=...)
by @IchBinFabianTags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.