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.

Updated View as Markdown

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 /3/genre/movie/list 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.

bashjspyphpgo
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 two
    Your key. Use this or the Authorization: Bearer header.
  • languagequery
    TMDB tag such as en-US, ru-RU or pt-BR. Names are returned in this language. Default en-US.

Response fields

FieldTypeNotes
genresarrayThe whole list in one response, no paging.
genres[].idintegerStable genre id.
genres[].namestringGenre name in the requested language.

Example response

JSON
{
  "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 /3/genre/movie/list returns these 19 genres, in this order. The names below are English. Other languages return the same ids with translated names.

IdNameAlso in the TV list
28Actionno
12Adventureno
16Animationyes
35Comedyyes
80Crimeyes
99Documentaryyes
18Dramayes
10751Familyyes
14Fantasyno
36Historyno
27Horrorno
10402Musicno
9648Mysteryyes
10749Romanceno
878Science Fictionno
10770TV Movieno
53Thrillerno
10752Warno
37Westernyes

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.

IdNameAlso in the movie list
10759Action & Adventureno
16Animationyes
35Comedyyes
80Crimeyes
99Documentaryyes
18Dramayes
10751Familyyes
10762Kidsno
9648Mysteryyes
10763Newsno
10764Realityno
10765Sci-Fi & Fantasyno
10766Soapno
10767Talkno
10768War & Politicsno
37Westernyes

The TV reply is cut here to its first 2 entries:

JSON
{
  "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.

GroupCountIds
In both lists816, 18, 35, 37, 80, 99, 9648, 10751
Movie only1112, 14, 27, 28, 36, 53, 878, 10402, 10749, 10752, 10770
TV only810759, 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.

GoalQuery string
Science Fiction movies/discover/movie?with_genres=878
Action and Adventure together/discover/movie?with_genres=28,12
Action or Adventure/discover/movie?with_genres=28%7C12
Drama without Romance/discover/movie?with_genres=18&without_genres=10749
Sci-Fi & Fantasy series/discover/tv?with_genres=10765

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 pathParametersEach item or shape
GET /configuration/countriesnoneArray of { iso_3166_1, english_name, native_name }
GET /configuration/languagesnoneArray of { iso_639_1, english_name, name }
GET /configuration/primary_translationsnoneArray of 14 strings such as ru-RU
GET /configuration/jobsnoneArray of { department, jobs } where jobs lists job titles
GET /certification/movie/listnone{ certifications } keyed by country code, 10 countries
GET /certification/tv/listnone{ certifications } keyed by country code, one key per country in the catalog
GET /watch/providers/regionslanguage{ results } of { iso_3166_1, english_name, native_name }
GET /watch/providers/movielanguage, watch_region{ results } of providers
GET /watch/providers/tvlanguage, watch_region{ results } of providers

/configuration/languages ignores language and always returns the same names. On /configuration/countries and on the watch provider regions, english_name is always English and native_name follows language. amodb does not offer /configuration/timezones.

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.

JSON
{
  "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 /watch/providers/regions. Provider logos load from the image host, see images.

JSON
{
  "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 /watch/providers/movie?watch_region=US.

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

HTTPstatus_codeWhen
4017The key is missing or wrong.
40236The plan period has ended.
40434The path does not exist, for example /genre/book/list.
40537You used a write method on a lookup path.
42925You 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 /configuration paths 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,12 in discover means Action and Adventure together. with_genres=28|12 means either one.
  • Genre names follow the language parameter. A tag outside the 14 base languages in languages falls back to English, and a few names stay in English in some languages, for example 10759 in Italian.