Enum WebSearchTool.Provider
Specifies the search provider to use with WebSearchTool.
public enum WebSearchTool.Provider
Fields
DuckDuckGo = 0DuckDuckGo HTML search. Free, no API key required.
Suitable for local development and low-volume use only. DuckDuckGo's free HTML endpoint applies aggressive anti-bot rate limiting based on IP / User-Agent fingerprint and will return a CAPTCHA challenge page (parsed as 0 results) or HTTP 403 / 429 once it flags a client. Typical rate-limit window: a few queries per minute, then a multi-hour block per IP. Not recommended for production agent workloads.
For production, use Brave, Tavily, or Serper (all offer free tiers).
Brave = 1Brave Search API. Requires API key. High-quality results with free tier (2000 queries/month). Get API key at: https://brave.com/search/api/
SearXNG = 2SearXNG meta-search engine. Can be self-hosted. Aggregates results from multiple search engines. Privacy-focused with many public instances available.
Tavily = 3Tavily AI search API. Requires API key. Optimized for AI/RAG applications with semantic search. Get API key at: https://tavily.com/
Serper = 4Serper Google Search API. Requires API key. Provides Google search results via API. Get API key at: https://serper.dev/
Custom = 99Custom search endpoint. Configure via BaseUrl. Use placeholders {query} and {maxResults} in URL.