🍿 @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_adultboolean❌Include adult titles in results.
languageLanguage❌Language used for localized result fields.
pagenumber❌Page number for paginated results.
sort_byDiscoverTVSortBy❌Sort order for TV discover results.
timezonestring❌Timezone used for date-based TV filters.
air_date.gtestring❌Minimum air date in YYYY-MM-DD format.
air_date.ltestring❌Maximum air date in YYYY-MM-DD format.
first_air_date.gtestring❌Minimum first air date in YYYY-MM-DD format.
first_air_date.ltestring❌Maximum first air date in YYYY-MM-DD format.
first_air_date_yearnumber❌Filter by first air year.
include_null_first_air_datesboolean❌Include results with null first air dates.
screened_theatricallyboolean❌Filter to TV series that screened theatrically.
with_networksstring❌Filter by network IDs.
with_statusstring❌Filter by TMDB TV status codes. Accepts comma or pipe-separated values.
with_typestring❌Filter by TMDB TV type codes. Accepts comma or pipe-separated values.
with_genresstring❌Filter by genre IDs.
without_genresstring❌Exclude genre IDs.
with_keywordsstring❌Filter by keyword IDs.
without_keywordsstring❌Exclude keyword IDs.
with_companiesstring❌Filter by production company IDs.
without_companiesstring❌Exclude production company IDs.
with_origin_countryCountryISO3166_1❌Filter by origin country.
with_original_languageLanguageISO6391❌Filter by original language.
vote_average.gtenumber❌Minimum average vote.
vote_average.ltenumber❌Maximum average vote.
vote_count.gtenumber❌Minimum vote count.
vote_count.ltenumber❌Maximum vote count.
with_watch_providersstring❌Filter by watch provider IDs.
without_watch_providersstring❌Exclude watch provider IDs.
with_watch_monetization_typesstring❌Filter by watch monetization types such as flatrate, rent, or buy.
watch_regionCountryISO3166_1❌Region 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