🍿 @lorenzopant/tmdb

Search

Type definitions for search parameters and result items used by the SearchAPI.

These types cover the parameter shapes and result items returned by the SearchAPI.

Parameters

SearchMoviesParams

Parameters for search.movie().

Prop

Type


SearchCollectionsParams

Parameters for search.collection(). Same as SearchMoviesParams but omits primary_release_year and year.

Prop

Type


SearchPersonParams

Parameters for search.person().

Prop

Type


SearchKeywordsParams

Parameters for search.keyword(). Accepts only query and page.

Prop

Type


SearchCompanyParams

Parameters for search.company(). Accepts only query and page.

Prop

Type


SearchTVSeriesParams

Parameters for search.tv_series().

Prop

Type


SearchMultiParams

Parameters for search.multi(). Accepts query, include_adult, language, and page.

Prop

Type


Result Items

MovieResultItem

A simplified movie object returned in search and list results. For full movie details, see movies.details().

Prop

Type


TVSeriesResultItem

A simplified TV series object returned in search and list results. For full series details, see tv_series.details().

Prop

Type


CollectionResultItem

A collection result item returned by search.collection().

Prop

Type


CompanyResultItem

A company result item returned by search.company().

Prop

Type


KeywordResultItem

A keyword result item returned by search.keyword().

Prop

Type


PersonResultItem

A person result item returned by search.person().

Prop

Type


MultiSearchResultItem

A discriminated union returned by search.multi(). Each item includes a media_type field to distinguish between entity types.

type MultiSearchResultItem =
	| (MovieResultItem & { media_type: "movie" })
	| (TVSeriesResultItem & { media_type: "tv" })
	| (PersonResultItem & { media_type: "person" });

On this page