Answer

View as MarkdownOpen in Claude

Returns a synthesized natural-language answer with citations and the web sources used to generate it. Provide a query and optional freshness, country, and language parameters. Unknown or extra request fields are rejected.

Authentication

X-API-Keystring
The unique API Key required to authorize API access. Learn how to get yours in the ["Get your API key" section of the documentation](https://you.com/docs/quickstart#get-your-api-key).

Request

This endpoint expects an object.
querystringRequired
The question or prompt to answer.
freshnessenum or stringOptional
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.
countryenumOptional
The country code that determines the geographical focus of the web results.
languageenumOptionalDefaults to EN

The language of the web results that will be returned (BCP 47 format).

Response

A JSON object containing a synthesized answer with citations and supporting search results
answerstring
The synthesized response with inline citations. The answer is formatted in Markdown and includes numbered citations that reference the sources in the sources array.
sourceslist of objects
The web sources cited in the answer, ordered by source usage. May be empty if the answer didn't cite specific sources.
resultslist of objects

The top web search results considered during answer synthesis. Does not include the citations field.

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error