Details
Query the details of a specific collection.
async details(params: CollectionDetailsParams): Promise<Collection>TMDB Reference: Collection Details
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
collection_id | number | ✅ | TMDB collection identifier. |
language | Language | ❌ | Language 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