Hit Movies
Learn and practice how to get popular, top-rated, and trending movies using TMDB API.
We'll cover the following...
In this lesson, we’ll explore and practice three endpoints—popular, top-rated, and trending movies.
Popular movies
It always helps to have a list of popular movies to choose from, especially when we plan to watch a movie after a long time.
We can get a list of the current popular movies on TMDB using the popular movies endpoint. To keep the list up-to-date, the content is updated daily. The endpoint doesn’t take any path parameter other than the API key.
Here is the base URL in focus:
https://api.themoviedb.org/3/movie/popular?api_key={ourTMDBapikey}
Request parameters
The following 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 |
| string | optional | This is to specify an |
The widget below has the code to get a list of popular movies on TMDB. ...