# YouTube Transcript

YouTube Transcript is a Python API for retrieving transcripts and subtitles from given YouTube video URLs. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6342/youtube-transcript

## Description

YouTube Transcript is a Python API for retrieving transcripts and subtitles from given YouTube video URLs. It supports manually created and automatically generated captions, optional subtitle translation, and avoids headless-browser dependencies, making it useful for developers integrating transcript retrieval into scripts or self-hosted applications.

## Platform availability

Available on 0 of 10 platforms.

## Health score

66/100 (Good), based on 4 of 5 factors.
- Maintained: 84 (last commit 12 days ago)
- Popular: 79 (8,638 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 55 (no serious findings, 6 minor, CI, tests, OpenSSF Scorecard 3.3/10)

## Links

- GitHub: https://github.com/jdepoix/youtube-transcript-api
- Docker Hub: https://hub.docker.com/r/mcp/youtube-transcript

## Common questions

### How do I fetch a transcript from the self-hosted server?

Paste a YouTube link and it returns plain text with video metadata and configurable timestamps.

### Why might it work locally but fail after deploying to a server?

It can be blocked in production or when running on a cloud server, so requests may fail even if local code works.

### Does it require a headless browser to retrieve transcripts?

No, it does not require a headless browser, unlike Selenium-based solutions.

### Can I choose the transcript language?

Yes, provide a languages list of language codes in priority order, and it tries them in that order. English is the default.

---
Source: Our Local Host (https://ourlocalhost.com/app/6342/youtube-transcript), the self-hosted and open-source app directory.
