Details
Get the full structure of a TV or movie credit by ID.
Get a movie or TV credit details by ID.
async details(params: CreditDetailsParams): Promise<CreditDetails>TMDB Reference: Credit Details
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
credit_id | string | ✅ | TMDB credit identifier. |
language | Language | ❌ | Language for localized results. Defaults to en-US. |
Returns
Example
const details = await tmdb.credits.details({
credit_id: "6024a814c0ae36003d59cc3c",
});
console.log(details.name);
console.log(details.credit_type);