Search Overview
What is the You.com Search API?
The You.com Search API delivers high-quality, structured web and news results optimized for AI applications and programmatic access. 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 optional full-page content.
TL;DR: A fast, LLM-ready search API that returns structured JSON with web and news results. Perfect for feeding context into AI models, building knowledge systems, and powering data-driven applications.
How It Works
The Search API processes your query and returns unified results from both web and news sources in a single request. Each result includes:
- Core Information: URLs, titles, and descriptions
- LLM-Ready Snippets: Query-aware text excerpts - the best snippets to answer your query will be provided
- Rich Metadata: Publication dates, authors, thumbnails, and favicons
- Optional Full Content: Live-crawled HTML or Markdown on demand
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.
What You Get
Every search returns structured JSON with two main result types:
Web Results
- Relevant web pages from across the internet
- Multiple text snippets per result for context
- Publication dates and author information
- Thumbnail images and favicons for UI display
News Results (when relevant)
- Recent news articles from authoritative sources
- Article summaries and headlines
- Publication timestamps for freshness
- Associated images and metadata
All results are returned in clean, structured JSON format requiring no HTML parsing or post-processing.
Key Features
Unified Web & News Results
Get both web pages and news articles in a single API call. Our intelligent classification automatically determines when to include news results based on query intent.
LLM-Optimized Output
Every result includes:
- Snippets: Pre-extracted relevant text excerpts
- Descriptions: Clean summaries without HTML clutter
- Metadata: Publication dates, authors, thumbnails, favicons
- Structured JSON: No parsing required, ready for AI consumption
Advanced Search Operators
Refine your searches with powerful operators:
site:domain.com- Search within specific domainsfiletype:pdf- Filter by file typelang:es- Language-specific results+term/-term- Include/exclude specific terms- Boolean operators:
AND,OR,NOT
Learn more about Search Operators →
Live Crawling
Optionally retrieve full HTML or Markdown content from search results on-demand. Perfect for deep content analysis or building comprehensive knowledge bases.
Global Coverage
Support for 35+ countries with geographic targeting to get region-specific results. Perfect for localized applications or international deployments.
Freshness Controls
Filter results by recency:
day- Last 24 hoursweek- Last 7 daysmonth- Last 30 daysyear- Last 365 daysYYYY-MM-DDtoYYYY-MM-DD- Custom date range
Quick Start
Get started with a simple search in under 30 seconds:
cURL
Python
JavaScript
Common Use Cases
RAG (Retrieval-Augmented Generation)
Use search snippets to provide context to your LLM without hallucination. The structured snippets are perfect for feeding directly into your prompt.
AI Agent Knowledge Retrieval
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.
News Monitoring & Alerts
Track breaking news, competitor mentions, or industry trends. The automatic news classification ensures you get timely articles when relevant.
Content Research & Analysis
Gather comprehensive information from multiple sources for content creation, competitive intelligence, or market research.
Knowledge Base Construction
Use live crawling to build comprehensive knowledge bases with full-page content in clean Markdown format.
API Endpoints
/v1/search - Primary Search Endpoint
The main endpoint for unified web and news search.
Base URL: https://api.ydc-index.io/v1/search
Method: GET
Key Parameters:
Response Structure
Every search returns structured JSON with two main sections:
Advanced Features
Search Operators Example
Combine operators for powerful, precise searches:
Pagination Example
Retrieve multiple pages of results:
Geographic Targeting
Get region-specific results narrowed down by country:
Refer to the ISO 3166-2 standard for a list of country codes.
Integration Examples
Building a RAG Application
Best Practices
1. Use Snippets for RAG
The snippets array is pre-processed for LLM consumption. Use it directly instead of crawling full pages when possible.
2. Implement Caching
Cache frequent queries to reduce API calls and improve response times. Consider a 5-15 minute TTL for most use cases.
3. Handle Empty Results
Always check if results.web or results.news arrays are empty before processing:
4. Use Appropriate Count Values
- For RAG:
count=5-10is usually sufficient - For UI display:
count=20-50for pagination - For data gathering:
count=100(max) for comprehensive coverage
5. Leverage Search Operators
Use operators to reduce noise and get more relevant results:
site:for domain-specific searchesfiletype:for document searches+termfor must-include keywords
Rate Limits & Pricing
The Search API is optimized for high-throughput applications with generous rate limits. Pricing is based on:
- Number of API calls
- Use of optional features (live crawling)
- Result count per request
For detailed pricing and rate limit information, visit you.com/platform/upgrade or contact api@you.com.
Next Steps
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