🍿 @lorenzopant/tmdb

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

NameTypeRequiredDescription
series_idnumberTMDB TV series identifier.

Returns

TVVideos

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}`);

On this page