Extract transcripts from YouTube videos. Use when the user asks for a Youtube video transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com/watch?v=, youtu.be/, or similar).
Resources
4Install
npx skillscat add zxhfighter/skills-hub/youtube-rapidapi-transcript Install via the SkillsCat registry.
SKILL.md
youtube-rapidapi-transcript
Extract transcripts from YouTube videos using the RapidAPI YouTube Transcript API.
Features
- Extract video transcripts from YouTube URLs or video IDs
- Support for multiple output formats: text, JSON, and SRT subtitles
- Automatic video ID extraction from various YouTube URL formats
- Save transcripts to files or output to terminal
- Language selection support
Usage
Basic Usage
# Extract transcript from YouTube URL
python scripts/youtube_transcript.py "https://www.youtube.com/watch?v=VIDEO_ID"
# Extract transcript using video ID directly
python scripts/youtube_transcript.py "VIDEO_ID"Output Formats
# JSON format
python scripts/youtube_transcript.py VIDEO_ID -f json
# SRT subtitle format
python scripts/youtube_transcript.py VIDEO_ID -f srt
# Save to file
python scripts/youtube_transcript.py VIDEO_ID -o transcript.txtCommand Line Options
-f, --format: Output format (text, json, srt) - default: text-o, --output: Output file path (default: stdout)-l, --language: Language code (e.g., en, es, fr)
Setup
Install dependencies:
pip install -r scripts/requirements.txtCreate a
.envfile based on.env.exampleand add your RapidAPI key:cp scripts/.env.example scripts/.env # Edit scripts/.env and add your RAPIDAPI_KEYGet your API key from RapidAPI