Skip to main content

yt-transcript-fetcher | YouTube Transcript Fetcher

Run Tests PyPI - Version PyPI - Python Version PyPI - License PyPI - Downloads

A python package to fetch YouTube video transcripts.

Installation

Use the package manager pip to install yt-transcript-fetcher.

pip install yt-transcript-fetcher

Usage

Basic usage examples can be found in the examples directory.

Command Line Interface (CLI)

The package includes a basic command line interface for fetching transcripts. You can run the following command:

yt-transcript-fetcher <video_id> --list-languages

This will list all available languages for the specified video ID.

yt-transcript-fetcher <video_id> --download <language_code>

This will download the transcript for the specified video ID in the given language code and output it to standard output.

Python API

You can also use the package as a Python module. Here is a basic example:

from yt_transcript_fetcher import list_languages, get_transcript
video_id = "dQw4w9WgXcQ"  # Replace with your video ID
languages = list_languages(video_id)
print("Available languages:", languages)
transcript = get_transcript(video_id, language_code="en")
print("Transcript:", transcript)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for yt-transcript-fetcher 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yt-transcript-fetcher 1.2.1
File Size Uploaded
yt_transcript_fetcher-1.2.1.tar.gz 112.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yt-transcript-fetcher 1.2.1
File Interpreter ABI Platform
yt_transcript_fetcher-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 128.3 kB

Release files / yt_transcript_fetcher-1.2.1.tar.gz

Download URL yt_transcript_fetcher-1.2.1.tar.gz
Size 112.9 kB
Tags Source
SHA-256 checksum
How to use checksums
27587c0fec831adf5e2e155277566a2919a94deb256b0c334d5c2346632a4523
BLAKE2b-256 checksum
How to use checksums
1b610a7d0d99a2414f19d63bf4bbe69dc406397816718b80f151309e3871fc1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 29, 2025.

Transparency log

Release files / yt_transcript_fetcher-1.2.1-py3-none-any.whl

Download URL yt_transcript_fetcher-1.2.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36666562539e3660f0c4b019ffa107a50b7d7e03effe95bae4f0de1959f5b629
BLAKE2b-256 checksum
How to use checksums
11898c70688bd49d8cea5d14e41a312e78f40417d2e2fc7890f09f161ca8bf65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 29, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page