TV Show Suggestions

Learn and practice how to get recommended and similar TV shows along with reviews using TMDB API.

In this lesson, we’ll discover three endpoints—TV show reviews, recommendations, and similar TV shows.

TV show reviews

Reviews help users to decide whether they want to watch a particular TV show or not. TMDB’s TV show reviews endpoint allows us to fetch all the reviews of the specified TV show. The endpoint takes in an integer path parameter, tv_id, and returns a single JSON response containing all the reviews.

The base URL in focus is as follows:

https://api.themoviedb.org/3/tv/{tv_id}/reviews?api_key={yourTMDBapikey}

Request parameters

The input parameters supported by our query string are as follows:

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 the range of 1–1000 inclusive. The default value is 1.

Let’s run an example of the TV show reviews endpoint. The widget below has a code to retrieve all the reviews for a TV show by its ID. Click “Edit” to fill in the ...