🔑
Get your Incredible API key
Generate your API key to start using this endpoint
→
Overview
The Web Search API provides semantic search capabilities powered by advanced AI, allowing you to find relevant information across the web using natural language queries. Unlike traditional keyword-based search, this endpoint understands the intent and context of your query to return more relevant results. Key features:- Semantic understanding - Searches by meaning, not just keyword matching
- Neural and keyword modes - Choose between AI-powered semantic search or traditional exact matching
- Advanced filtering - Filter by domain, date range, content type, and category
- Content retrieval - Optionally fetch full text, highlights, and summaries
- Autoprompt enhancement - Automatically improves queries for better results
- Real-time information retrieval from the web
- Research and fact-checking
- Content discovery and aggregation
- Building knowledge-enhanced AI applications
- Augmenting responses with current data
How it Works
The Web Search API uses neural search technology to understand the semantic meaning of queries. When you search for “how to reduce carbon emissions,” it understands you’re looking for environmental solutions, not just pages containing those exact words. The search process:- Query analysis - Your query is processed to understand intent and context
- Autoprompt (optional) - The query is enhanced for better results
- Neural ranking - Results are ranked by semantic relevance
- Content extraction - Optionally retrieves and summarizes content
- Response formatting - Returns structured results with metadata
Search Modes
Neural Search (Default)
Uses AI to understand query meaning and find semantically relevant results. Best for:- Natural language questions
- Conceptual searches
- Research queries
- Discovery and exploration
"companies working on renewable energy storage"
Keyword Search
Traditional exact-match search. Best for:- Specific terms or phrases
- Technical identifiers
- Known titles or names
- Precise matching requirements
"Tesla Model 3 specifications 2024"
Set type: "keyword" to use keyword mode.
Examples
Request Parameters
query (required)
Your search query in natural language or keywords. The API will interpret the query based on the search type (neural vs keyword). Tips for effective queries:- Be specific - “climate change solutions 2024” vs “climate”
- Use natural language for neural - “How do neural networks learn?”
- Use exact terms for keyword - “iPhone 15 Pro Max technical specifications”
- Include context - “startup funding trends in AI” vs just “funding”
num_results (optional)
Number of search results to return. Range: 1-100, default: 10. Guidelines:- Use 5-10 for focused queries
- Use 20-50 for research and comprehensive coverage
- Use 100 for data collection and analysis
- More results = longer response time and higher cost
type (optional)
Search algorithm to use:"neural" (default) or "keyword".
Neural (Semantic Search):
- Understands query intent and meaning
- Finds conceptually related content
- Better for exploratory research
- Handles natural language queries
- Matches exact terms in content
- More predictable results
- Better for specific lookups
- Faster for simple queries
use_autoprompt (optional)
Boolean flag to enable query enhancement. Default:true.
When enabled, the API automatically improves your query for better results. For example:
- “tesla” → “Tesla Inc. electric vehicle company”
- “rust” → “Rust programming language”
include_domains (optional)
Array of domains to exclusively search. Only results from these domains will be returned. Example use cases:- Academic research:
["arxiv.org", "scholar.google.com"] - Company research:
["techcrunch.com", "crunchbase.com"] - News:
["reuters.com", "apnews.com", "bbc.com"]
exclude_domains (optional)
Array of domains to exclude from results. Useful for filtering out unwanted sources. Common exclusions:- Social media:
["facebook.com", "twitter.com"] - Low-quality content farms
- Paywalled sites if you can’t access them
- Competitor sites
start_published_date / end_published_date (optional)
Filter results by publication date range. Format:YYYY-MM-DD.
Use cases:
- Recent news:
start_published_date: "2024-01-01" - Historical research:
end_published_date: "2020-12-31" - Specific periods: Both parameters for a date range
category (optional)
Filter by content type category. Available categories:"company"- Company websites and corporate information"research paper"- Academic papers and research"news"- News articles and journalism"github"- GitHub repositories and code"tweet"- Twitter/X posts"pdf"- PDF documents"financial"- Financial reports and data"personal site"- Blogs and personal websites
contents (optional)
Specify what content to retrieve from each result. Object with boolean flags:text: Full text contenthighlights: Key excerpts and highlightssummary: AI-generated summary
Best Practices
Query Optimization:- Start broad, then narrow with filters
- Use neural search for discovery, keyword for precision
- Experiment with autoprompt on/off for best results
- Include year in query for time-sensitive topics
- Request fewer results when possible (5-10 is often sufficient)
- Only enable content retrieval when you need the full text
- Use domain filters to reduce result set size
- Cache results to avoid duplicate searches
- Use
include_domainsfor trusted sources - Use
exclude_domainsto filter noise - Combine date filters with queries about recent events
- Use category filters for specific content types
- RAG (Retrieval Augmented Generation) - Search first, then send results to Answer/Conversation endpoint
- Fact checking - Search to verify AI-generated claims
- Research assistant - Combine multiple searches with different filters
- Content discovery - Use for finding sources on specific topics
