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.

Updated View as Markdown

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?

CodeLanguageNative nameExample 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-GB
    Left to right
  • ruRussianru-RU
    Left to right
  • ukUkrainianuk-UA
    Left to right
  • beBelarusianbe-BY
    Left to right
  • zhChinesezh-CN, zh-TW, zh-HK, zh-Hans
    Left to right
  • ptPortuguesept-BR, pt-PT, pt_BR
    Left to right
  • bgBulgarianbg-BG
    Left to right
  • heHebrewhe-IL
    Right to left
  • csCzechcs-CZ
    Left to right
  • roRomanianro-RO
    Left to right
  • frFrenchfr-FR, fr-CA
    Left to right
  • plPolishpl-PL
    Left to right
  • itItalianit-IT
    Left to right
  • esSpanishes-ES, es-MX
    Left 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-BR and zh-CN, with a region
  • ru and pt, without one
  • pt_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.

bashjspy
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 sendYou getWhy
ru-RURussianBase language ru
ru_RURussianThe underscore works like the dash
RU-ruRussianCase is ignored
pt-PTPortugueseThe region is not read
zh-TWChineseThe region and script are not read
iw-ILEnglishiw is the old Hebrew code, not in the list
de-DEEnglishGerman is not one of the 14
ja-JPEnglishJapanese is not one of the 14
No languageThe default answerAs 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.

Questions and answers

What are the TMDB language codes?

TMDB language codes are an ISO 639-1 language joined to an ISO 3166 region, such as ru-RU, pt-BR or zh-CN, sent in the language parameter. amodb reads the base code before the dash or underscore and serves 14: en, ru, uk, be, zh, pt, bg, he, cs, ro, fr, pl, it and es.

Which languages does the amodb API support?

Fourteen: English, Russian, Ukrainian, Belarusian, Chinese, Portuguese, Bulgarian, Hebrew, Czech, Romanian, French, Polish, Italian and Spanish. They cover titles, overviews, taglines, genre names and person biographies. Any other language returns English with HTTP 200.

Does pt-PT return different text from pt-BR?

No. amodb reads only the base language, so pt-PT and pt-BR both return Portuguese. The same applies to zh-CN and zh-TW, which both return Chinese, and to es-ES and es-MX, which both return Spanish.

What happens with a language outside the 14?

The call succeeds and returns English. For example, language=de-DE returns the English title and overview with HTTP 200. A language tag never produces an error, so you can pass the user's locale as it is.

Does amodb accept iw for Hebrew?

No. amodb serves Hebrew for he, so he and he-IL work. The older code iw is not in the list of 14 and falls back to English. Map iw to he in your client before you send the request.

How do I get the original language of a title?

Read the original_language field in the response. It holds the language of the title itself as a short code such as en or ja, and it is not limited to the 14. The language parameter changes only translated text such as title and overview.