🍿 @lorenzopant/tmdb

TV

Discover TV series by applying TMDB filters and sort options.

Discover TV series by applying filters and sort options.

async tv(params?: DiscoverTVParams): Promise<PaginatedResponse<DiscoverTVResultItem>>

TMDB Reference: Discover TV

Notes

  • timezone affects date-based TV discover filters the same way it does for other TMDB TV list endpoints.
  • Discover filter strings support both comma and pipe separators. Commas mean AND; pipes mean OR.

Parameters

NameTypeRequiredDescription
include_adultbooleanInclude adult titles in results.
languageLanguageLanguage used for localized result fields.
pagenumberPage number for paginated results.
sort_byDiscoverTVSortBySort order for TV discover results.
timezonestringTimezone used for date-based TV filters.
air_date.gtestringMinimum air date in YYYY-MM-DD format.
air_date.ltestringMaximum air date in YYYY-MM-DD format.
first_air_date.gtestringMinimum first air date in YYYY-MM-DD format.
first_air_date.ltestringMaximum first air date in YYYY-MM-DD format.
first_air_date_yearnumberFilter by first air year.
include_null_first_air_datesbooleanInclude results with null first air dates.
screened_theatricallybooleanFilter to TV series that screened theatrically.
with_networksstringFilter by network IDs.
with_statusstringFilter by TMDB TV status codes. Accepts comma or pipe-separated values.
with_typestringFilter by TMDB TV type codes. Accepts comma or pipe-separated values.
with_genresstringFilter by genre IDs.
without_genresstringExclude genre IDs.
with_keywordsstringFilter by keyword IDs.
without_keywordsstringExclude keyword IDs.
with_companiesstringFilter by production company IDs.
without_companiesstringExclude production company IDs.
with_origin_countryCountryISO3166_1Filter by origin country.
with_original_languageLanguageISO6391Filter by original language.
vote_average.gtenumberMinimum average vote.
vote_average.ltenumberMaximum average vote.
vote_count.gtenumberMinimum vote count.
vote_count.ltenumberMaximum vote count.
with_watch_providersstringFilter by watch provider IDs.
without_watch_providersstringExclude watch provider IDs.
with_watch_monetization_typesstringFilter by watch monetization types such as flatrate, rent, or buy.
watch_regionCountryISO3166_1Region used for watch provider filtering.

Returns

A PaginatedResponse<DiscoverTVResultItem> containing an array of DiscoverTVResultItem objects.

Example

const series = await tmdb.discover.tv({
	sort_by: "first_air_date.desc",
	timezone: "Europe/Rome",
	"first_air_date.gte": "2024-01-01",
	"with_networks": "213",
	"with_status": "0|2",
	"with_type": "2,4",
});

console.log(series.results[0]?.name);

Types

On this page