Keywords

Get the keywords that have been added to a movie.

tmdb.movies.keywords(params: MovieKeywordsParams): Promise<MovieKeywords>; 

Parameters

NameTypeRequiredDescription
movie_idnumberThe ID of the movie.

Example

const result = await tmdb.movie.keywords({ movie_id: 550 });

Types

Response Type

export type MovieKeywords = {
	id: number;
	keywords: Keyword[];
};
export type Keyword = {
	id: number;
	name: string;
};

export type MovieKeywordsParams = {
	movie_id: number;
};

Example Response

{
  "id": 550,
  "keywords": [
    {
      "id": 851,
      "name": "dual identity"
    },
    {
      "id": 3927,
      "name": "rage and hate"
    },
    {
      "id": 818,
      "name": "based on novel or book"
    },
    ...
  ]
}