pypi / youtube-transcript-api
youtube-transcript-api
What changed in youtube-transcript-api 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
4 breaking2 deprecations8 new APIs and options1 tooling1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inityoutube-transcript-api 116 changes
Breaking changes 4
Returns a
FetchedTranscriptobject instead of a list of dictionaries; callto_raw_data()to convert to the previous format.The old static method is deprecated and has no equivalent in the new interface; fetch transcripts individually instead.
Raised when YouTube blocks a request due to a blacklisted IP, replacing the prior
TranscriptDisablederror for this case.Introduces an instance-based API with fetch and list methods, allowing requests to share an HTTP session, cookies, and bandwidth.
Deprecations 2
The old static method is deprecated in favor of
YouTubeTranscriptsApi().fetch(video_id).The old static method is deprecated in favor of
YouTubeTranscriptsApi().list(video_id).
New APIs and options 8
Raised when a video is age restricted and requires cookie authentication.
Adds a return object for fetched transcripts, enabling metadata and utility methods.
Adds configuration for generic HTTP, HTTPS, and SOCKS proxies.
The
YouTubeTranscriptApiconstructor accepts an HTTP session, allowing CA_BUNDLE paths, custom headers, and session sharing across instances.Converts a
FetchedTranscriptobject to the previously used list-of-dictionaries format.Raised when a video is unplayable for an unknown reason and includes the error message shown by YouTube's WebPlayer.
Adds Webshare proxy provider integration for setting up rotating residential proxies.
Adds a module containing proxy configuration classes that can be passed to the
YouTubeTranscriptApiconstructor.
Tooling 1
Adds type signatures to all interfaces.
Fixes and other changes 1
When a proxy username contains the "-rotate" suffix, it is no longer appended twice.