🍿 @lorenzopant/tmdb

Content Ratings

Get content ratings per country for a TV show.

Get the content ratings that have been added to a TV show.

async content_ratings(params: TVBaseParam): Promise<TVContentRatings>

TMDB Reference: TV Series Content Ratings

Parameters

NameTypeRequiredDescription
series_idnumberTMDB TV series identifier.

Returns

TVContentRatings

Example

const { results } = await tmdb.tvSeries.content_ratings({ series_id: 1396 });

const us = results.find((r) => r.iso_3166_1 === "US");
console.log(us?.rating); // "TV-MA"

On this page