Desktop App Productivity ★ 8,649 stars on GitHub

youtube-transcript-api

Fetch closed captions and automatically generated subtitles from online videos using a simple programming tool without needing complex setups.

Get Command-Line Tool →

Guide and Overview

What it does in plain English

This software tool allows you to automatically pull closed captions and subtitles from online videos without dealing with complex browser setups or special access keys. It works smoothly with both manually typed subtitles and automatically generated ones across multiple languages. You can convert the gathered text into standard formats like JSON, plain text, or subtitle files for easy saving and editing.

Who it’s for

  • Python developers who want to build applications that analyze or summarize video dialogue.
  • Content creators and researchers who need to extract text from video content for notes or translation.
  • Data scientists collecting large amounts of spoken content for speech recognition or language models.

Key features

  • No special access keys needed: Works directly without complicated registration or paid developer tokens.
  • Supports automatic captions: Retrieves both user-submitted subtitles and computer-generated captions seamlessly.
  • Multiple export formats: Convert extracted text into JSON, standard subtitle files, or clean plain text.
  • Translation support: Translate retrieved subtitles into different languages automatically.
  • Built-in proxy flexibility: Avoid connection blocks when running automated tasks on cloud servers.

How to install (Download)

You can install this module using Python’s package manager by running the following command in your terminal:

pip install youtube-transcript-api

For more information, visit the PyPI Package Page.

Pros and Cons

  • Pros: Free and open source, lightweight, no browser automation required, supports subtitle translation.
  • Cons: Requires basic knowledge of Python programming, subject to service provider access limits if heavily used without proxies.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.