TMDB genre ids: the movie and TV genre list
TMDB genre ids are fixed numbers: Action is 28, Comedy 35, Drama 18 and Science Fiction 878 for movies, while TV uses Action & Adventure 10759 and Sci-Fi & Fantasy 10765. The movie list has 19 genres and the TV list has 16. Read them at GET /3/genre/movie/list and GET /3/genre/tv/list, in 14 languages, cached for 24 hours.
TMDB genre ids are fixed numbers. The movie list has 19 genres, from Action (28) to Western (37). The TV list has 16, from Action & Adventure (10759) to Western (37). Eight ids sit in both lists: 16, 18, 35, 37, 80, 99, 9648 and 10751. amodb returns both lists at the TMDB v3 paths with names in 14 languages, so a TMDB client reads them after a change of base URL.
Jump to the movie genre ids or the TV genre ids. To turn an id into a list of titles, use the TMDB discover API. Every endpoint is listed in the API reference, and the product view is the movie API.
How do I get the movie genre list?
GET / returns every movie genre as an id and a name. The ids are the numbers that genre_ids carries on list items and that with_genres expects in discover. The names follow the language parameter.
The example loads the list and builds an id to name map, the first thing most apps need.
curl -s "https://api.amodb.dev/3/genre/movie/list?language=en-US" \
-H "Authorization: Bearer $AMODB_KEY"const url = 'https://api.amodb.dev/3/genre/movie/list?language=en-US';
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.AMODB_KEY}` } });
if (!res.ok) throw new Error(`amodb returned ${res.status}`);
const { genres } = await res.json();
const names = new Map(genres.map((g) => [g.id, g.name]));
console.log(names.get(878), names.size);import os
import requests
r = requests.get(
"https://api.amodb.dev/3/genre/movie/list",
params={"language": "en-US"},
headers={"Authorization": f"Bearer {os.environ['AMODB_KEY']}"},
timeout=10,
)
r.raise_for_status()
names = {g["id"]: g["name"] for g in r.json()["genres"]}
print(names[878], len(names))<?php
$url = 'https://api.amodb.dev/3/genre/movie/list?language=en-US';
$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");
}
$names = [];
foreach (json_decode($body, true)['genres'] as $g) {
$names[$g['id']] = $g['name'];
}
echo $names[878], ' ', count($names), PHP_EOL;package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
"time"
)
type Genres struct {
Genres []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"genres"`
}
func main() {
url := "https://api.amodb.dev/3/genre/movie/list?language=en-US"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("AMODB_KEY"))
client := &http.Client{Timeout: 10 * time.Second}
res, err := client.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
if res.StatusCode != http.StatusOK {
panic(res.Status)
}
var g Genres
if err := json.NewDecoder(res.Body).Decode(&g); err != nil {
panic(err)
}
names := map[int]string{}
for _, x := range g.Genres {
names[x.ID] = x.Name
}
fmt.Println(names[878], len(names))
}Parameters
api_keyqueryone of twoYour key. Use this or theAuthorization: Bearerheader.languagequeryTMDB tag such asen-US,ru-RUorpt-BR. Names are returned in this language. Defaulten-US.
Response fields
| Field | Type | Notes |
|---|---|---|
genres | array | The whole list in one response, no paging. |
genres[].id | integer | Stable genre id. |
genres[].name | string | Genre name in the requested language. |
Example response
{
"genres": [
{ "id": 28, "name": "Action" },
{ "id": 12, "name": "Adventure" },
{ "id": 16, "name": "Animation" },
{ "id": 35, "name": "Comedy" }
]
}The movie reply holds 19 genres in TMDB order, and this one is cut to the first 4. The TV reply holds 16.
What are the TMDB genre ids for movies?
GET / returns these 19 genres, in this order. The names below are English. Other languages return the same ids with translated names.
| Id | Name | Also in the TV list |
|---|---|---|
| 28 | Action | no |
| 12 | Adventure | no |
| 16 | Animation | yes |
| 35 | Comedy | yes |
| 80 | Crime | yes |
| 99 | Documentary | yes |
| 18 | Drama | yes |
| 10751 | Family | yes |
| 14 | Fantasy | no |
| 36 | History | no |
| 27 | Horror | no |
| 10402 | Music | no |
| 9648 | Mystery | yes |
| 10749 | Romance | no |
| 878 | Science Fiction | no |
| 10770 | TV Movie | no |
| 53 | Thriller | no |
| 10752 | War | no |
| 37 | Western | yes |
What are the TMDB genre ids for TV shows?
GET /3/genre/tv/list takes the same language parameter and returns these 16 genres. TV has merged genres such as Action & Adventure (10759) and Sci-Fi & Fantasy (10765), which movies do not have. When you filter TV in discover, use these ids, for example 10765 for Sci-Fi & Fantasy series.
| Id | Name | Also in the movie list |
|---|---|---|
| 10759 | Action & Adventure | no |
| 16 | Animation | yes |
| 35 | Comedy | yes |
| 80 | Crime | yes |
| 99 | Documentary | yes |
| 18 | Drama | yes |
| 10751 | Family | yes |
| 10762 | Kids | no |
| 9648 | Mystery | yes |
| 10763 | News | no |
| 10764 | Reality | no |
| 10765 | Sci-Fi & Fantasy | no |
| 10766 | Soap | no |
| 10767 | Talk | no |
| 10768 | War & Politics | no |
| 37 | Western | yes |
The TV reply is cut here to its first 2 entries:
{
"genres": [
{ "id": 10759, "name": "Action & Adventure" },
{ "id": 16, "name": "Animation" }
]
}Which genre ids do movies and TV share?
The two lists overlap on 8 ids. The same id means the same genre in both, so one id to name map per language covers both media types.
| Group | Count | Ids |
|---|---|---|
| In both lists | 8 | 16, 18, 35, 37, 80, 99, 9648, 10751 |
| Movie only | 11 | 12, 14, 27, 28, 36, 53, 878, 10402, 10749, 10752, 10770 |
| TV only | 8 | 10759, 10762, 10763, 10764, 10765, 10766, 10767, 10768 |
Movie items in lists carry ids from the movie list in genre_ids, and TV items carry ids from the TV list. Together the two lists name 27 distinct ids.
How do I filter by genre id?
Genre ids work as filters in discover. A comma between ids means all of them, and a vertical bar means any of them. Write the bar as %7C in a URL.
| Goal | Query string |
|---|---|
| Science Fiction movies | / |
| Action and Adventure together | / |
| Action or Adventure | / |
| Drama without Romance | / |
| Sci-Fi & Fantasy series | / |
Genre names reach your screen in two shapes. A details record carries genres as { id, name } objects, and list items carry genre_ids as bare numbers. Map the numbers to names with the lists on this page.
Which other lookup lists come with the genre list?
These paths return reference data for forms, filters and settings screens. All take the key; none take page.
| Method and path | Parameters | Each item or shape |
|---|---|---|
GET / | none | Array of { iso_ |
GET / | none | Array of { iso_ |
GET / | none | Array of 14 strings such as ru-RU |
GET / | none | Array of { department, jobs } where jobs lists job titles |
GET / | none | { certifications } keyed by country code, 10 countries |
GET / | none | { certifications } keyed by country code, one key per country in the catalog |
GET / | language | { results } of { iso_ |
GET / | language, watch_region | { results } of providers |
GET / | language, watch_region | { results } of providers |
/ ignores language and always returns the same names. On / and on the watch provider regions, english_name is always English and native_name follows language. amodb does not offer /.
A certification entry names the rating, what it means and its sort order. Entries are grouped by country code, so one call covers every market. The movie list has the rating texts. On the TV list meaning is an empty string.
{
"certifications": {
"US": [
{ "certification": "PG", "meaning": "Some material may not be suitable for children under 10.", "order": 3 },
{ "certification": "R", "meaning": "Under 17 requires accompanying parent or adult guardian.", "order": 5 }
]
}
}The example is cut to 2 of the 6 US entries. The movie list covers AU, BR, CA, DE, ES, FR, GB, IT, RU and US.
A provider entry has provider_id, provider_name, logo_path, display_priority and display_priorities, a map of country code to priority. Without watch_region you get every provider. With watch_region=US you keep only providers that serve that country. An unknown region returns an empty results array. Pass a code from /. Provider logos load from the image host, see images.
{
"display_priorities": { "AT": 1, "DE": 1, "GB": 1, "JP": 1, "US": 3 },
"display_priority": 3,
"logo_path": "/gMZdpavHmxFNnLpMHwVxfqeux2g.png",
"provider_name": "Amazon Prime Video",
"provider_id": 9
}This is one entry from /.
Is the genre list free to use in an app that earns money?
The ids are plain numbers, but the lists come from an API that needs a key. TMDB's API is free only until the app earns money. TMDB staff said on the TMDB forum (2026-10-15) that an app counts as commercial once it earns revenue from ads, in-app purchases, donations or subscriptions, and quoted a commercial plan at $149 a month for companies under $1M revenue (2026-03-31). amodb has no free tier and starts at $5.19 a month. It charges nothing extra for commercial use on any plan, its terms do not prohibit it, and amodb requires no amodb logo or credit line. Third party credits still apply: credit JustWatch for where to watch data, and show the attribution credit wherever a text or image carries one. See amodb pricing and amodb vs TMDB. To build a first app on these lists, follow the TMDB API in JavaScript tutorial.
Errors
| HTTP | status_code | When |
|---|---|---|
| 401 | 7 | The key is missing or wrong. |
| 402 | 36 | The plan period has ended. |
| 404 | 34 | The path does not exist, for example /genre/book/list. |
| 405 | 37 | You used a write method on a lookup path. |
| 429 | 25 | You went over your requests per minute. Wait for the Retry-After seconds. |
Details for every code are on errors. Plan limits are on rate limits.
Practical notes
- Load the lists once per language at startup and keep them in memory or a file. The edge caches the genre and
/configurationpaths for 24 hours, so a daily refresh on your side is enough. A cached reply still counts toward your requests per minute. - Store genre ids in your database, not names. A name changes with the language, an id does not.
- The movie list has 19 entries and the TV list has 16. Eight ids appear in both, so one id to name map per language covers movies and TV. Ids 10759 and 10762 to 10768 appear on TV items only.
with_genres=28,12in discover means Action and Adventure together.with_genres=28|12means either one.- Genre names follow the
languageparameter. A tag outside the 14 base languages in languages falls back to English, and a few names stay in English in some languages, for example10759in Italian.