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
| Name | Type | Required | Description |
|---|---|---|---|
series_id | number | ✅ | TMDB TV series identifier. |
Returns
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"