youtube_transcribe

Fetch YouTube video transcripts as plain text or JSON using the youtube-transcript-api library.

33|1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/infinition/LaRuche --skill youtube-transcribe-infinition
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: youtube_transcribe
Source: https://github.com/infinition/LaRuche/tree/main/laruche/skills/youtube_transcribe
Command: npx skills add https://github.com/infinition/LaRuche --skill youtube-transcribe-infinition

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires youtube-transcript-api, and includes scripts (resource) components.

What problem does it solve? Getting the spoken content of a YouTube video normally means watching it or downloading audio for transcription. This Skill pulls the video's existing caption track directly from YouTube, producing searchable, quotable text in seconds without downloading any media. ## Core Features & Use Cases - Transcript Extraction: Convert any YouTube URL (watch, youtu.be, shorts, live, embed) or bare video id into plain text, timestamped lines, or structured JSON with metadata. - Language Discovery: List all available caption tracks with language codes and whether they are manual or auto-generated, then fetch a specific language by preference order. - Robust Failure Reporting: Distinct exit codes distinguish disabled captions, unavailable videos, missing languages, and API errors, so failures are diagnosed instead of guessed. - Use Case: A user shares a two-hour conference talk link and asks for a summary. The Skill fetches the transcript, writes it to a file, and the agent summarizes it section by section without ever playing the video. ## Quick Start Ask the agent to fetch the transcript of a YouTube video by pasting its URL, for example: get the transcript of this video and summarize the main points.

Frequently Asked Questions about youtube_transcribe

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get a YouTube video transcript in Python?▼

Use the youtube-transcript-api package to fetch a video's caption track by URL or video id. The bundled script prints the transcript as plain text, timestamped lines, or JSON with segment count and duration.

How to extract transcripts from YouTube Shorts or youtu.be links?▼

Pass the URL unchanged to the script; it parses watch, youtu.be, shorts, live, embed, and /v/ URL shapes plus bare 11-character ids. No manual id extraction is needed before calling it.

Can I get a YouTube transcript in a specific language?▼

Yes, pass a comma-separated preference list such as --language fr,en. Run --list first to see which caption tracks exist, since language codes are specific and pt-BR does not match pt.

Why does YouTube transcript fetching fail on some videos?▼

Failures occur when the owner disabled captions, the video is private or region-locked, or no track matches the requested languages. Each case exits with a distinct code and a one-line stderr message identifying the cause.

Are auto-generated YouTube captions accurate enough to quote?▼

Auto-generated tracks frequently mishear names and numbers. The --list output shows whether a track is manual or auto-generated, so verify figures and proper nouns from automatic captions before quoting them.