Skip to main content

transcriptyt

Python client for the TranscriptYT YouTube Transcript API. Get any public video's transcript as JSON, text, SRT, VTT, CSV or Markdown, in 150+ languages, with AI transcription when a video has no captions. Requests run through rotating proxies, so they keep working from cloud servers where YouTube blocks direct scraping.

pip install transcriptyt

Get a free API key (100 credits) at transcript-yt.com/dashboard/keys.

Usage

from transcriptyt import TranscriptYT

client = TranscriptYT()  # reads TRANSCRIPTYT_API_KEY, or pass api_key="ts_live_..."

t = client.transcript("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
print(t["title"], t["language"])
print(t["text"])
for seg in t["segments"][:3]:
    print(seg["timestamp"], seg["text"])

# Other formats return a string
srt = client.transcript("dQw4w9WgXcQ", format="srt")

# Translate, or pick a language
client.transcript("dQw4w9WgXcQ", translate_to="es")
client.transcript("dQw4w9WgXcQ", language="de")

# Up to 50 videos per call, or a whole playlist/channel
batch = client.transcripts(["dQw4w9WgXcQ", "jNQXAC9IVRw"], format="text")
batch = client.transcripts(playlist="https://www.youtube.com/@mkbhd", limit=20)
for r in batch["results"]:
    print(r["url"], r["ok"])

# Free endpoints
client.search("python tutorial", limit=10)
client.playlist("https://www.youtube.com/playlist?list=...")
client.languages("dQw4w9WgXcQ")
client.usage()

# AI summary, key points and timestamped notes
client.summary("dQw4w9WgXcQ")

Async

from transcriptyt import AsyncTranscriptYT

async with AsyncTranscriptYT() as client:
    t = await client.transcript("dQw4w9WgXcQ")

Errors

Every non-2xx response raises TranscriptYTError with .code (e.g. NO_CAPTIONS, VIDEO_UNAVAILABLE, RATE_LIMITED, OUT_OF_CREDITS), .status and .message. Rate-limit and capacity responses (429/503) are retried automatically (max_retries=2).

from transcriptyt import TranscriptYTError

try:
    client.transcript("dQw4w9WgXcQ", mode="captions")
except TranscriptYTError as e:
    print(e.code, e.message)

Coming from youtube-transcript-api?

youtube-transcript-api reads captions straight from YouTube, so it raises RequestBlocked or IpBlocked on AWS, Google Cloud, Vercel, Colab and most other servers, and 1.2 removed get_transcript. This client calls the TranscriptYT API instead, which runs the YouTube side on residential proxies and returns the same text, start and duration fields:

# Before
from youtube_transcript_api import YouTubeTranscriptApi
segments = YouTubeTranscriptApi().fetch("dQw4w9WgXcQ", languages=["en"]).to_raw_data()

# After
from transcriptyt import TranscriptYT
segments = TranscriptYT().transcript("dQw4w9WgXcQ", language="en")["segments"]

Differences: language="de" also matches regional tracks such as de-DE (no NoTranscriptFound), a missing language is translated from the original, and videos with no captions (TranscriptsDisabled) are transcribed with AI instead of failing. Failed requests aren't billed.

Fix guides: RequestBlocked / IpBlocked, no attribute get_transcript, NoTranscriptFound, TranscriptsDisabled, AWS Lambda, Google Colab.

AI agents and MCP

The same API is an MCP server at https://transcript-yt.com/mcp (listed in the official MCP registry as com.transcript-yt/transcriptyt), so Claude Code, Cursor, Codex, VS Code and Claude Desktop can fetch transcripts as a tool. Setup: transcript-yt.com/mcp-guide.

Transcript options

Argument Description
language BCP-47 code of the track to fetch
translate_to Machine-translate to this language (150+), keeping timing
format json (default), text, srt, vtt, csv, md
include_segments False returns only the full text (JSON)
timestamps Prefix lines with [HH:MM:SS] in text/md
paragraphs, chunk_size Merge segments into paragraphs of up to chunk_size characters
caption_type any, manual, auto
original_language Prefer the spoken language over English
mode auto (captions, then AI), captions (never AI), ai
start_time, end_time Only part of the video, in seconds
search Only lines containing this text

Full API reference: transcript-yt.com/docs. Using LangChain? See langchain-transcriptyt.

License

MIT

Metadata

Release files for transcriptyt 0.1.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 transcriptyt 0.1.1
File Size Uploaded Provenance Actions
transcriptyt-0.1.1.tar.gz 7.1 kB With provenance Details for transcriptyt-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for transcriptyt 0.1.1
File Interpreter ABI Platform Actions
transcriptyt-0.1.1-py3-none-any.whl Python 3 none any Details for transcriptyt-0.1.1-py3-none-any.whl

Total release size: 14.9 kB

Release files / transcriptyt-0.1.1.tar.gz

Download URL transcriptyt-0.1.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eab8d85603bad25e4d33284a0e5bcaae9515ca89b50f7a8ffbe797e6e78c8154
BLAKE2b-256 checksum
How to use checksums
a93a9f752cf30b956741021842ecb9e314c6ddd886587da91e79e2cab27e3e95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / transcriptyt-0.1.1-py3-none-any.whl

Download URL transcriptyt-0.1.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a0ec4a1a1c81bed6bc219c3ec0120c687d111dd1b8870cbe80365c8b7165fe2
BLAKE2b-256 checksum
How to use checksums
6ad5803aaee5d47115a0f2522c626adba6f29eb9d09aedcd92ee5d8ecbe2d39f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for transcriptyt 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for transcriptyt-0.1.1.tar.gz

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 Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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