Web search APIs
A web search API for AI returns search results in a form a language model can use directly, such as ranked URLs with clean excerpts, full page text, or cited answers, so an agent can ground its output in current information instead of its training data.
Some providers run their own index, including Exa, Brave, Parallel, and Mojeek, while SERP APIs such as SerpApi, Serper, and SearchApi return Google results as structured JSON. Tavily, Linkup, and You.com tune results for agents, and Firecrawl and Jina Reader focus on turning pages into Markdown. SearXNG is an open-source metasearch engine that teams can self-host.
Model providers also offer built-in search tools, including the OpenAI web search tool, the Claude web search tool, and Grounding with Google Search. Microsoft retired the Bing Search APIs in August 2025 in favor of Grounding with Bing Search, and Google's Custom Search JSON API is closed to new customers.
Web search APIs compared
| Platform | Open source | Deployment | Best for |
|---|---|---|---|
| Brave Search API | No | API | Results from an independent, non-Google index |
| Bright Data SERP API | No | API | Geo-targeted SERP scraping at volume |
| Claude web search tool | No | API | Claude-based agents that need cited web answers |
| DataForSEO SERP API | No | API | Bulk SERP collection across search engines |
| Exa | No | API | Semantic web search over a provider-owned index |
| Firecrawl Search | Yes (AGPL-3.0) | API, Self-hosted | Search plus full-page scraping in one API |
| Google Custom Search JSON API | No | API | Existing integrations planning a migration |
| Grounding with Bing Search | No | API | Azure agents that need web results |
| Grounding with Google Search | No | API | Gemini apps that need current web facts |
| Jina Search | Yes (Apache-2.0) | API | Search results delivered as clean Markdown |
| Kagi Search API | No | API | Kagi users who want its results inside agents |
| Linkup | No | API | Sourced answers with configurable search depth |
| Mojeek Search API | No | API | A non-US independent index for grounding |
| OpenAI web search tool | No | API | OpenAI-based agents that need cited web answers |
| Parallel | No | API | Agents that need search plus structured web research |
| Perplexity Search API | No | API | Ranked web results or cited answers from one vendor |
| SearchApi | No | API | Detailed Google SERP data as JSON |
| SearXNG | Yes (AGPL-3.0) | Self-hosted | Self-hosted search for local or private agents |
| SerpApi | No | API | Structured Google results for agents and SEO tools |
| Serper | No | API | Low-overhead access to Google results |
| Tavily | No | API | Agent web search with extraction in one API |
| Valyu | No | API | Agents that search finance and research sources |
| You.com Web Search API | No | API | Web and news results with full-page content |
Profiles

Brave Search API
Brave Software · brave.com
The Brave Search API serves results from Brave's independent web index, with web, news, image, and video search endpoints and an LLM Context endpoint that returns compact page content intended for language models.
Bright Data SERP API
Bright Data · brightdata.com
The Bright Data SERP API scrapes search engine results in real time and returns JSON or HTML with geo-targeting, from a company that also runs proxy networks and other web data collection products.
Claude web search tool
Anthropic · platform.claude.com
The Claude web search tool gives Claude access to current web content through the Claude API, returning cited sources, with domain allow and block controls and optional dynamic filtering that keeps only relevant results in context.

DataForSEO SERP API
DataForSEO · dataforseo.com
The DataForSEO SERP API collects desktop and mobile search results from Google, Bing, and other engines in HTML or JSON, as one part of DataForSEO's suite of SEO data APIs.
Exa
exa.ai
Exa is a search API for AI agents built on its own web-scale index and retrieval models, with endpoints for search, page contents, deep search, monitors, and Websets dataset building, plus a hosted MCP server.

Firecrawl Search
Firecrawl · firecrawl.dev
Firecrawl's search endpoint queries the web and can return full page content as Markdown or structured data in the same call, alongside its scrape, crawl, and map endpoints, with an AGPL-3.0 version for self-hosting.

Google Custom Search JSON API
Google · developers.google.com
The Custom Search JSON API returns results from a Programmable Search Engine as JSON; it is closed to new customers, existing customers must move off it by January 1, 2027, and Google suggests Vertex AI Search for up to 50 domains.
Closed to new customers, and Google discontinues the API on January 1, 2027.

Grounding with Bing Search
Microsoft · learn.microsoft.com
Grounding with Bing Search is a tool in Microsoft Foundry Agent Service that gives agents real-time public web results from Bing, and Microsoft named it the replacement for the Bing Search APIs it retired on August 11, 2025.

Grounding with Google Search
Google · ai.google.dev
Grounding with Google Search is a Gemini API tool that lets Gemini models use real-time Google Search results while generating a response, with citations to the sources used, for applications already built on Gemini.

Jina Search
Elastic · jina.ai
Jina's s.jina.ai endpoint runs a web search for a query and returns the top results as LLM-friendly Markdown, using the same open-source Reader that converts any URL to Markdown at r.jina.ai; Jina AI is now part of Elastic.
Elastic acquired Jina AI in October 2025, and the Reader and Search endpoints remain available at jina.ai.

Kagi Search API
Kagi · help.kagi.com
The Kagi Search API gives programmatic access to Kagi's premium search results with an API key and inherits account settings such as blocked or promoted websites, alongside Kagi's FastGPT, Summarizer, and Enrichment APIs.

Linkup
linkup.so
Linkup is a web search API for AI with three depth modes, fetch for a single page, search for fast results, and research for in-depth answers, returning sourced answers with full-text snippets and offering private index and bring-your-own-cloud options.
Mojeek Search API
Mojeek · mojeek.com · Brighton, United Kingdom
The Mojeek Search API serves results from Mojeek's own independent web index, built by a UK search engine that runs its own crawler, and Mojeek also offers site search, hosted search, and index licensing.
OpenAI web search tool
OpenAI · developers.openai.com
The OpenAI web search tool lets models in the Responses API search the internet for current information before answering and return sourced citations, with filters that allow or block up to 100 domains.
Parallel
Parallel Web Systems · parallel.ai · Palo Alto, United States · founded 2023
Parallel builds web search and research APIs for AI agents on its own index, with Search for ranked excerpts, Extract for page content, Task for cited deep research, Monitor for change alerts, and FindAll for entity lists.

Perplexity Search API
Perplexity · docs.perplexity.ai
The Perplexity Search API returns ranked web results as JSON with titles, URLs, dates, and page text, and Perplexity's Agent API returns cited answers; the Agent API replaced Sonar Chat Completions, whose support ended on September 27, 2026.
SearchApi
searchapi.io
SearchApi is a real-time SERP API that scrapes Google organic results, ads, related searches, inline questions, and other result elements and returns them as structured JSON for applications and agents.
SearXNG
docs.searxng.org
SearXNG is a free, open-source metasearch engine that aggregates results from many search services without tracking or profiling users, and a self-hosted instance can return JSON results that agents use as a search backend.
SerpApi
serpapi.com
SerpApi is a real-time API that returns Google search results as structured JSON, handling proxies and CAPTCHAs and parsing the rich data on results pages so applications and agents do not need their own scrapers.

Serper
serper.dev
Serper is a Google Search API that returns Google search engine results pages as structured JSON, giving applications and LLM agents programmatic access to Google results without running their own scraping infrastructure.
Tavily
Nebius · tavily.com
Tavily is a web search API built for AI agents, with endpoints for real-time search, content extraction from URLs, site crawling and mapping, and research tasks, returning results formatted for use in an LLM's context.
Nebius announced its acquisition of Tavily in February 2026, and Tavily now operates as part of Nebius.
Valyu
valyu.ai
Valyu is a search API that covers the web, financial data, and scientific sources through one endpoint, with a DeepResearch mode that carries out an investigation and returns a cited report.

You.com Web Search API
You.com · you.com
The You.com Web Search API returns real-time web and news results for LLMs and agents, with snippets or full-page content as Markdown or HTML, and an MCP server for clients such as Claude and Cursor.
How to choose
- 01Index source
- Results come from a provider's own crawl, from scraped Google or Bing results, or from a metasearch of other engines, which affects coverage, freshness, and terms of use.
- 02Output format
- Some APIs return links and snippets, others return full page content as Markdown or a synthesized answer with citations, which changes how many tokens reach the model.
- 03Query controls
- Domain allow and block lists, date and region filters, and search depth settings let an agent narrow results for a task.
- 04Extraction and research
- Crawl, extract, and multi-step research endpoints remove the need for a separate scraper when an agent needs full documents.
- 05Data handling
- Retention terms, zero data retention options, and rules on storing or displaying results matter for regulated or customer-facing products.
- 06Integration
- Official SDKs, an MCP server, and ready-made tools in agent frameworks determine how quickly search can be added to an agent.
Frequently asked questions
What is a web search API for AI agents?
- A web search API for AI agents is a service that takes a query from an agent and returns current web results formatted for a language model, such as ranked URLs with relevant excerpts, full page text, or a cited answer. The agent calls it as a tool during a task. Tavily, Exa, the Brave Search API, and Parallel are examples.
Tavily vs Exa: what is the difference?
- Tavily is a search API built for AI agents, with endpoints for real-time search, extracting content from URLs, crawling and mapping sites, and research tasks; Nebius announced its acquisition of Tavily in February 2026. Exa runs its own web-scale index and retrieval models, with search, contents, deep search, monitors, and Websets for building datasets. Testing both on your own queries is the reliable way to compare quality.
What is the replacement for the Bing Search API?
- Microsoft retired the Bing Search and Bing Custom Search APIs on August 11, 2025, and named Grounding with Bing Search in Microsoft Foundry Agent Service as the replacement, which works inside Foundry agents rather than as a standalone results API. Teams that need raw results outside Azure usually move to an independent search API, such as the Brave Search API or Exa, or to a SERP API.
Are there open-source alternatives to Tavily?
- Yes. SearXNG is an AGPL-3.0 metasearch engine that aggregates results from many search services, and a self-hosted instance returns JSON when that format is enabled in its settings. Firecrawl publishes an AGPL-3.0 version of its search and scraping API for self-hosting, and Jina Reader is open source under Apache-2.0. Self-hosted options still depend on upstream search engines or on crawling you run yourself.
Related guides
AI agents hubOther categories
- Model providers
- Inference providers
- GPU clouds
- Serving engines
- Vector databases
- Embedding and reranking models
- Document parsing and data ingestion
- Fine-tuning and post-training
- Agent frameworks
- Agent infrastructure
- MCP platforms
- Voice AI
- AI gateways
- LLM observability and evaluation
- Guardrails and AI security
- AI coding tools
Product details change quickly; check each vendor’s site for current features, licensing and pricing.