7 Best Web Search APIs for AI Agents in 2026 (I Ran 630 Test Searches)

Your agent doesn't know what happened yesterday.
It doesn't know the current version of the library it's coding against, the price on a vendor's pricing page, or whether a docs page moved last week. If it answers anyway, it guesses.
A web search API fixes that. Your code sends a query, gets back a ranked list of URLs (and sometimes the page content), and hands it to the model as context.
If you're:
- giving a coding or research agent live web access,
- building RAG over "the whole internet" instead of your own docs,
- or replacing a search tool that's too slow, too expensive or too noisy,
this comparison is for you.
Short answer: in my test, Parallel and Exa put the official source first in 90 of 90 searches. Parallel does it from $1 per 1,000 searches; Exa costs $7 but adds semantic search. Decodo was the fastest (0.56 s median) and the cheapest ($0.75 per 1,000), with the official source first in 87 of 90. Pick Firecrawl if you want search and full-page markdown in one call. The surprise: Tavily found the official source in only 51 of 90 searches.
How this comparison was made: I ran the same 30 queries, 3 times each (90 calls per API), against six APIs on December 3โ4, 2026: Parallel, Exa, Decodo, Firecrawl, Tavily (in both
basicandadvancedmode) and OpenAI's web search tool. That's 630 searches. Prices come from each vendor's official pricing page, checked on December 4, 2026. Brave Search API is not tested in this edition (no key yet); its section uses published prices only.Disclosure: Decodo is a client of mine, and the Decodo links in this article are affiliate links. Decodo didn't review this article before publication, and every Decodo number below comes from the same script that tested the others. The Firecrawl links are affiliate links.
What a web search API actually returns
Every API in this list takes a query and returns sources. They differ in three ways that matter for an agent:
- Where the results come from: a live Google results page (Decodo), the vendor's own index built for AI agents (Exa, Parallel), or a model that searches and answers (OpenAI).
- What you get back: title, URL and snippet only, or the full page as clean markdown (Firecrawl, Exa, Tavily can return content in the same call).
- What you pay for: a flat price per search, credits that cost more when you ask for content, or a tool fee plus model tokens.
Your agent mostly needs one thing: the right source near the top, fast.
That's what I measured.
The test: 30 developer queries, 3 runs each
I wrote 30 queries a developer's agent would actually send, each with one official source that should show up near the top. Some examples:
| Query | The source it should find |
|---|---|
stripe api idempotency keys | stripe.com |
python asyncio TaskGroup | docs.python.org |
kubernetes pod disruption budget | kubernetes.io |
rfc 9110 http semantics | rfc-editor.org / ietf.org |
wcag 2.2 success criteria | w3.org |
For every call I recorded:
- Success: HTTP 200 with at least one result.
- hit@5: the official domain appears in the first 5 results (or the first 5 cited sources, for OpenAI).
- hit@1: it's the very first result.
- Latency: time for the search call only, from my machine in Spain.
Each API ran all 30 queries three times. Every call is logged with its status, latency and top 5 domains.
Results: Parallel and Exa found the official source first in every search
| API | Success | hit@5 | hit@1 | Median latency | p95 latency |
|---|---|---|---|---|---|
Parallel /v1beta/search | 90/90 | 90/90 | 90/90 | 1.58 s | 2.49 s |
Exa /search (auto) | 90/90 | 90/90 | 90/90 | 1.14 s | 3.04 s |
Decodo /v1/search | 90/90 | 90/90 | 87/90 | 0.56 s | 0.80 s |
Firecrawl /v2/search | 90/90 | 81/90 | 81/90 | 0.98 s | 2.99 s |
OpenAI web_search tool (gpt-5-mini) | 90/90 | 89/90 | 72/90 | 14.48 s | 21.20 s |
Tavily /search (basic) | 90/90 | 51/90 | 21/90 | 1.11 s | 2.65 s |
Tavily /search (advanced) | 90/90 | 48/90 | 15/90 | 0.77 s | 3.85 s |
My test, 30 queries ร 3 runs per API, December 3โ4, 2026.
What stood out:
- Parallel and Exa didn't miss once. 90 of 90 searches, official source in first position, across three runs. Both run their own index; on docs-style queries both were perfect.
- Tavily mostly returned someone else's page about the docs. It missed 13 of the 30 queries in all three runs. For
python asyncio TaskGroup, its top 5 were tskau.com, GitHub, dev.to and w3schools.in, not docs.python.org. Forwcag 2.2 success criteria, it returned accessibility vendors instead of w3.org. Switching toadvancedsearch, which costs twice as much, didn't help (48/90). - Firecrawl missed the same 3 queries every time. For
postgres jsonb gin index,kubernetes pod disruption budgetandanthropic prompt caching, no official domain made its top 5 in any run. - OpenAI finds the right sources, but slowly. 89 of 90 runs cited the official domain somewhere in the top 5, but the median call took 14.5 seconds, because the model also writes an answer (median 8,625 input and 751 output tokens per call). It's a model with search, not a search API.
- Free-plan rate limits can matter more than speed. My first Firecrawl run, with half a second between calls, got HTTP 429 on 60 of 90 requests. In my run, the free plan allowed about 10 searches a minute. Spacing calls 7 seconds apart fixed it.
Web search APIs compared
| API | Best for | Free tier | Index | Returns page content? | My test (hit@1) |
|---|---|---|---|---|---|
| Parallel | Accuracy at the lowest index price | Free "Launch" plan | Own index | Excerpts | 90/90 |
| Exa | Semantic search built for LLMs | $10 credit/month | Own neural index | Yes (+$1/1k pages) | 90/90 |
| Decodo | Fastest, cheapest Google results | Up to 10K requests | Google results | Separate /scrape call | 87/90 |
| Firecrawl | Search + markdown in one call | 1,000 credits/month | Not disclosed | Yes (+1 credit per page) | 81/90 |
| OpenAI web search | Already calling OpenAI models | No free tier listed | Not disclosed | Model answer + citations | 72/90 |
| Tavily | Search + extract + crawl from one vendor | 1,000 credits/month | Not disclosed | Yes (extract endpoint) | 21/90 |
| Brave Search API | Independent index (per Brave) | $5 credit/month (card needed) | Brave's own (per Brave) | Not stated | Not tested |
Price per 1,000 searches
| API | Cheapest paid option | Price per 1,000 searches | Billing |
|---|---|---|---|
| Decodo | $19 plan | $0.75 (down to $0.40 on the largest plan) | Monthly plan |
| Parallel | Pay as you go | From $1.00 (10 results) | Usage |
| Brave Search API | Search plan | $5.00 | Prepaid |
| Exa | Pay as you go | $7.00 (auto/fast), $4.00 (lite) | Usage |
| Tavily | Project, $30/month for 4,000 credits | $7.50 (basic), $15.00 (advanced) | Monthly plan |
| Firecrawl | Hobby, $19/month for 5,000 credits | $7.60 ($6.40 billed yearly) | Monthly plan |
| OpenAI web search | Usage | $10.00 per 1,000 tool calls + model tokens | Usage |
Pricing pages checked on 2026-12-04. Firecrawl charges 2 credits per search of up to 10 results, so 5,000 credits = 2,500 searches. Exa's API reported $0.007 per search on every call in my test, which matches its $7 list price.
At 100,000 searches a month, that's $75 on Decodo, $100 on Parallel, $700 on Exa, $750 on Tavily basic, $760 on Firecrawl Hobby rates and $1,000 in OpenAI tool fees before tokens. If your agent searches on every turn, this table is your margin.
The 7 best web search APIs for AI agents
1. Parallel

Parallel builds its own web index for AI agents. You send an objective in plain language plus optional keyword queries, and it returns ranked URLs with excerpts.
It was one of the two perfect scores in my test: 90 of 90 searches with the official source first, at 1.58 s median and 2.49 s p95. It also has the lowest list price of the APIs with their own index: from $1 per 1,000 searches.
r = requests.post(
"https://api.parallel.ai/v1beta/search",
headers={"x-api-key": os.environ["PARALLEL_API_KEY"]},
json={"objective": "python asyncio TaskGroup",
"search_queries": ["python asyncio TaskGroup"], "max_results": 5},
)
print([x["url"] for x in r.json()["results"]])
Pros
- 90/90 official source first in my test, with no misses
- From $1 per 1,000 searches, close to Decodo's price
- Returns excerpts ready to pass to the model
Cons
- About 3x slower than Decodo at the median (1.58 s vs 0.56 s)
- The endpoint I used is still
v1beta - Free plan limits are "variable," not a published number
Best for: agents where getting the right source first matters most, at a low price per search.
2. Exa

Exa runs its own neural index, so you can search by meaning ("companies building browser agents for e-commerce") as well as by keywords. It can return page contents in the same call.
It matched Parallel: 90 of 90 with the official source first, at 1.14 s median (3.04 s p95). Every call reported a cost of $0.007, exactly its $7 per 1,000 list price for auto search.
r = requests.post(
"https://api.exa.ai/search",
headers={"x-api-key": os.environ["EXA_API_KEY"]},
json={"query": "kubernetes pod disruption budget", "numResults": 5, "type": "auto"},
)
print([x["url"] for x in r.json()["results"]])
Pros
- 90/90 official source first in my test
- Semantic search plus page contents in one request
- Reports the exact cost of each call in the response
- $10 free credit every month, no card
Cons
- $7 per 1,000 searches, 7x Parallel's entry price
- Content is billed on top, per page and per content type
Best for: research agents that search by concept and want the page content in the same call.
3. Decodo

Decodo's Web Data API puts search and scraping under one key (its pricing page lists search, scrape, map and crawl). The /v1/search endpoint returns Google's organic results as JSON, and you can pick the country with geo.
It was the fastest API in my test (0.56 s median, 0.80 s p95) and the cheapest ($0.75 per 1,000 on the $19 plan). It found the official source in the top 5 in 90 of 90 searches and in first position in 87.
import os, requests
r = requests.post(
"https://data.decodo.com/v1/search",
headers={"Authorization": f"Bearer {os.environ['DECODO_API_KEY']}"},
json={"query": "stripe api idempotency keys", "geo": "United States"},
timeout=60,
)
for item in r.json()["organic"][:5]:
print(item["title"], item["link"])
One gotcha I hit: 102 of the 450 links I got back (in 54 of 90 calls) were Google redirect URLs (https://www.google.com/url?...), not the final page. The title is correct, but if your agent fetches the link or filters by domain, resolve the redirect first. A single requests.get(link, allow_redirects=False) and the Location header does it. My first run skipped that step and scored 87/90 hit@5 instead of 90/90.
Pros
- Fastest API in my benchmark, with the tightest p95 (0.80 s)
- $0.75 per 1,000 searches on the $19 plan, $0.40 at the top
- Free plan with up to 10,000 requests
- Search and scraping under the same key, so your agent can read the pages it finds
Cons
- Google results, not an index built for LLMs, so no semantic search
- Some result links come back as Google redirects you have to resolve
- Page content needs a second call to
/scrape
Best for: high-volume agents that need Google-quality results at the lowest cost and latency. I built a full AI research assistant with Python and Decodo if you want the end-to-end code.
4. Firecrawl

Firecrawl started as a scraper that turns pages into LLM-ready markdown. Its /v2/search endpoint adds search on top: one call can return the results and the scraped content of each one.
In my test it answered in 0.98 s at the median (2.99 s p95) and put an official source in the top 5 in 81 of 90 runs. The 9 misses were the same 3 queries, three times each. That consistency is useful: Firecrawl isn't flaky, it just ranks some third-party pages above official docs.
r = requests.post(
"https://api.firecrawl.dev/v2/search",
headers={"Authorization": f"Bearer {os.environ['FIRECRAWL_API_KEY']}"},
json={"query": "docker multi-stage builds", "limit": 5},
)
print([x["url"] for x in r.json()["data"]["web"]])
Every search cost 2 credits in my run (90 of 90). Scraping the results adds 1 credit per page.
Pros
- Search plus full-page markdown in a single request
- 1,000 free credits a month, no card
- Consistent results: the same misses in every run, no random failures
Cons
- Free plan rate limit of about 10 searches a minute in my run (60 of 90 calls got HTTP 429 at a 0.5 s interval)
- 81/90, behind Parallel, Exa and Decodo on official-docs queries
- $7.60 per 1,000 searches on Hobby, about 10x Decodo's entry rate
Best for: agents that need to read the pages, not just find them.
5. OpenAI web search tool

The OpenAI web search tool isn't a standalone search API. You add {"type": "web_search"} to a Responses API call, the model searches, and it answers with citations.
In my test with gpt-5-mini (reasoning effort low), it cited an official source in the top 5 in 89 of 90 runs, but put it first in only 72. The median call took 14.48 s and used 8,625 input tokens, because search results are fed to the model as context. Its only miss: neon postgres scale to zero in one of the three runs, where it cited five GitHub pages instead.
r = requests.post(
"https://api.openai.com/v1/responses",
headers={"Authorization": f"Bearer {os.environ['OPENAI_API_KEY']}"},
json={
"model": "gpt-5-mini",
"tools": [{"type": "web_search"}],
"tool_choice": "required",
"include": ["web_search_call.action.sources"],
"input": "stripe api idempotency keys",
},
)
Pros
- No new vendor if you already use OpenAI
- High recall: 89/90 found the official source somewhere in the top 5
Cons
- 14.5 s median per call, about 26x slower than Decodo in my test
- $10 per 1,000 tool calls plus every token of search context
Best for: chat features where a cited answer matters more than speed or cost.
6. Tavily

Tavily sells search plus extract, crawl and research endpoints, per its pricing and credits pages.
On my docs-style queries it was the weakest API I tested: 51 of 90 searches had the official source in the top 5, and only 21 of 90 had it first. It missed 13 of the 30 queries in all three runs, usually returning tutorials, blogs and vendor pages about the topic instead of the docs themselves. advanced search, which costs 2 credits instead of 1, scored 48/90.
r = requests.post(
"https://api.tavily.com/search",
headers={"Authorization": f"Bearer {os.environ['TAVILY_API_KEY']}"},
json={"query": "python asyncio TaskGroup", "max_results": 5, "search_depth": "basic"},
)
That doesn't make Tavily useless. If your agent wants explanations and articles rather than primary sources, those results may be what you need. But if it should read the official docs first, my test says look elsewhere.
Pros
- 1,000 free credits a month, no card
- Search, extract and crawl from one vendor
Cons
- 51/90 hit@5 and 21/90 hit@1 on official-docs queries in my test
advancedsearch doubles the price and didn't improve the result (48/90)
Best for: agents that want articles and explanations around a topic, not primary sources.
7. Brave Search API

Brave Search API is Brave's search API, which Brave describes as an independent index. The Search plan costs $5 per 1,000 searches, prepaid.
Not tested in this edition (no API key yet). The free tier is a $5 monthly credit (1,000 searches), and a card is required. The page also mentions "up to $20" in free monthly credit without explaining the difference.
Pros
- Pitched as an independent index, an option if you don't want Google results
- Simple flat price per search
Cons
- Not tested here
- Card required even for the free credit
Best for: teams that want a non-Google index at a predictable price.
Also worth a look
- Serper and SearchApi: Google results as JSON from $1 and $4 per 1,000 searches. I compared both in 7 Best SERP APIs in 2026.
- Linkup ($5โ6 per 1,000, 4,000 free queries) and You.com ($5 per 1,000, $10 free credit): both list sourced answers or raw results on their sites.
- Gemini grounding with Google Search: I couldn't test it. My API key returned HTTP 429 "exceeded your current quota" on every Flash model as soon as the
google_searchtool was added, while the same key generated plain text fine. - Perplexity: its docs say Sonar Chat Completions support ended on September 27, 2026. Its Search API lists $5 per 1,000.
How to choose a web search API
- Decide what "right" means for your agent. If it should read official docs and primary sources, Parallel, Exa and Decodo did that in my test; Tavily mostly didn't.
- Cost per search decides it at scale. At 100K searches a month, the APIs I tested range from $75 to $1,500 (Tavily advanced), plus tokens for OpenAI.
- Do you need the page, or just the link? If your agent reads every result, pick an API that returns content in the same call (Firecrawl, Exa, Tavily) or budget a second scrape call.
- Keyword or meaning? Open-ended research ("find startups doing X") is where Exa's semantic search earns its higher price.
- Check the free plan's rate limit before you benchmark. Mine turned a working API into 60 failures out of 90.
- Resolve and filter links. Redirect URLs and duplicate domains are common. Clean them before they reach the model.
What this test doesn't prove
- 30 queries is a small sample, and they're all developer queries in English with one clear official source. News, shopping, local or open-ended research queries could rank the APIs very differently, and Tavily may do better on them.
- Latency was measured from one home connection in Spain. Your region will change the numbers.
- OpenAI's latency includes writing an answer; a search-only setup would be faster.
- Brave and Gemini grounding weren't tested. I'll add them in the next refresh.
FAQ
What is the best web search API for AI agents?
In my test of six APIs, Parallel and Exa were the most accurate: both returned the official source first in 90 of 90 searches. Parallel is the cheaper of the two (from $1 per 1,000 searches). Decodo was the fastest (0.56 s median) and cheapest ($0.75 per 1,000), with the official source first in 87 of 90.
Exa or Tavily?
On my 30 developer queries, Exa returned the official source first in 90 of 90 searches and Tavily in 21 of 90. Prices are close: $7.00 per 1,000 on Exa auto vs $7.50 on Tavily basic. Tavily's free tier is 1,000 credits a month; Exa's is $10 of credit a month.
Is there a free web search API?
Several have free tiers: Firecrawl and Tavily give 1,000 credits a month, Exa gives $10 of credit a month, Parallel has a free Launch plan, Decodo's free plan covers up to 10,000 requests, and Brave gives a $5 monthly credit (card required).
Is Google's search API still available?
Google's Custom Search JSON API is closed to new customers, and existing users have until January 1, 2027 to migrate. A SERP API or one of the web search APIs above is the usual replacement.
Why not just use the LLM's built-in web search?
You can. In my test, OpenAI's web search tool found the right sources but took 14.5 seconds per call and costs $10 per 1,000 tool calls plus tokens. The dedicated search APIs returned results in 0.6 to 1.6 seconds at the median, for a fraction of the price.
Are you a web search API vendor?
This list gets updated every quarter. If your API isn't here, or I tested an older version, write to me through kevinmeneses.com and I'll run it through the same 30 queries in the next refresh.
Final thoughts
Most "best search API" lists rank by features. Agents care about two numbers: how often the right source shows up first, and how long the agent waits for it.
On the first number, Parallel and Exa were perfect in my test. On the second, Decodo was 2โ3x faster than both and the cheapest per search. And Tavily finished last on the job I tested.
Run your own 30 queries before you commit. It takes an afternoon and it can save you a year of wrong answers.
If you're building agents that work with real data, I write about it every week. Follow me on LinkedIn for the next benchmark.