search

open suspend fun search(title: String, page: Int = 1, id: String? = null, imdbId: String? = null, tmdbId: Int? = null, filters: FilterList = this.filters): SearchResponseData<FilmSearchItem>

Searches for films based on the provided criteria.

Return

A SearchResponseData object containing the search results.

Parameters

title

The title of the film to search for.

id

The ID of the film to search for (optional).

tmdbId

The TMDB ID of the film to search for (optional).

imdbId

The IMDB ID of the film to search for (optional).

page

The page number of the search results (optional, defaults to 1).

filters

A list of filters to apply to the search (optional, defaults to an empty list).