transcriptout
youtube-transcript-api works on your laptop and breaks in production with RequestBlocked or IpBlocked, because YouTube blocks cloud IP ranges. transcriptout keeps the same interface and fetches through TranscriptOut, so there are no proxies to run and nothing to block on your side.
Migration is one line.
# from youtube_transcript_api import YouTubeTranscriptApi
from transcriptout import YouTubeTranscriptApi
ytt_api = YouTubeTranscriptApi() # reads TRANSCRIPTOUT_API_KEY
transcript = ytt_api.fetch("dQw4w9WgXcQ", languages=["de", "en"])
for snippet in transcript:
print(snippet.start, snippet.text)
Install
pip install transcriptout
export TRANSCRIPTOUT_API_KEY=sk_...
Get a free key at transcriptout.com. New accounts start with free credits, no card.
What stays the same
fetch(video_id, languages=...),list(video_id),find_transcript,find_manually_created_transcript,find_generated_transcriptFetchedTranscriptandFetchedTranscriptSnippetwith.text,.start,.duration,.to_raw_data()- Exception names, so
except NoTranscriptFound:keeps working - Formatters in
transcriptout.formatters(TextFormatter,JSONFormatter,SRTFormatter,WebVTTFormatter) - The static
get_transcript,get_transcriptsandlist_transcripts, removed from youtube-transcript-api in 1.2.0, work again
What is new
Many videos in one call, up to 4,000 per job, with retries handled on our side.
result = ytt_api.fetch_many(video_ids, language="en")
for video_id, transcript in result.transcripts.items():
...
for video_id, error in result.errors.items():
...
What differs
- Auto-generated tracks come grouped into readable segments of up to 180 characters rather than YouTube's short caption lines. Pass
segment=to the constructor to change the size. - Translation (
transcript.translate(...)) is not supported yet and raisesNotTranslatable. proxy_configand cookies are accepted and ignored, there is nothing to proxy.- Video URLs are accepted as well as ids.
Pricing
One credit per transcript. fetch with a language the video lacks costs one more call to list its tracks. Requests refused for reasons on our side are refunded. See pricing.
License
MIT
Metadata
Release files for transcriptout 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 | Provenance | Actions |
|---|---|---|---|---|
| transcriptout-0.1.0.tar.gz | 13.0 kB | Without provenance | Details for transcriptout-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| transcriptout-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for transcriptout-0.1.0-py3-none-any.whl |
Total release size: 27.1 kB
Release files / transcriptout-0.1.0.tar.gz
| Download URL | transcriptout-0.1.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e605c19e141b39015f1600eeb1b99c433dde4d3880122869971b3579ab7f257
|
|
BLAKE2b-256 checksum How to use checksums |
3399d6e44565f63cffa5e44d2afcc850bb0f5f34f07aa7d11c927ffc9c087c42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / transcriptout-0.1.0-py3-none-any.whl
| Download URL | transcriptout-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44dbb7eb0af3a28fb620d54d05a4fc65ed0e125ec64174ceb1b044493437ed5d
|
|
BLAKE2b-256 checksum How to use checksums |
e40b296de50babb5bf8e487905a2b69548acf01faa4c8f5e29906f58764a2e39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for transcriptout 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.