Search overview
Get structured, LLM-optimized search results from web and news sources.
Get structured, LLM-optimized search results from web and news sources.
The You.com Search API delivers high-quality, structured web and news results optimized for programmatic access in AI applications. Designed for developers building RAG systems, AI agents, knowledge bases, and data-driven applications, our Search API returns clean, structured data with rich metadata, relevant snippets, and full-page content.
The Search API processes your query and returns unified results from both web and news sources in a single request. Each result includes:
Our intelligent classification system automatically determines when to include news results based on query intent, ensuring you get the most relevant information for your use case.
Every search returns structured JSON with two main result types:
Web results
News results (when relevant)
All results are returned in clean, structured JSON format requiring no HTML parsing or post-processing.
With snippets alone, you get ~100–200 words of extracted text per result. With livecrawl enabled, you get the full page content—often 2,000–10,000 words of HTML or Markdown. This is what unlocks deep RAG, comprehensive synthesis, and knowledge base construction from search results.
Add livecrawl to any search request and each matching result gains a contents object with the full page content in your chosen format. Crawl web, news or all results.
Set livecrawl_formats to markdown (recommended for LLMs) or html.
Need content from specific URLs you already have? Use the Contents API instead — it takes a list of URLs directly, without requiring a search query.
Get both web pages and news articles in a single API call. Our classification system automatically determines when to include news results based on query intent.
Every result includes:
Build powerful and precise search queries using search operators:
site:domain.com - Search within specific domainsfiletype:pdf - Filter by file type+term / -term - Include/exclude specific termsAND, OR, NOTLearn more about search operators
Target results by geographic region using the country parameter (ISO 3166-1 alpha-2 country codes) and filter by language using the language parameter (BCP 47 language codes).
Filter results by recency:
day - Last 24 hoursweek - Last 7 daysmonth - Last 30 daysyear - Last 365 daysYYYY-MM-DDtoYYYY-MM-DD - Custom date rangeUse search snippets to provide context to your LLM without hallucination. The structured snippets are perfect for feeding directly into your prompt.
Give your AI agents access to real-time web information. Perfect for building agents that need up-to-date facts, news, or specialized domain knowledge.
Track breaking news, competitor mentions, or industry trends. The automatic news classification ensures you get timely articles when relevant.
Gather comprehensive information from multiple sources for content creation, competitive intelligence, or market research.
Use live crawling to build comprehensive knowledge bases with full-page content in clean Markdown format.
Restrict results to, exclude results from, or boost specific domains. Use include_domains for a strict allowlist, exclude_domains to filter out unwanted domains, and boost_domains to prefer matching domains without filtering out other results. For large domain lists, POST is strongly recommended.
Use boost_domains when you want to prefer sources without making them mandatory. Matching results from boosted domains receive a relative ranking boost, but the boost is not quantified. If boosted domains do not have matching results, results from other domains can still appear. boost_domains can be used with exclude_domains, but not with include_domains.
Combine operators for powerful, precise searches:
Use offset to retrieve additional pages of results. The offset value (0-9) skips that many pages, so offset=1 with count=10 returns results 11-20.
Narrow down on results by country:
Refer to the ISO 3166-1 alpha-2 standard for a list of country codes.
The snippets array is pre-processed for LLM consumption. Use it directly instead of crawling full pages when possible.
Cache frequent queries to reduce API calls and improve response times. Consider a 5-15 minute TTL for most use cases.
Always check if results.web or results.news arrays are empty before processing:
count=5-10 is usually sufficientcount=20-50 for paginationcount=100 (max) for comprehensive coverageUse search operators and specify query parameters in the request to reduce noise and get more relevant results.
The Search API supports both GET /v1/search and POST /v1/search. Both methods go through the same underlying logic and return identical responses — the difference is how parameters are encoded on the wire.
Use GET when:
query, count, freshness, etc.)Vary: X-API-Key as a cache key. POST responses are not cached by default per the HTTP spec.Use POST when:
include_domains, exclude_domains, or boost_domains — these accept JSON arrays in POST. With GET, domains must fit in a single comma-separated query string value and are subject to URL length limits.Wire format differences for complex fields:
GET domain filters do not support repeated parameters. ?include_domains=a.com&include_domains=b.com will not work — only a single comma-separated value is supported. For large domain lists, use POST.
$5.00 per 1,000 calls (up to 100 results per call)
All new accounts receive $100 in free credits to get started. Pricing is simple — you only pay for what you use.
What’s included:
Livecrawl add-on — $1.00 per 1,000 pages
Full page content via the livecrawl parameter (HTML, Markdown, or both) is billed separately from the base Search API rate.
Example: A single call with count=10 and livecrawl_formats=["html", "markdown"] returns 10 web results and 10 news results — 20 pages total.
For volume discounts, annual pricing, or enterprise features, visit you.com/pricing or contact [email protected].
Use our Postman collections to learn and experiment on your own
Explore the complete API documentation with all parameters and response schemas
Master advanced search operators to refine your queries
Learn from practical examples and integration guides
Get your API key and make your first search in 5 minutes