Getting the transcript of a YouTube video sounds like one function call. In practice the right tool depends on where your code runs, whether the video has captions at all, and whether a person or an AI agent is asking. This is a short guide to the options, with commands you can run today.
It is a companion to awesome-youtube-transcripts , a list we maintain of libraries, hosted APIs, MCP servers, agent skills and speech-to-text tools for YouTube transcripts.
Quick answer
You want to Start with
Fetch captions from a script on your own machine youtube-transcript-api (Python) or YouTube.js (JavaScript)
Download subtitle files from the command line yt-dlp
Transcribe a video that has no captions faster-whisper or whisper.cpp on the audio
Fetch transcripts from a server or cloud function A hosted API, or a library behind your own proxies
Let an AI assistant read YouTube videos An MCP server or an agent skill
1.…