TMDB language codes: the 14 languages amodb serves
TMDB language codes work on amodb for 14 base languages: en, ru, uk, be, zh, pt, bg, he, cs, ro, fr, pl, it and es. Pass a tag such as ru-RU or pt-BR in language. amodb reads the part before the first dash or underscore. Any other tag returns English, so a request never fails because of its tag.
amodb serves 14 base languages. A TMDB language code such as ru-RU or pt-BR works in the language parameter, and amodb reads only the part before the first - or _. Any other tag returns English with HTTP 200, so a wrong tag never fails a call.
Which TMDB language codes does amodb serve?
| Code | Language | Native name | Example tag |
|---|---|---|---|
en | English | English | en-US |
ru | Russian | Русский | ru-RU |
uk | Ukrainian | Українська | uk-UA |
be | Belarusian | Беларуская | be-BY |
zh | Chinese | 中文 | zh-CN |
pt | Portuguese | Português | pt-BR |
bg | Bulgarian | Български | bg-BG |
he | Hebrew | עברית | he-IL |
cs | Czech | Čeština | cs-CZ |
ro | Romanian | Română | ro-RO |
fr | French | Français | fr-FR |
pl | Polish | Polski | pl-PL |
it | Italian | Italiano | it-IT |
es | Spanish | Español | es-ES |
Which tags map to each language?
Any region of a base language maps to that language. These are the tags clients usually send:
enEnglishen-US,en-GBLeft to rightruRussianru-RULeft to rightukUkrainianuk-UALeft to rightbeBelarusianbe-BYLeft to rightzhChinesezh-CN,zh-TW,zh-HK,zh-HansLeft to rightptPortuguesept-BR,pt-PT,pt_BRLeft to rightbgBulgarianbg-BGLeft to rightheHebrewhe-ILRight to leftcsCzechcs-CZLeft to rightroRomanianro-ROLeft to rightfrFrenchfr-FR,fr-CALeft to rightplPolishpl-PLLeft to rightitItalianit-ITLeft to rightesSpanishes-ES,es-MXLeft to right
How does the language parameter work?
Add language to any TMDB style call. amodb accepts the tag forms TMDB clients send:
ru-RU,pt-BRandzh-CN, with a regionruandpt, without onept_BR, with an underscore
amodb takes the part before the first - or _, lowercases it, and serves that language when it is one of the 14. Anything else returns English. The edge cache stores each base language once, so ru and ru-RU share one cache entry.
curl "https://api.amodb.dev/3/movie/550?language=uk-UA" \
-H "Authorization: Bearer $AMODB_KEY"const res = await fetch("https://api.amodb.dev/3/tv/1396?language=pl-PL", {
headers: { Authorization: `Bearer ${process.env.AMODB_KEY}` },
});
const show = await res.json();
console.log(show.name, show.overview);res = requests.get(
"https://api.amodb.dev/3/search/movie",
params={"query": "Матрица", "language": "ru-RU"},
headers={"Authorization": f"Bearer {os.environ['AMODB_KEY']}"},
timeout=10,
)What happens when the tag is not one of the 14?
| You send | You get | Why |
|---|---|---|
ru-RU | Russian | Base language ru |
ru_RU | Russian | The underscore works like the dash |
RU-ru | Russian | Case is ignored |
pt-PT | Portuguese | The region is not read |
zh-TW | Chinese | The region and script are not read |
iw-IL | English | iw is the old Hebrew code, not in the list |
de-DE | English | German is not one of the 14 |
ja-JP | English | Japanese is not one of the 14 |
No language | The default answer | As in TMDB; image and video lists then cover every language |
The call returns HTTP 200 in every row, never an error. See error codes for the cases that do fail.
What is translated?
Translated fields follow TMDB: title and overview for movies, name and overview for shows, seasons and episodes, tagline, genre names and person biographies. Fields with no translation in a language come back as they do in TMDB, often as an empty string, so keep an English request as a fallback for display. The translations API lists the texts a title has in each language.
The original_language field is data, not a request setting. It holds the language of the title itself as a short code, such as en or ja, so it can be outside the 14.
How do I show Hebrew and other right to left text?
Hebrew text comes back as plain Unicode. Set dir="rtl" or dir="auto" on the element that shows it; the API does not add direction marks.
Where do languages matter for search and details?
Pass the same language to the TMDB search API and to the movie details API so a title is found and shown in one language. For a catalog in several languages, see the movie metadata API page. Language does not change the rate: each call counts as 1 request on a 20, 40 or 120 per minute plan.