Run query through Metaphor Search and return metadata.
results(
self,
query: str,
num_results: int,
include_domains: Optional[List[str]] = None,
exclude_domains: Optional[List[str]] = None,
start_crawl_date: Optional[str] = None,
end_crawl_date: Optional[str] = None,
start_published_date: Optional[str] = None,
end_published_date: Optional[str] = None,
use_autoprompt: Optional[bool] = None
) -> List[Dict]| Name | Type | Description |
|---|---|---|
query* | str | The query to search for. |
num_results* | int | The number of results to return. |
include_domains | Optional[List[str]] | Default: NoneA list of domains to include in the search. Only one of include_domains and exclude_domains should be defined. |
exclude_domains | Optional[List[str]] | Default: NoneA list of domains to exclude from the search. Only one of include_domains and exclude_domains should be defined. |
start_crawl_date | Optional[str] | Default: NoneIf specified, only pages we crawled after start_crawl_date will be returned. |
end_crawl_date | Optional[str] | Default: NoneIf specified, only pages we crawled before end_crawl_date will be returned. |
start_published_date | Optional[str] | Default: NoneIf specified, only pages published after start_published_date will be returned. |
end_published_date | Optional[str] | Default: NoneIf specified, only pages published before end_published_date will be returned. |
use_autoprompt | Optional[bool] | Default: NoneIf true, we turn your query into a more Metaphor-friendly query. Adds latency. |