Movie Suggestions
Learn and practice how to get movie recommendations and reviews using TMDB API.
We'll cover the following...
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 |
| string | optional | This is an |
| 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 |
The output JSON response consists of the following objects:
Object | Type | Category | Description |
| integer | optional | This is the |
| integer | optional | This is the page being queried. |
| 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. |
| integer | optional | This is the total number of pages that have the movie reviews for the movie we requested. |
| 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 ...