Titles, overviews and taglines in every language, plus aliases
A movie's, show's or episode's translated title, overview and tagline per language and country, optionally for one language; movies and shows also return their aliases (alternative titles by country).
Every response includes credits_used: the credits this call cost.
Part of the Trakt API: 36 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
type | movie | show | episode | movie, show or episode (read from a trakt.tv link). Example: show |
idrequired | string | The title: Trakt slug, Trakt number, IMDb id or a trakt.tv link (a season or episode link also sets season and episode). Example: inception-2010 |
season | integer | Season number (0 is specials); for type=season or episode. |
episode | integer | Episode number in the season; for type=episode. |
language | string | Two-letter language code, e.g. es. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/trakt/v1/translations?type=show&id=breaking-bad" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/trakt/v1/translations",
params={"type": "show", "id": "breaking-bad"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/trakt/v1/translations");
url.searchParams.set("type", "show");
url.searchParams.set("id", "breaking-bad");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"type": "show","language": null,"count": 65,"translations": [{"title": null,"overview": "والتر وايت مدرس كيمياء موهوب يعيش حياة هادئة ومتواضعة مع عائلته، إلى أن يكتشف إصابته بالسرطان ويقرر تأمين مستقبل أسرته قبل فوات الأوان. يستع…","tagline": "هايزنبرغ","language": "ar","country": "sa"},{"title": null,"overview": "مدرس كيمياء في مدرسة ثانوية على وشك الوفاة بسبب السرطان، يشترك مع طالب سابق في صناعة وبيع عقار \"الميث\" لتأمين مستقبل أسرته.","tagline": null,"language": "ar","country": "ae"},"… 63 more"],"aliases": [{"title": "Totál szívás","country": "hu"},{"title": "Bręstantis blogis","country": "lt"},"… 125 more"],"cached": false,"credits_used": 1}