Videos
Get trailers, teasers, and clips for a TV show.
Get the videos that belong to a TV show, including trailers, teasers, and featurettes.
async videos(params: TVBaseParam): Promise<TVVideos>TMDB Reference: TV Series Videos
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
series_id | number | ✅ | TMDB TV series identifier. |
Returns
Example
const { results } = await tmdb.tvSeries.videos({ series_id: 1396 });
const trailer = results.find((v) => v.type === "Trailer");
console.log(`https://www.youtube.com/watch?v=${trailer?.key}`);