Movie Suggestions

Learn and practice how to get movie recommendations and reviews using TMDB API.

Movie reviews

Movie reviews help individuals, who have not watched the movie yet, to decide whether they want to watch it or not.

We can get user reviews for a movie using the movie reviews endpoint. The endpoint takes an integer path parameter movie_id and returns all the reviews for the requested movie.

This is the base URL in focus:

https://api.themoviedb.org/3/movie/{movie_id}/reviews?api_key={ourTMDBapikey}

The following input query parameters can be used with this endpoint:

Name

Type

Category

Description

language

string

optional

This is an ISO_3166_1 code used to get the translated data as per the specified language. This is applicable to only the fields that support it. The default value is en-US.

page

integer

optional

This is used to specify which page to query. Its value can be in a range 1–1000 inclusive. The default value is 1.

The output JSON response consists of the following objects:

Object

Type

Category

Description

id

integer

optional

This is the movie_id of a movie for which we are requesting the reviews.

page

integer

optional

This is the page being queried.

results

array[object]

optional

This returns all the reviews for the requested movie on the specified page, such as  21 movie reviews on page 1, then 20 movie reviews on page 2, and so on.

total_pages

integer

optional

This is the total number of pages that have the movie reviews for the movie we requested.

total_results

integer

optional

This is the total number of reviews TMDB has for the requested movie.

The widget below has the code to fetch all the user reviews for our requested movie. Click “Edit” to enter the values for API_KEY and ...