v1
latestOpenAPI 3.0.32026-07-2644164161.5 KBWeb search
Search the web for information about a given query and return relevant results with source URLs.
Request body
The search query.
The search topic category. Use news for current events and news articles, or general for broader web search.
Controls search comprehensiveness:
- basic: Returns fewer but highly relevant results
- advanced: Performs a deeper search with more results
Only applies when search_depth is advanced. Specifies how many text segments to extract from each source. Limited to 3 chunks maximum.
Limits the number of search results returned. Cannot exceed 20 sources.
Filters results to content published within the specified time range back from the current date. For example, week or w returns results from the past 7 days.
For news topic searches, specifies how many days of news coverage to include.
Whether to include a generated answer to the query in the response. If false, only search results are returned.
Domains to include in the search. If unset, the search includes all domains.
Domains to exclude from the search. If unset, the search includes all domains.
Localizes search results to a specific country. Only applies to general topic searches.
Enables streaming of search results as they become available.
Response
Successful response
The search query that was submitted.
Generated answer based on the search results. Not included if include_answer is false.