Skip to navigation

Build with search and inference APIs for AI.

View as MarkdownOpen in Claude

Search the web, extract content, generate cited answers, and conduct deep research. Or access leading AI models through our Inference Router API.

Get API key
Get API key
from youdotcom import You
from youdotcom.models import Country, Extraction, ExtractionMode, Freshness
 
with You() as you:
response = you.search(
query="Nvidia latest quarterly revenue",
count=2,
freshness=Freshness.YEAR,
country=Country.US,
language="EN",
include_domains=["nvidianews.nvidia.com", "reuters.com", "sec.gov"],
knowledge="core",
extraction=Extraction(
extraction_mode=ExtractionMode.HIGHLIGHTS,
highlights={"total_max_tokens": 1024},
),
)
 
for item in response.results.knowledge or []:
if item.type == "answer":
sources = ", ".join(s.name for s in item.attribution)
print(f"{item.title} ({sources}, as of {item.as_of or 'date unavailable'})")
print(f" {item.description}\n")
 
for result in response.results.web or []:
print(f"{result.title} — {result.url}")
if result.contents and result.contents.highlights:
for highlight in result.contents.highlights:
print(f" - {highlight}")
try it free

Connect Your Agent

Give your agent access to the live web. Start for free without an account or API key.

Claude Code
claude mcp add --transport http youdotcom "https://api.you.com/mcp/free"
the platform

One Platform for Search and Inference

Compose search, research, and inference APIs to build complex agentic workflows.

Choose the right API
integrate anywhere

Use With the Best Tools and Frameworks

See all integrations
resources

Developer Resources

API reference, agent tooling, and the Python SDK.

Browse examples
Start buildingCreate a key on the You.com Platform. The code samples on this page read it from YDC_API_KEY.Get API key
Talk to salesCustom rate limits and volume pricing on enterprise plans.Book a demo
Get helpAsk the You.com team and other developers on Discord.Join Discord