Disclosure: I made the Apify Actor mentioned at the end, so I'm biased. Apify links here are referral links. Everything before that section is free and uses only youtube-transcript-api.
You call YouTubeTranscriptApi().fetch(video_id) and get one of these:
youtube_transcript_api._errors.NoTranscriptFound:
No transcripts were found for any of the requested language codes: ('en',)
youtube_transcript_api._errors.TranscriptsDisabled:
Subtitles are disabled for this video
They look similar, but they mean different things and have different fixes. Everything below was tested on 23 November 2026 with youtube-transcript-api 1.2.5 (the current version on PyPI).
The difference in one sentence
-
NoTranscriptFound: the video has captions, just not under the exact language code you asked for. -
TranscriptsDisabled: YouTube's player data lists no caption tracks at all for the video.
In the library's source, TranscriptsDisabled is raised when the player response has no captionTracks. NoTranscriptFound is raised when your codes don't match any track. Both subclass CouldNotRetrieveTranscript.
NoTranscriptFound: three real causes
Read the full error message. It prints every track the video actually has, which usually tells you which case you're in.
1. You asked for the default en, and the video isn't in English
fetch() uses languages=('en',) unless you pass something else. Gangnam Style (9bZkp7q19f0) only has one track today:
(MANUALLY CREATED)
None
(GENERATED)
- ko ("Korean (auto-generated)")
So fetch("9bZkp7q19f0") raises NoTranscriptFound, and fetch("9bZkp7q19f0", languages=["ko"]) works.
2. The track exists, but under a region code
The library matches language codes exactly. Rick Astley's "Never Gonna Give You Up" (dQw4w9WgXcQ) has German captions, but they are stored as de-DE, not de:
from youtube_transcript_api import YouTubeTranscriptApi
api = YouTubeTranscriptApi()
api.fetch("dQw4w9WgXcQ", languages=["de"]) # NoTranscriptFound
api.fetch("dQw4w9WgXcQ", languages=["de-DE"]) # works
The same video has pt-BR and es-419 tracks, not pt or es. If you hard-code two-letter codes, you'll miss these.
3. You only accept one caption type
find_transcript() (which fetch() uses) tries human-made captions first, then auto-generated ones. If you call find_manually_created_transcript() and the video only has auto captions (very common: 18 of the 28 recent uploads I checked today from seven big channels had only an auto-generated English track), you get NoTranscriptFound.
The free fix: list first, then pick
Instead of guessing, call list() once and choose from what's really there:
from youtube_transcript_api import (
YouTubeTranscriptApi,
NoTranscriptFound,
TranscriptsDisabled,
)
api = YouTubeTranscriptApi()
def pick_transcript(video_id, wanted=("en",), any_language=True):
"""Return (FetchedTranscript, note) or (None, reason)."""
try:
tracks = api.list(video_id)
except TranscriptsDisabled:
return None, "no caption tracks at all"
# 1. Exact codes, human captions before auto-generated (library default)
try:
return tracks.find_transcript(wanted).fetch(), "exact match"
except NoTranscriptFound:
pass
# 2. Region variants: "de" should also accept "de-DE", "pt" -> "pt-BR"
bases = {code.split("-")[0].lower() for code in wanted}
variants = [t for t in tracks if t.language_code.split("-")[0].lower() in bases]
if variants:
variants.sort(key=lambda t: t.is_generated) # human first
return variants[0].fetch(), f"region variant {variants[0].language_code}"
# 3. Whatever exists (translate it yourself later)
if any_language:
first = sorted(tracks, key=lambda t: t.is_generated)[0]
return first.fetch(), f"fallback to {first.language_code}"
available = [t.language_code for t in tracks]
return None, f"not in {list(wanted)}; available: {available}"
tests = [
("dQw4w9WgXcQ", ("en",)), # plain case
("dQw4w9WgXcQ", ("de",)), # only de-DE exists
("9bZkp7q19f0", ("en",)), # only Korean auto captions
("aqz-KE-bpKQ", ("en",)), # no captions at all
]
for vid, langs in tests:
result, note = pick_transcript(vid, langs)
lines = len(result.snippets) if result else 0
lang = result.language_code if result else "-"
print(f"{vid} {langs}: {note} | {lang} | {lines} lines")
Output when I ran it:
dQw4w9WgXcQ ('en',): exact match | en | 61 lines
dQw4w9WgXcQ ('de',): region variant de-DE | de-DE | 60 lines
9bZkp7q19f0 ('en',): fallback to ko | ko | 67 lines
aqz-KE-bpKQ ('en',): no caption tracks at all | - | 0 lines
fetch() itself is just list() + find_transcript() + .fetch() inside the library, so this makes the same requests as a normal fetch().
What about .translate()?
The library can ask YouTube to machine-translate a track: tracks.find_transcript(["en"]).translate("de").fetch(). Be careful relying on it. In my tests today, the translated caption URL returned HTTP 429, which the library reports as IpBlocked, while the untranslated URL for the same track returned 200 from the same machine a second later. So if you see IpBlocked only when translating, it's the translation request being rate-limited, not your whole IP. The safer route is to fetch the original track and translate the text with whatever translation tool you already use.
TranscriptsDisabled: what it really means
The name suggests the uploader switched captions off, and sometimes that's true. But you also get it when YouTube simply never made automatic captions. YouTube's own help page (Use automatic captioning) lists reasons auto captions may be missing, including:
- the captions are still processing (they "may not be ready at the time that you upload a video")
- the language isn't supported for automatic captions
- the video is too long
- poor audio, or no recognizable speech
- a long silence at the start, or overlapping speakers
Big Buck Bunny (aqz-KE-bpKQ) is a good example: it's an animated short with no dialogue, it has no caption tracks, and the library raises TranscriptsDisabled.
What you can do:
- Check the video in a browser. If there's no CC button, there's nothing to download. No library or scraper can return captions that don't exist.
- If it's a fresh upload, try again later. Auto captions can appear after processing finishes.
- If you need the words anyway, transcribe the audio yourself with a speech-to-text model. That's a different job (download audio, then run speech recognition), and it costs compute, but it's the only option when there are no captions.
- If a video clearly has a CC button but your server gets errors, that's usually blocking, not missing captions. See my earlier post: youtube-transcript-api RequestBlocked on a cloud server? Why it happens and 3 fixes.
When you have hundreds of videos
The helper above is enough for a script on your laptop. It gets harder when you're processing whole playlists or channels on a server: you'll hit blocking (see the post above), and you need a clean record of which videos had no captions so your pipeline doesn't crash or retry them forever.
That's the case I built YouTube Transcript Scraper on Apify for. It handles the cases from this post the same way:
-
languagesis a preference list, and region variants match (defindsde-DE,esfindses-419). -
fallbackToAnyLanguage: truereturns whatever track exists instead of an error. - Videos with no captions come back as a row with
status: "error"and a code likeNO_CAPTIONSorNO_CAPTIONS_IN_LANGUAGE(with the languages the video does have). Those rows are not charged. You pay $0.004 per transcript delivered.
The same three videos, run through it today:
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("logicbase_systems/youtube-transcript").call(run_input={
"videoUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"https://www.youtube.com/watch?v=9bZkp7q19f0",
"https://www.youtube.com/watch?v=aqz-KE-bpKQ",
],
"languages": ["de", "en"],
"fallbackToAnyLanguage": True,
})
for row in client.dataset(run.default_dataset_id).iterate_items():
if row["status"] == "ok":
print(row["videoId"], "->", row["language"], row["wordCount"], "words")
else:
print(row["videoId"], "->", row["error"]["code"], "(not charged)")
dQw4w9WgXcQ -> de-DE 348 words
aqz-KE-bpKQ -> NO_CAPTIONS (not charged)
9bZkp7q19f0 -> ko 194 words
That run was charged for 2 transcripts, not 3. It does not transcribe audio or translate captions, so for truly caption-less videos you still need speech-to-text.
For whole playlists, see How to get transcripts from an entire YouTube playlist (no API key).
Quick checklist
-
NoTranscriptFound: read the error's track list, pass the right code (including region codes likede-DE), or uselist()and pick. - Only fails when calling
.translate(): the translation request is being rate-limited; translate the text yourself. -
TranscriptsDisabled: no caption tracks exist. Check for a CC button, wait if it's a new upload, or transcribe the audio. - Works locally, fails on a server: that's blocking, not missing captions.
Top comments (0)