Details
Query the details of a specific keyword.
async details(params: KeywordDetailsParams): Promise<Keyword>TMDB Reference: Keyword Details
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyword_id | number | ✅ | TMDB keyword identifier. |
Returns
A Keyword object containing the details of the specified keyword.
Example
import { TMDB } from "@lorenzopant/tmdb";
const tmdb = new TMDB("your-api-key");
const keyword = await tmdb.keywords.details({ keyword_id: 4379 });
console.log(keyword.name); // "time travel"