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.
- async async_get_search(query: str, raw_response: bool | None = None, page: int = 1, lang: str = 'en') dict | SearchResultModel [source]ο
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.
- async async_get_trending(raw_response: bool | None = None, page: int = 1, lang: str = 'en') dict | SearchResultModel [source]ο
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