Answer
Returns a synthesized natural-language answer with citations and the web results used to generate it. Provide a query and optional freshness, locale, domain, and explicit-content controls.
Authentication
The unique API Key required to authorize API access. Learn how to get yours in the “Get your API key” section of the documentation.
Request
Specifies the freshness of the results to return. Provide either one of day, week, month, year, or a date range string in the format YYYY-MM-DDtoYYYY-MM-DD.
When your search query includes a temporal keyword and you also set a freshness parameter, the search will use the broader timeframe. For example, if you use query=news+this+week&freshness=month, the results will use a freshness of month.
Domains to exclusively include in web results. This is a strict allowlist, not a ranking boost. Supports up to 500 domains. Cannot be combined with exclude_domains or boost_domains.
Domains to exclude from web results. Supports up to 500 domains. Cannot be combined with include_domains. Can be combined with boost_domains.
Domains to prefer in search ranking without excluding results from other domains. Supports up to 500 domains. Can be combined with exclude_domains, but not with include_domains.
Response
The synthesized response with numbered inline citations that reference items in the citations array.
Search results grouped by result type. All current search results are grouped under web.