youtube-transcript

Fetch timestamped transcripts from YouTube videos for summarization and analysis.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill youtube-transcript-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: youtube-transcript
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/pi/.pi/agent/skills/pi-skills/youtube-transcript
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill youtube-transcript-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires youtube-transcript-plus.

What problem does it solve? Manually transcribing or copying captions from YouTube videos is slow and error-prone. This Skill retrieves the existing transcript of any YouTube video directly, giving you timestamped text ready for summarization, note-taking, or content analysis. ## Core Features & Use Cases - Transcript Fetching: Retrieves captions from YouTube videos using the youtube-transcript-plus library, supporting both auto-generated and manual transcripts. - Flexible Input: Accepts a bare video ID, a full youtube.com watch URL, or a youtu.be short link, extracting the video ID automatically. - Timestamped Output: Prints each transcript line with a formatted timestamp (e.g., [1:23]) for easy reference and citation. - Use Case: You want to summarize a 45-minute conference talk on YouTube. Run the script with the video URL, then feed the timestamped transcript to an AI for a structured summary with time references. ## Quick Start Ask the AI to fetch the transcript of a YouTube video by providing its URL or video ID, after running npm install in the skill directory once.

Frequently Asked Questions about youtube-transcript

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

FAQPage Schema
How do I get a transcript from a YouTube video?

Run the transcript.js script with the video ID or URL as an argument, for example: node transcript.js EBw7gsDPAYQ. It prints each caption line with a formatted timestamp to standard output.

What YouTube URL formats are supported for transcript fetching?

The script accepts a bare 11-character video ID, a full youtube.com/watch?v= URL, or a youtu.be short link. It extracts the video ID from URLs using a regular expression before fetching.

Does YouTube transcript fetching work with auto-generated captions?

Yes, the youtube-transcript-plus library works with both auto-generated and manually created transcripts. The only requirement is that the video has some form of captions available.

Why does transcript fetching fail for some YouTube videos?

Fetching fails when the video has no captions available, is private or restricted, or the provided ID is invalid. The script prints the error message and exits with a non-zero status in these cases.

What dependencies are needed to run a YouTube transcript script?

You need Node.js and the youtube-transcript-plus npm package, which is declared in the skill's package.json. Run npm install once in the skill directory before first use.