🍿 @lorenzopant/tmdb

Details

Query the details of a specific collection.

async details(params: CollectionDetailsParams): Promise<Collection>

TMDB Reference: Collection Details

Parameters

NameTypeRequiredDescription
collection_idnumberTMDB collection identifier.
languageLanguageLanguage for localized results. Defaults to en-US.

Returns

A Collection object containing the details of the specified collection.

Example

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

const tmdb = new TMDB("your-api-key");
const collection = await tmdb.collections.details({ collection_id: 10 }); // Star Wars Collection

Types

On this page