🍿 @lorenzopant/tmdb

Recommendations

Get a list of recommended movies based on a movie.

Get a list of recommended movies for a specific movie, based on popularity and user ratings.

async recommendations(params: MovieRecommendationsParams): Promise<MovieRecommendations>

TMDB Reference: Movie Recommendations

Parameters

NameTypeRequiredDescription
movie_idnumberTMDB movie identifier.
languageLanguageLanguage for localized results. Defaults to en-US.
pagenumberPage number for paginated results. Defaults to 1.

Returns

MovieRecommendations — a PaginatedResponse<MovieResultItem>.

Example

const { results } = await tmdb.movies.recommendations({ movie_id: 550 });
console.log(results.map((m) => m.title));

On this page