🍿 @lorenzopant/tmdb

Details

Get the details and items of a TMDB list.

Get the details of a list, including all items it contains.

async details(params: ListDetailsParams): Promise<ListDetails>

TMDB Reference: Details

Parameters

NameTypeRequiredDescription
list_idnumberTMDB list ID.
languageLanguageLanguage for localized results. Defaults to en-US.
pagenumberPage number to return. Defaults to 1.

Returns

ListDetails

Example

import { TMDB } from "@lorenzopant/tmdb";

const tmdb = new TMDB("your-api-key");
const list = await tmdb.lists.details({ list_id: 1, language: "en-US" });

console.log(list.name);
// "The Marvel Universe"
console.log(list.item_count);
// 59

On this page