Which search API would a coding agent choose?
We asked three coding agents to choose a search service for a developer. Then we tested 19 APIs to see how well the recommendations held up.
The 19 search APIs we tested
Claude Code, Codex and Cursor each answered the same 60 factual questions with every API. We graded 3,420 final answers.
- Brave LLM Context
- Brave Search
- Bright Data
- Cloudflare → Ceramic
- Context.dev Search
- Exa
- Firecrawl
- Jina
- Keenable
- Linkup
- Nimble
- Octen
- Parallel
- Perplexity Search
- Serper
- Tavily
- TinyFish
- Valyu
- You.com
Brave Search and Brave LLM Context are separate APIs. The main comparison used Tavily Basic. We also tested Tavily Advanced separately.
Tavily led the picks. Exa led on accuracy
| Selected APIs | First choice in 360 replies | Correct answers¹ |
|---|---|---|
| 23% | 91% | |
| 2% | 89% | |
| 0% | 86% | |
| 37% | 79% |
¹ Three agents answered 60 questions with each API using only the returned text. We ran Tavily Advanced separately on the same questions. Tavily recommends this mode for agents. The 37% counts recommendations for Tavily as a product.
The request changed the recommendation
Each of three agents answered each prompt six times. None of the prompts named a vendor.
| What the developer asked for | Most frequent first choice | Replies |
|---|---|---|
| “pick one and wire it in” | 18 of 18 | |
| Reliability and rate limits | 17 of 18 | |
| Long passages the model could read | 16 of 18 | |
| The cheapest API that was still good enough | 14 of 18 |
Codex started by looking up Tavily
The developer asked Codex to pick a search API and wire it in. The app already had a search tool.
Tavily search API official documentation search endpoint Node.js API key
Its only other query was the address of Tavily’s search endpoint docs. Codex said Tavily returned the source URLs and snippets the app already expected.
Across all three agents, 213 of the 240 sessions with a web search named at least one vendor in the first query.
Why Claude Code picked Tavily
A developer wanted live web results for an assistant. Claude Code read the app and recommended Tavily without searching.
It's built for LLM tool calls. It returns cleaned snippets or page content ready to pass back to the model, so you don't have to scrape and parse HTML.
Claude Code, explaining its recommendation
Claude Code picked Tavily first in 47 of the 80 sessions where it answered without a web search.
Who searched before giving advice?
Each coding agent answered the same 20 requests six times. We recorded whether it searched the web before recommending a provider.
| Coding agent | Sessions with a search | Most frequent pick in those sessions |
|---|---|---|
| 120 of 120 | ||
| 80 of 120 | ||
| 40 of 120 |
The agents decided when to search. They sometimes looked up different kinds of requests, including price and reliability.
Codex never cited Reddit
A search returned Reddit in 109 of Codex’s 120 sessions. None of its final recommendations linked to Reddit.
| Selected sources | In search results | Linked in final answer |
|---|---|---|
| 109 | 0 | |
| 90 | 101 | |
| 93 | 80 | |
| 75 | 74 |
A result can include an excerpt even if the agent never opens the page. These counts alone can’t tell us whether Reddit influenced the recommendation.
Where did Cursor get its case for Exa?
In one answer, Cursor pointed to independent benchmarks and Exa’s ability to return passages an agent could cite.
| Cursor’s search results | Sessions that picked Exa first |
|---|---|
| Included openbenchmarks.com | 18 of 33 |
| Didn’t include openbenchmarks.com | 10 of 47 |
Several answers quoted the site’s figures. Only two linked to it. Cursor chose its own searches, so the comparison leaves open whether seeing the site changed its choice.
Three APIs the agents never picked first
On the 30 main questions, the agents answered at least 90% correctly with each of these services.
| API | Correct answers | First choices in 360 replies |
|---|---|---|
| You.com | 83 of 90 | 0 |
| Valyu | 82 of 90 | 0 |
| Nimble | 81 of 90 | 0 |
You.com also placed third across all 60 questions. A shortlist drawn only from the agents’ first choices would have missed it.
Two APIs found the Fed. One returned the vote
Claude Code had to give the new rate range, the vote and the rate on reserve balances. Both APIs returned pages from the Federal Reserve.
| What the returned text included | ||
|---|---|---|
| New rate range | 3.75–4.00% | 3.75–4.00% |
| Committee vote | 12–0 | Missing |
| Rate on reserve balances | 3.90% | Missing |
One saved run per API. The agent could search twice and read the returned text. It could not open the linked pages. We graded the final answer on all three facts.
What changed on the harder questions?
The harder set asked for details in long or recent sources, many in languages other than English. Each percentage covers 90 answers.
| Selected APIs | Main questions | Harder questions |
|---|---|---|
| Exa | 92% | 90% |
| Perplexity Search | 92% | 87% |
| You.com | 92% | 80% |
| Parallel | 92% | 76% |
Without access to search, the same agents got 13 of 90 main answers right and none of the 90 harder answers right.
Tavily’s search mode changed the score
Tavily recommends Advanced for agents. We ran it separately on the same 60 questions with the same three agents.
| Tavily mode | Correct answers | List fee per 1,000 searches |
|---|---|---|
| Basic | 67% | $8 |
| Advanced | 79% | $16 |
Advanced gained 12 percentage points at twice the fee per search. For a team considering Tavily, the mode is part of the buying decision.
Which Brave API goes into the app?
The agents recommended Brave Search without specifying an endpoint. We tested two Brave APIs on the same 30 harder questions.
The agents got 35 of 90 answers right with Brave Search and 68 with Brave LLM Context. Naming the vendor alone leaves a consequential implementation choice to the developer.
How long did one search take?
Average time per search on the harder questions. These four APIs illustrate the range of response times and scores.
| Selected APIs | Seconds per search | Correct answers |
|---|---|---|
| Octen | 0.33 s | 39% |
| Perplexity Search | 0.65 s | 87% |
| Exa | 1.70 s | 90% |
| Jina | 8.10 s | 54% |
Search time covers the API call. An agent could make two calls per question and then spend additional time writing its answer.
What did a correct answer cost?
On the 30 harder questions, Serper charged less per search. Exa produced more correct answers from the same three agents.
| Harder questions | ||
|---|---|---|
| List fee per 1,000 searches | $1 | $7 |
| Correct answers | 4 of 90 | 81 of 90 |
| Search fees per correct answer | 4.4¢ | 1.0¢ |
We counted fees for all searches, including those behind wrong answers, then divided by correct answers. These figures exclude model costs. Serper’s estimate rests on four correct answers.
Which search API should you try first?
For difficult lookupsStart with Exa and Perplexity Search. The agents answered 81 and 78 of the 90 harder attempts correctly with them.
For routine lookupsEight APIs reached 90% on the main set. Compare their fees and search times against your app’s budget.
For the final choiceRun customer questions through your own agent. Let it open pages if your product does, and grade the facts your customer needs in a complete answer.