Youtube Master
by @tevfikgulep
Get YouTube video info, statistics, descriptions, thumbnails, and optionally transcripts. Uses YouTube Data API (free) for basic info and Apify (optional) fo...
clawhub install youtube-masterπ About This Skill
name: youtube-master description: Get YouTube video info, statistics, descriptions, thumbnails, and optionally transcripts. Uses YouTube Data API (free) for basic info and Apify (optional) for transcripts. metadata: { "openclaw": { "emoji": "π¬", "requires": { "env": ["YOUTUBE_API_KEY", "APIFY_TOKEN"] }, "install": [ { "id": "youtube_api", "kind": "env", "label": "YouTube Data API Key (YOUTUBE_API_KEY)" }, { "id": "apify_token", "kind": "env", "label": "Apify API Token (APIFY_TOKEN) - Optional for transcripts" } ] } }
π¬ YouTube Master
Get comprehensive YouTube video data including metadata, statistics, descriptions, thumbnails, and optionally transcripts.
Why This Skill?
YouTube videos require multiple APIs to get complete data. This skill intelligently uses:
Advantages
π° Cost Effective
β‘ Fast Performance
π Complete Data
| Data | Source | |------|--------| | Title | β YouTube API | | Description | β YouTube API | | Channel Name | β YouTube API | | View Count | β YouTube API | | Like Count | β YouTube API | | Comment Count | β YouTube API | | Upload Date | β YouTube API | | Thumbnail URL | β YouTube API | | Tags | β YouTube API | | Transcript | β Apify (on demand) |
How It Works
βββββββββββββββββββ
β Input: URLββββββββββ¬/ID β
βββββββββ
β
βΌ
βββββββββββββββββββ
β YouTube API β βββ FREE, always runs
β (viewCount, β
β description, β
β title, etc.) β
ββββββββββ¬βββββββββ
β
ββββββ΄βββββ
β β
βΌ βΌ
βββββββββ ββββββββββββββββ
β -- β β --transcript β
βinfo β β is requested β
βonly β ββββββββ¬ββββββββ
βββββ¬ββββ β
β βΌ
β βββββββββββββββββββ
β β Apify API β βββ Only runs if
β β (transcript) β explicitly asked
β ββββββββββ¬βββββββββ
β β
βββββββ¬ββββββββ
β
βΌ
βββββββββββββββββββ
β Full Output β
βββββββββββββββββββ
Credentials Setup
Option 1: Environment Variables
export YOUTUBE_API_KEY="AIzaSy..."
export APIFY_TOKEN="apify_api_..."
Option 2: Credentials File (Recommended)
Add to ~/.openclaw/workspace/credentials/api-credentials.json:
{
"google": {
"api_key": "AIzaSy..."
},
"apify": {
"api_key": "apify_api_..."
}
}
Getting YouTube API Key
1. Go to Google Cloud Console 2. Create a project 3. Enable YouTube Data API v3 4. Create credentials (API Key) 5. Free quota: 10,000 units/day
Getting Apify Token
1. Go to Apify 2. Sign up / Login 3. Copy API token from Settings
Usage
Default (Info Only - FREE)
python3 get_transcript.py "VIDEO_ID"
python3 get_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"
With Transcript (Uses Apify)
python3 get_transcript.py "VIDEO_ID" --transcript
python3 get_transcript.py "VIDEO_ID" -t
python3 get_transcript.py "VIDEO_ID" --transcript --lang tr
Info Only
python3 get_transcript.py "VIDEO_ID" --info-only
Examples
Basic Video Info
python3 get_transcript.py dQw4w9WgXcQ
Video + Transcript
python3 get_transcript.py Oi3Z1wlZXhg --transcript --lang tr
Save to File
python3 get_transcript.py VIDEO_ID > output.txt
API Quotas
YouTube Data API (Free)
Apify
Files
get_transcript.py - Main scriptπ‘ Examples
Basic Video Info
python3 get_transcript.py dQw4w9WgXcQ
Video + Transcript
python3 get_transcript.py Oi3Z1wlZXhg --transcript --lang tr
Save to File
python3 get_transcript.py VIDEO_ID > output.txt