TV List

Get the list of official genres for tv shows.

tmdb.genres.tv_list(params?: Pick<TMDBCommonParams, "language">): Promise<GenresResponse>;

Parameters

NameTypeRequiredDescription
languageLanguageISO6391Language for the response

Example

const result = await tmdb.genres.tv_list();

Types

Response Type

export type GenresResponse = {
    genres: Genre[];
};
export type Genre = {
    id: number;
    name: string;
};

export type TMDBCommonParams = {
    language?: LanguageISO6391;
    region?: CountryISO3166_1;
};

Example Response

{
    "genres": [
        {
            "id": 10759,
            "name": "Action & Adventure"
        },
        {
            "id": 16,
            "name": "Animation"
        },
        {
            "id": 35,
            "name": "Comedy"
        },
        {
            "id": 80,
            "name": "Crime"
        },
        {
            "id": 99,
            "name": "Documentary"
        },
        {
            "id": 18,
            "name": "Drama"
        },
        {
            "id": 10751,
            "name": "Family"
        },
        {
            "id": 10762,
            "name": "Kids"
        },
        {
            "id": 9648,
            "name": "Mystery"
        },
        {
            "id": 10763,
            "name": "News"
        },
        {
            "id": 10764,
            "name": "Reality"
        },
        {
            "id": 10765,
            "name": "Sci-Fi & Fantasy"
        },
        {
            "id": 10766,
            "name": "Soap"
        },
        {
            "id": 10767,
            "name": "Talk"
        },
        {
            "id": 10768,
            "name": "War & Politics"
        },
        {
            "id": 37,
            "name": "Western"
        }
    ]
}