🍿 @lorenzopant/tmdb

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

NameTypeRequiredDescription
languageLanguageLanguage for localized titles and overviews. Defaults to en-US.
pagenumberPage number for paginated results. Defaults to 1.
regionCountryISO3166_1ISO 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 });

Types

On this page