raw_results(query: str, max_results: Optional[int] = 5, search_depth: Optional[str] = 'advanced', include_domains: Optional[List[str]] = [], exclude_domains: Optional[List[str]] = [], include_answer: Optional[bool] = False, include_raw_content: Optional[bool] = False, include_images: Optional[bool] = False) → Dict[source]¶
async raw_results_async(query: str, max_results: Optional[int] = 5, search_depth: Optional[str] = 'advanced', include_domains: Optional[List[str]] = [], exclude_domains: Optional[List[str]] = [], include_answer: Optional[bool] = False, include_raw_content: Optional[bool] = False, include_images: Optional[bool] = False) → Dict[source]¶
Get results from the Tavily Search API asynchronously.
results(query: str, max_results: Optional[int] = 5, search_depth: Optional[str] = 'advanced', include_domains: Optional[List[str]] = [], exclude_domains: Optional[List[str]] = [], include_answer: Optional[bool] = False, include_raw_content: Optional[bool] = False, include_images: Optional[bool] = False) → List[Dict][source]¶
Run query through Tavily Search and return metadata.
Parameters
query – The query to search for.
max_results – The maximum number of results to return.
search_depth – The depth of the search. Can be “basic” or “advanced”.
include_domains – A list of domains to include in the search.
exclude_domains – A list of domains to exclude from the search.
include_answer – Whether to include the answer in the results.
include_raw_content – Whether to include the raw content in the results.
include_images – Whether to include images in the results.
Returns
The query that was searched for.