#14 · Primary category: AI Content Readers & Aggregators

youtube-transcript-api

asr captions cli python subtitle subtitles transcript transcripts translating-transcripts youtube youtube-api youtube-asr youtube-captions youtube-subtitles youtube-transcript youtube-transcripts youtube-video

This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!

Project last updated:05/19/26

GitHub Stars

8.1K

Forks

821

Contributors

27

License

MIT

Why we included this project

Pulling the spoken text out of a YouTube video usually means either signing up for a paid transcript API or driving a headless browser with Selenium. This library sidesteps both: it reads YouTube's public transcript endpoints directly, so manually uploaded and auto-generated captions come back from a few Python calls with no API key required. When a video has translated captions, you can request those too, which helps when you want the same talk in several languages. The trade-off is that it depends on YouTube's internals rather than a stable paid service, so it can break when YouTube changes things; the project is actively maintained and typically patched quickly. For search indexing, summarization, or any pipeline that needs transcript text as input, that upkeep is a fair price.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category