...

/

Latest and Upcoming Movies

Latest and Upcoming Movies

Learn and practice how to get the latest, upcoming, and currently playing movies and information about their duration using TMDB API.

In this lesson, we’ll focus on four endpoints—the latest movie, upcoming movies, currently playing movies, and movie watch providers.

Latest movie

If an individual is looking for something new to watch then most probably they will start with the latest movies. TMDB’s latest movie endpoint allows us to fetch the latest movie they have on the platform. This endpoint doesn’t take any path parameters.

The base URL in focus is as follows:

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

The following 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.

The objects in the resulting JSON response are the same as we get for the movie details endpoint.

Let’s run an example of the latest movie endpoint. The widget ...