Now Playing
Get a list of movies that are currently in theatres.
Returns a paginated list of movies currently playing in theatres. Results are filtered
by region when a region parameter is provided.
async now_playing(params?: MovieListParams): Promise<PaginatedResponse<MovieResultItem>>TMDB Reference: Movie Now Playing
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
language | Language | ❌ | Language for localized titles and overviews. Defaults to en-US. |
page | number | ❌ | Page number for paginated results. Defaults to 1. |
region | CountryISO3166_1 | ❌ | ISO 3166-1 country code to filter results by country. |
Returns
A PaginatedResponse<MovieResultItem> containing
an array of MovieResultItem objects.
Example
import { TMDB } from "@lorenzopant/tmdb";
const tmdb = new TMDB("your-api-key");
const { results, page, total_pages } = await tmdb.movieLists.now_playing();
console.log(results);
// [
// { id: 550, title: "Fight Club", release_date: "1999-10-15", ... },
// { id: 680, title: "Pulp Fiction", release_date: "1994-09-10", ... },
// ...
// ]
// With params
const italian = await tmdb.movieLists.now_playing({ language: "it-IT", region: "IT", page: 2 });