Search

class asyncpow.apis.search.Search(base_url: URL, api_key: str, session: ClientSession, raw_response: bool)[source]

Class to interact with search-related endpoints.

Initialize the Search object with the base URL, API key, and session.

Search for Movies, TV or Person

Parameters:
  • query (str) –

  • raw_response (bool, optional) – return raw json. Defaults to None.

  • page (int) – The page number for items (default is 1).

  • lang (str) – The language for items (default is β€œen”).

Returns:

_description_

Return type:

_type_

class asyncpow.apis.search.Discover(base_url: URL, api_key: str, session: ClientSession, raw_response: bool)[source]

Class to interact with discover-related endpoints.

Initialize the Discover object with the base URL, API key, and session.

Get trending items based on specified page and language.

Parameters:
  • raw_response (bool, optional) – return raw json. Defaults to None.

  • page (int) – The page number for trending items (default is 1).

  • lang (str) – The language for the trending items (default is β€œen”).

Returns:

The model object containing trending items.

Return type:

dict | SearchResultModel

async async_get_watchlist(raw_response: bool | None = None, page: int = 1) dict | DiscoverWatchlistModel[source]

Get the watchlist items based on the specified page.

Parameters:
  • raw_response (bool, optional) – return raw json. Defaults to None.

  • page (int) – The page number for watchlist items (default is 1).

Returns:

The model object containing watchlist items.

Return type:

dict | DiscoverWatchlistModel