Authorizations
Headers
Body
Base class for search queries.
Presets default values for parameters for different use cases. one-shot returns more comprehensive results and longer excerpts to answer questions from a single response, while agentic returns more concise, token-efficient results for use in an agentic loop.
one-shot, agentic Natural-language description of what the web search is trying to find. May include guidance about preferred sources or freshness. At least one of objective or search_queries must be provided.
Optional list of traditional keyword search queries to guide the search. May contain search operators. At least one of objective or search_queries must be provided.
DEPRECATED: use mode instead.
base, pro Upper bound on the number of results to return. May be limited by the processor. Defaults to 10 if not provided.
DEPRECATED: Use excerpts.max_chars_per_result instead.
Optional settings to configure excerpt generation. Optional settings for returning relevant excerpts.
Optional source policy governing preferred and disallowed domains in search results. Source policy for web search results.
This policy governs which sources are allowed/disallowed in results.
Fetch policy: determines when to return cached content from the index (faster) vs fetching live content (fresher). Default is to disable live fetch and return cached content from the index. Policy for live fetching web results.
Response
Successful Response
Output for the Search API.
Search ID. Example: search_cad0a6d2dec046bd95ae900527d880e7
A list of WebSearchResult objects, ordered by decreasing relevance.
Warnings for the search request, if any.
Usage metrics for the search request.