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

PlatformOpen sourceDeploymentBest for
Brave Search APINoAPIResults from an independent, non-Google index
Bright Data SERP APINoAPIGeo-targeted SERP scraping at volume
Claude web search toolNoAPIClaude-based agents that need cited web answers
DataForSEO SERP APINoAPIBulk SERP collection across search engines
ExaNoAPISemantic web search over a provider-owned index
Firecrawl SearchYes (AGPL-3.0)API, Self-hostedSearch plus full-page scraping in one API
Google Custom Search JSON APINoAPIExisting integrations planning a migration
Grounding with Bing SearchNoAPIAzure agents that need web results
Grounding with Google SearchNoAPIGemini apps that need current web facts
Jina SearchYes (Apache-2.0)APISearch results delivered as clean Markdown
Kagi Search APINoAPIKagi users who want its results inside agents
LinkupNoAPISourced answers with configurable search depth
Mojeek Search APINoAPIA non-US independent index for grounding
OpenAI web search toolNoAPIOpenAI-based agents that need cited web answers
ParallelNoAPIAgents that need search plus structured web research
Perplexity Search APINoAPIRanked web results or cited answers from one vendor
SearchApiNoAPIDetailed Google SERP data as JSON
SearXNGYes (AGPL-3.0)Self-hostedSelf-hosted search for local or private agents
SerpApiNoAPIStructured Google results for agents and SEO tools
SerperNoAPILow-overhead access to Google results
TavilyNoAPIAgent web search with extraction in one API
ValyuNoAPIAgents that search finance and research sources
You.com Web Search APINoAPIWeb and news results with full-page content

Profiles

  • Brave Search API logo

    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.

    • API
  • Bright Data SERP API logo

    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.

    • API
  • Claude web search tool logo

    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.

    • API
  • DataForSEO SERP API logo

    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.

    • API
  • Exa logo

    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.

    • API
    • Python
    • TypeScript
  • Google Custom Search JSON API logo

    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.

    • API
  • Kagi Search API logo

    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.

    • API
  • Linkup logo

    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.

    • API
  • 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.

    • API
  • OpenAI web search tool logo

    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.

    • API
  • Parallel logo

    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.

    • API
  • Perplexity Search API logo

    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.

    • API
  • SearchApi logo

    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.

    • API
  • 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.

    • Open source · AGPL-3.0
    • Self-hosted
    • Python
  • SerpApi logo

    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.

    • API
  • Serper logo

    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.

    • API
  • Tavily logo

    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.

    • API
  • 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.

    • API
  • You.com Web Search API logo

    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.

    • API

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 hub

Other categories

Product details change quickly; check each vendor’s site for current features, licensing and pricing.