$npx skillfedfor your agent

youtube-transcript-api

This is a python API which allows you to get the transcripts/subtitles for a given YouTube video. It also works for automatically generated subtitles, supports translating subtitles and it does not require a headless browser, like other selenium based solutions do!

Worth itPyPI WWW/HTTPReleased Jan 202630.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — youtube_transcript_api-1.2.4-py3-none-any.whl
v1.2.4 · released 2026-01-29 · Python <3.15,>=3.8 · 2 runtime deps: requests, defusedxml

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem—fetching YouTube transcripts programmatically—without requiring browser automation. The main caveat is YouTube's IP blocking of cloud providers; plan for rotating proxies if deploying to the cloud.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • YouTube blocks many cloud provider IPs; you may need rotating residential proxies to work around IP bans when deployed to AWS, Google Cloud Platform, Azure, or similar services.
  • Low install friction with a pure-Python wheel distribution.
  • Active maintenance with recent commits and 8037 repository stars.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely as long as you include the license notice.

last release 2026-01-29 (197 days) · last repo commit 2026-05-19 · 8,037 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 30,122,342 downloads/mo, #806 on PyPI

Verify before relying

pip install youtube-transcript-api

from youtube_transcript_api import YouTubeTranscriptApi

ytt_api = YouTubeTranscriptApi()
fetched_transcript = ytt_api.fetch('12345')
for snippet in fetched_transcript:
    print(snippet.text)
  • Whether the package handles rate limiting or request throttling automatically.
  • Current reliability of YouTube's transcript endpoint and whether blocking patterns have changed since last release.
Same gist for agents: .md · .json

What it is and what it does

This package provides a Python API to retrieve transcripts and subtitles from YouTube videos without needing a headless browser. It works with both manually created and automatically generated captions, and can translate transcripts to different languages. The main entry point is YouTubeTranscriptApi, which lets you fetch a transcript for a video ID or list all available transcripts for a video to filter by language and type.

The package returns structured FetchedTranscript objects containing snippets with text, start time, and duration, or raw dictionary data if you prefer. It depends on requests for HTTP calls and defusedxml for safe XML parsing. The API is straightforward: instantiate YouTubeTranscriptApi, call fetch() with a video ID and optional language list, and iterate or index the results. YouTube has begun blocking cloud provider IPs, so you may need rotating residential proxies in production environments.

Use it for

  • Extract transcripts from YouTube videos for archival, analysis, or accessibility purposes without manual transcription.
  • Build a search index over video content by fetching and processing transcripts from multiple videos.
  • Automatically translate video transcripts to different languages using YouTube's built-in translation feature.
  • Retrieve auto-generated captions when manual transcripts are unavailable, or filter for manually created ones when available.
  • Integrate transcript fetching into a CLI tool or web application to make video content searchable and accessible.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem—fetching YouTube transcripts programmatically—without requiring browser automation. The main caveat is YouTube's IP blocking of cloud providers; plan for rotating proxies if deploying to the cloud.

Install

youtube-transcript-api on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with recent commits and 8037 repository stars. Supports Python 3.8 through 3.14 and depends only on requests and defusedxml.

YouTube blocks many cloud provider IPs; you may need rotating residential proxies to work around IP bans when deployed to AWS, Google Cloud Platform, Azure, or similar services.

License in practice

MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely as long as you include the license notice.

Quickstart

pip install youtube-transcript-api

from youtube_transcript_api import YouTubeTranscriptApi

ytt_api = YouTubeTranscriptApi()
fetched_transcript = ytt_api.fetch('12345')
for snippet in fetched_transcript:
    print(snippet.text)

Verify before relying

  • Whether the package handles rate limiting or request throttling automatically.
  • Current reliability of YouTube's transcript endpoint and whether blocking patterns have changed since last release.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <3.15,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
requestsdefusedxml
MaintenanceActively maintained 197 days since the last release
Last repo commit
First released
Downloads30,122,342 / month, #806 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: youtube_transcript_api-1.2.4-py3-none-any.whl

Tags

Capabilities
youtube transcript downloadget youtube subtitles programmaticallyyoutube captions apiextract video transcriptsyoutube subtitle retrievalmultilingual transcript fetchingyoutube auto-generated captions
Topics
youtube-integrationsubtitle-extractionmultilingual
PyPI keywords
clisubtitlesubtitlestranscripttranscriptsyoutubeyoutube-apiyoutube-subtitlesyoutube-transcripts

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “youtube transcript download”

  • youtube-transcript-apiFetches transcripts and subtitles from YouTube videos via API,…
  • pytubepytube downloads YouTube videos and playlists to local files via…
  • pytubefixDownloads YouTube videos, playlists, and channels in multiple formats…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also pytubefix · subliminal · pyjokes · deep-translator · youtube_dl · casttube · assemblyai · pytube · micawber · TikTokApi