Answer API Overview
Get synthesized, citation-backed answers grounded in real-time web results.
Add You.com to your agent or IDE via MCP — every API in these docs is available on https://api.you.com/mcp (new accounts get $100 in free credits), and Search is free to try via https://api.you.com/mcp?profile=free, no signup required. MCP Server guide →
Install our docs MCP server
This documentation ships with a Docs MCP Server that gives any MCP-enabled agent a searchDocs tool to search every page here and get back relevant passages with source URLs — no API key required. Point your client at https://you.com/docs/_mcp/server. See the Docs MCP Server guide for setup and examples.
What Is the Answer API?
The Answer API returns a synthesized natural-language answer with citations and the web results used to generate it.
Send a query with optional freshness, locale, and domain controls. The API retrieves web results and synthesizes an answer with inline citations.
Unknown or extra request fields are rejected.
How It Works
The Answer API runs a managed pipeline over the same retrieval and extraction infrastructure as the Web Search API and Contents API. For each query, it retrieves web results, pulls the most relevant supporting content, and synthesizes a cited answer in a single request. You don’t configure search strategy, page reads, prompts, or model selection.
The API verifies that every citation exists in the source text and supports the answer before returning it. The excerpts in each citation are the verbatim passages the LLM used to construct the answer, so you can confirm accuracy without trusting the model alone.
On the SimpleQA benchmark, the Answer API reports 93.48% accuracy. Typical p50 latency is 2.67 seconds. There are no effort tiers to tune, so latency and cost stay predictable across queries.
When to Use the Answer API
Three options get you from a question to a cited, web-grounded answer: wire the Web Search API and Contents API into your own LLM, use the Answer API, or use the Research API. Which one fits depends on how much of the pipeline you want to own.
Build your own when you want full control over retrieval, prompting, and model choice. The tradeoff is owning the orchestration: deduplicating sources, extracting the right passages, generating consistent inline citations, and keeping the answer grounded. Teams that build this in-house often hit hallucinations, rising LLM token costs, self-contradictory answers, and inefficient use of retrieved sources.
Answer when you want a citation-backed answer from real-time web results in a single call, without configuring research depth or defining an output schema. It’s the right choice for questions that can be answered from a single, high-quality search rather than multi-step reasoning.
Research when you need control over depth. The research_effort parameter (lite through frontier) lets you trade cost and latency against thoroughness, and output_schema returns structured JSON. Research lite and standard cover the middle ground: fast enough for production, deeper than a single retrieval pass.
What You Get
Every Answer API response includes:
answer: A Markdown-formatted answer with numbered inline citations, such as[[1, 2]], that reference items in thecitationsarray.citations: The sources cited in the answer, in citation order. Each item contains asourceURL and the verbatimexcerptsthe LLM used to construct the answer.results.web: All web results considered during answer synthesis, whether cited or not.
Each item in results.web includes a URL, title, and array of snippets. The page_age field is omitted when a result does not include a publication date or age.
Quickstart
Parameters
query is required. All other fields are optional.
Using Search Controls
The Answer API accepts the same freshness, locale, and domain filters as the Web Search API. All filters are optional and can be combined, except include_domains with exclude_domains or boost_domains.
Freshness
Restrict results to the last week for questions about recent events:
Use a custom date range for questions bounded to a specific period:
Domain Filters
Restrict results to trusted sources with include_domains:
Exclude unreliable sources while boosting authoritative ones. exclude_domains and boost_domains can be used together:
Country and Language
Focus results on a specific region and language:
Common Use Cases
Question Answering in AI Applications
Use the Answer API in applications that need grounded, cited responses, including chatbots, copilots, and research tools. Send a question and get a sourced answer without configuring research effort.
Content Pipelines
Use the Answer API as a research step before writing: ask a question, get a well-cited answer, and use that as source material for reports, articles, or briefings.
Internal Knowledge Tools
Let employees ask complex questions—product comparisons, regulatory summaries, technical deep dives—and get sourced answers without manually reading dozens of pages.
Best Practices
Write Specific Questions for Better Answers
For complex topics, include context, constraints, or the specific angle you want covered. “What are the tradeoffs between PostgreSQL and MongoDB for a write-heavy workload at 10M rows?” produces a more focused answer than “Compare databases.”
Target Results with Search Controls
Set freshness when you need recent information. Select country and language from the supported values to control the region and language of web results. Use include_domains for a strict allowlist, exclude_domains to remove unwanted sources, or boost_domains to prefer selected sources without filtering out other results.
Verify Citations for High-Stakes Use Cases
The inline citation numbers map to the citations array. For legal, financial, or medical contexts, build a step that follows each source URL and checks the supporting excerpts before surfacing claims to users.
Use Research When Depth Matters More Than Speed
If your use case requires choosing between a quick factual answer and an exhaustive or frontier analysis, the Research API’s research_effort parameter gives you that control.
Pricing
$5.00 per 1,000 calls. All new you.com accounts receive $100 in free credits to get started.
For volume discounts, annual pricing, or enterprise features, visit you.com/pricing or contact [email protected].
Data Retention
Organizations operating under strict privacy, compliance, or security mandates can add Zero Data Retention (ZDR) to an enterprise agreement. ZDR restricts retention of Answer API request and response content account-wide and requires no changes to your integration. See Zero Data Retention for what it covers and how to enable it.