langchain-transcriptyt
LangChain integration for TranscriptYT, a YouTube Transcript API. Load YouTube transcripts into your RAG pipeline, or give an agent tools to search YouTube and read videos.
Unlike scraping YouTube directly, requests go through TranscriptYT's rotating proxies, so they keep working on cloud servers (AWS, GCP, Vercel, Colab) where YouTube blocks datacenter IPs. Supports 150+ languages, translation, and AI transcription for videos without captions.
pip install -U langchain-transcriptyt
export TRANSCRIPTYT_API_KEY="ts_live_..." # free key: https://transcript-yt.com/dashboard/keys
Document loader
from langchain_transcriptyt import TranscriptYTLoader
# One Document per video
docs = TranscriptYTLoader(["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "jNQXAC9IVRw"]).load()
# A whole playlist or channel (up to 50 videos), split into timestamped paragraphs
docs = TranscriptYTLoader(
playlist="https://www.youtube.com/@3blue1brown",
limit=20,
chunk="paragraph",
chunk_size=1000,
).load()
print(docs[0].metadata["source"]) # https://www.youtube.com/watch?v=...&t=42s
Options: language, translate_to, chunk ("video" or "paragraph"), chunk_size, mode ("auto", "captions", "ai"), continue_on_failure.
Metadata: source, video_id, title, author, channel_id, language, translated, auto_generated, duration_seconds, transcript_source, and start/end for paragraph chunks.
Agent tools
from langchain.agents import create_agent
from langchain_transcriptyt import TranscriptYTSearchTool, TranscriptYTTranscriptTool
agent = create_agent(
"anthropic:claude-sonnet-5-5",
tools=[TranscriptYTSearchTool(), TranscriptYTTranscriptTool()],
)
agent.invoke({"messages": [{"role": "user", "content": "Find a recent video on RAG evaluation and summarize it."}]})
youtube_transcript: full transcript with[HH:MM:SS]timestamps (1 credit).youtube_search: search YouTube, optionally within a channel (free).
Pricing
100 free credits, no card. Paid plans from $3/month. One credit per transcript; search, playlist and language lookups are free. See transcript-yt.com/pricing.
License
MIT
Metadata
Release files for langchain-transcriptyt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_transcriptyt-0.1.0.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_transcriptyt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / langchain_transcriptyt-0.1.0.tar.gz
| Download URL | langchain_transcriptyt-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0d2d9c7ceb30f6d035ad5602f3c9a79459eb1090f8e3909e381b1eab8b8784d
|
|
BLAKE2b-256 checksum How to use checksums |
95374b0b1c1b5e7f40a19bffe5b4f016cfdcdd24b5673aa31caaab69c4cea404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 13, 2026.
Transparency logRelease files / langchain_transcriptyt-0.1.0-py3-none-any.whl
| Download URL | langchain_transcriptyt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a386b6efd02b7c6513fc38b1e7ab3d9158511d2b9fbdd7ca41abb9d8dbaee108
|
|
BLAKE2b-256 checksum How to use checksums |
17a299e4ab88e59ee60b8a9d0555e7b1b4250b0763c0fc5fd65e24a51f22c51f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 13, 2026.
Transparency log