Which languages does the movie metadata API serve?
amodb's movie metadata API serves text in 14 languages from one key, with one id per title in every language. Send language=ru-RU and the title, overview, tagline and genre names of /3/movie/550 come back in Russian; send a tag outside the 14, such as de-DE, and the reply is English with status 200. Every plan from $5.19 a month includes all 14 languages.
| Language | Code | Example tag | Writing direction |
|---|---|---|---|
| English | en | en-US | Left to right |
| Russian | ru | ru-RU | Left to right |
| Ukrainian | uk | uk-UA | Left to right |
| Belarusian | be | be-BY | Left to right |
| Chinese | zh | zh-CN | Left to right |
| Portuguese | pt | pt-BR | Left to right |
| Bulgarian | bg | bg-BG | Left to right |
| Hebrew | he | he-IL | Right to left |
| Czech | cs | cs-CZ | Left to right |
| Romanian | ro | ro-RO | Left to right |
| French | fr | fr-FR | Left to right |
| Polish | pl | pl-PL | Left to right |
| Italian | it | it-IT | Left to right |
| Spanish | es | es-ES | Left to right |
The language parameter works on every endpoint that returns text, and it takes the same TMDB tags your client already sends. Ids stay the same in every language, so one row in your database serves all 14. The parameter rules are on language codes.
How does language fallback work?
Fallback happens at two levels: the tag you send, and each field in the reply.
The tag. amodb takes the part of the tag before the first - or _, lowercases it, and serves that language when it is one of the 14. Anything else returns English. A request never fails because of its tag.
| You send | You get | Note |
|---|---|---|
ru-RU, ru or ru_RU | Russian | One edge cache entry for all three |
pt-BR or pt-PT | Portuguese | The same text for both regions |
zh-CN or zh-TW | Chinese | The same text for both regions |
he-IL | Hebrew | Right to left, see the Hebrew section below |
de-DE, ja-JP or ko-KR | English | Status 200; original_title keeps the original script |
Japanese and Korean are not served as interface languages. Their original titles still come back in original_title for movies and original_name for TV series.
Each field. Not every title has text in every language. An overview can come back empty when no translation exists, and a title or tagline can come back in English. The API does not invent text. Use a fixed order so the page always shows something:
- Request the language you display.
- If a field is empty, request
en-USfor the same id, or read the English entry from the translations list. - If the title is empty, show
original_title. - Store which language each field came from, so you can retry later.
The edge cache holds one copy per base language for each cached path, so the English fallback for a popular title is usually served from cache. It still counts as one request toward your rate, because the rate limit runs before the cache.
What data you get
| Endpoint | Localized content |
|---|---|
GET / | title, overview, tagline, genre names |
GET /3/tv/{tv_id} | name, overview, tagline, genre names |
GET / | Season and episode name and overview |
GET / | biography |
GET / | Genre names for filters and menus |
GET / | Every language of a title in one reply |
GET / | Posters tagged by language, filtered with include_image_language |
GET / | Videos tagged by iso_639_1, all languages in one reply |
Field lists are on movie details API and TMDB TV API, and the localized genre lists on TMDB genre ids.
Start in 3 steps
- Choose a plan on amodb pricing. The language set is the same on every plan: every plan has every TMDB v3 compatible endpoint, the OMDb compatible endpoint, images, 14 languages and the extensions.
- Enter your email and pay, then sign in with the 6 digit code amodb emails you. Your first key is created and shown once.
- Call any endpoint with a
languagetag, and send the key asapi_keyor as a Bearer header.
Example request
The bash sample prints the title of Fight Club (id 550) in three languages. It uses jq to print one field. The PHP sample requests Belarusian and falls back to English when the overview is blank.
for lang in en-US ru-RU he-IL; do
curl -s "https://api.amodb.dev/3/movie/550?language=$lang" \
-H "Authorization: Bearer $AMODB_KEY" | jq -r '.title'
done<?php
function amodb(string $path, array $query = []): array
{
$url = 'https://api.amodb.dev/3' . $path . '?' . http_build_query($query);
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 10,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('AMODB_KEY')],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
throw new RuntimeException("amodb returned $status");
}
return json_decode($body, true);
}
function localizedMovie(int $id, string $lang): array
{
$movie = amodb("/movie/$id", ['language' => $lang]);
$movie['text_language'] = $lang;
if (trim($movie['overview'] ?? '') === '') {
$fallback = amodb("/movie/$id", ['language' => 'en-US']);
$movie['overview'] = $fallback['overview'] ?? '';
$movie['text_language'] = 'en-US';
}
return $movie;
}
$movie = localizedMovie(550, 'be-BY');
echo $movie['title'], ' (', $movie['original_title'], ')', PHP_EOL;
echo '[', $movie['text_language'], '] ', $movie['overview'], PHP_EOL;Response for language=ru-RU, trimmed to a few fields. The key text_language in the PHP sample is added by your code, not by the API.
{
"genres": [
{
"id": 18,
"name": "драма"
},
{
"id": 53,
"name": "триллер"
}
],
"id": 550,
"original_language": "en",
"original_title": "Fight Club",
"overview": "Сотрудник страховой компании страдает хронической бессонницей и отчаянно пытается вырваться из мучительно скучной жизни. Однажды в очередной командировке он...",
"poster_path": "/66RvLrRJTm4J8l3uHXWF09AICol.jpg",
"tagline": "«Интриги. Хаос. Мыло»",
"title": "Бойцовский клуб"
}Genre ids stay the same across languages (18 is drama, 53 is thriller), so store the id and look up the name in the language you display. The same pattern works in any language your server runs; the movie API page shows it in JavaScript.
How many requests does a multilingual site need?
Each detail call returns one language. The translations call returns text for every language at once, but only the text fields, so genre names, credits and posters still come from detail calls.
| Languages on your site | Detail calls per title | With one translations call | Notes |
|---|---|---|---|
| 1 | 1 | Not needed | One language tag |
| 2 | 2 | 1 call plus 1 detail call | The detail call gives ids, credits and images |
| 5 | 5 | 1 call plus 1 detail call | Genre names come from the cached genre list |
| 14 | 14 | 1 call plus 1 detail call | The translations list can hold more than 14 entries |
On the Lite plan at 20 requests per minute, a 5 language catalog of 1,000 titles costs 5,000 detail calls, about 4 hours and 10 minutes, or 2,000 calls with the translations route, about 1 hour and 40 minutes. Fetch /3/genre/movie/list once per language and keep it: 14 calls cover the genre names for every title in every language.
List every translation of a title
GET / returns a translations array, one entry per language that has data. The list can be longer than the 14 served languages: Fight Club has 50 entries. Use it to build a language switcher, or to store all texts of a title in one row.
| Field | Meaning |
|---|---|
iso_639_1, iso_3166_1 | Language and country codes |
english_name | Language name in English |
data.title (movies) or data.name (TV), data.overview, data.tagline | Localized text, the title can be empty |
data.homepage, data.runtime | Optional values for that translation |
The same endpoint exists for TV series and episodes. TV entries carry data.name and no runtime, and episode entries carry only name and overview. Seasons answer with an empty list, and people and collections have no translations endpoint. Details are on translations API. One translations call replaces up to 14 detail calls when you want all languages at once.
Posters and videos by language
Pictures and videos carry their own language tags in iso_639_1. On the image endpoints, pass a comma separated list and add null for items with no language, such as textless posters. The reply holds the matching items, so rank them in your code.
| Parameter | Used on | Example |
|---|---|---|
include_image_language | Image endpoints | ru,en,null |
The video endpoints return every language in one reply and ignore include_video_language, so filter on iso_639_1 yourself. Image files load from https:/ in 10 sizes from w92 to original, with no key and a 30 day cache. See TMDB image URL for the rules.
Hebrew and right-to-left text
Hebrew is the only right-to-left language of the 14. Handle it in the page, not in the data:
- Set
lang="he"anddir="rtl"on the element that holds the text. - Wrap Latin titles inside Hebrew text in a
<bdi>element so punctuation does not jump to the wrong side. - Use logical CSS properties such as
margin-inline-startinstead of left and right.
The API returns plain Unicode and adds no direction marks, so the markup decides the direction.
How it compares
| Capability | Scrape pages yourself | English-only dataset | amodb |
|---|---|---|---|
| Languages | One site locale per request | English | 14 languages with language |
| Same id across languages | Different urls per locale | Not applicable | Same numeric id everywhere |
| All translations of a title | Fetch each locale page | Not applicable | One translations call |
| Localized posters | Per-locale image urls | Check their docs | include_image_language filter |
| Original title | Parse from page text | Check their docs | original_title, original_name |
| Unknown language tag | Depends on the site | Not applicable | English with status 200 |
For a TMDB client that only needs a new base URL, see TMDB API alternative.
How much does multilingual movie metadata cost?
The language set is the same on every plan, so what you choose is the rate and the period, plus the /3/all endpoint on Pro+: $5.19, $6.19 or $7.19 a month for 20, 40 or 120 requests per minute. Buy 1, 3, 6, 12 or 24 months prepaid, with 0, 10, 20, 30 or 40 percent off the longer ones; Lite on 24 months is $74.74, or $3.11 a month. Card, Apple Pay and Google Pay payments do not renew automatically, and Patreon is monthly and renews on Patreon until you cancel there. A site in five languages needs up to five detail calls per title, and repeat requests are served from the edge cache for 6 hours. No free tier. See amodb pricing.