Medical RAG depends on indexing and embedding medical articles, but it also needs real-time web search. Several companies sell real-time web search through an API. In this article I tested four of them on the same medical questions, and I walk through each one and which did best.
Key takeaways
- I tested four web search APIs on 10 invented medical questions: Brave, Tavily, Firecrawl, and Google's results through SerpAPI.
- On ranking quality, Brave (0.61) and Tavily (0.57) tied at the top. Google (0.45) and Firecrawl (0.44) tied at the bottom.
- Tavily most often had a page that fully answers the question in its top 10: 19 of 20 searches. Brave was the fastest by far, 0.6 seconds a search against 3 to 7 for the others.
- Firecrawl returned nothing for 3 of the 5 patient cases when I sent it the whole case.
- About a third of the pages couldn't be opened by an automated reader. The medical web is more closed than it looks.
When an AI tool answers a medical question from the web, it can only use what the search step hands it. If the guideline never shows up in the results, the best model in the world can't cite it.
In this article I compare four search providers head to head and see which one fits healthcare best. I ran the test on November 30, 2026, and built all of it with Claude Code: the agents that wrote the questions, the page reader, the grader and the statistics.
Which web search APIs did I test?
The four I had API keys for:
- Firecrawl, a search and scraping API built for AI apps.
- SerpAPI, which returns Google's search results. I'll call it Google here.
- Brave, a search API on Brave's own web index.
- Tavily, a search API built for AI agents and RAG.
How did the test work?
Step 1: Write questions no search engine has seen
I didn't want real patient questions going to a search vendor, and I didn't want questions copied from a website a search engine already knows. So AI agents with no web access wrote a pool of 360 invented questions. They cover oncology and 10 other specialties, six kinds of question (treatment, drug dose or safety, diagnosis, guidelines, a recent change from 2024 to 2026, and rare disease) and two shapes: a one-liner and a short patient case.
A script drew questions from the pool at random with a fixed seed, so I couldn't pick the ones a tool would be good at. This first run used 10: five in oncology, and one each in cardiology, infectious diseases, endocrinology, nephrology and pulmonary and critical care. Five one-liners, five cases.
These are the 10 questions:
1. Ruxolitinib starting dose for myelofibrosis based on baseline platelet count? (oncology)
2. How should the serum free light chain kappa/lambda ratio be interpreted in a patient with chronic kidney disease? (oncology)
3. Which patients with resected adrenocortical carcinoma should receive adjuvant mitotane, and what blood level is targeted? (oncology)
4. How to interpret a positive total hepatitis B core antibody with negative HBsAg and negative anti-HBs (infectious diseases)
5. Is semaglutide FDA approved to reduce kidney disease progression in adults with type 2 diabetes and CKD? (nephrology)
6. A 69-year-old woman with metastatic urothelial carcinoma started enfortumab vedotin plus pembrolizumab 3 weeks ago. She has well-controlled type 2 diabetes on metformin with an HbA1c of 6.9%. Before the next cycle, fasting glucose is 310 mg/dL without ketoacidosis. How should enfortumab vedotin be managed? (oncology)
7. A 67-year-old man has CLL found incidentally: lymphocytes 38,000/µL (30,000/µL a year earlier), cervical nodes under 2 cm, no splenomegaly, hemoglobin 13.8 g/dL, platelets 180,000/µL, and no B symptoms or autoimmune cytopenia. TP53 is unmutated. Does he meet iwCLL criteria to start therapy? (oncology)
8. A 58-year-old man is newly diagnosed with nonischemic cardiomyopathy, LVEF 28%, NYHA class II. He is euvolemic on furosemide 20 mg daily and metoprolol succinate 25 mg daily. Blood pressure is 124/76, heart rate 78, potassium 4.4 and eGFR 68. He takes no other cardiac drugs. Which medications should be added to complete guideline-directed medical therapy? (cardiology)
9. A 47-year-old woman with primary adrenal insufficiency takes hydrocortisone 15 mg and fludrocortisone 0.1 mg daily. She has no other medical problems. She is scheduled for an elective open colectomy under general anesthesia. What perioperative glucocorticoid dosing is recommended? (endocrinology)
10. A 61-year-old woman with bacterial pneumonia was intubated yesterday for moderate ARDS, with PaO2/FiO2 of 130 on PEEP 12. She does not have COVID-19 or septic shock. Does the current ATS guideline support giving systemic corticosteroids for her ARDS? (pulmonary and critical care)
Step 2: Write down the good answer before you search
This is the step most search tests skip. If you don't know what a good answer looks like before you search, you end up grading results by how convincing they sound.
Every question got a short good answer and 2 to 4 key points, written before any search ran. For the ruxolitinib question, the key points are the starting doses in the label:
- Platelets above 200,000/µL: 20 mg twice daily.
- Platelets 100,000 to 200,000/µL: 15 mg twice daily.
- Platelets 50,000 to under 100,000/µL: 5 mg twice daily.
A page that states all three, from the label or a guideline, is what a good search should find.
Step 3: Ask every tool the same question, the same way
Each question went to every tool twice. Once as the full question, the way a clinician would type it. Once as short keywords: for the ruxolitinib question, ruxolitinib starting dose platelet count myelofibrosis. Real apps send both kinds, and tools handle them differently.
The rules, the same for every tool:
- 10 results, set to the US wherever the tool allows it.
- The same 20-second timeout.
- One search at a time, with the order of the tools shuffled for every question, so no tool always went first.
- One retry, only for a timeout or a server error.
That's 80 searches. None failed and none timed out.
Step 4: Open every page
A search result is a link and a snippet. The snippet isn't the evidence. The page is. So I built a small reader that opens every page the tools returned:
- It says who it is, follows each site's robots.txt, and skips paywalls and logins.
- For a journal article, it gets the abstract from PubMed through NCBI's E-utilities.
- It reads PDFs.
Across the 10 questions, the four tools returned 444 different pages. 302 could be read. The rest couldn't: the site refused automated readers, its robots.txt said no, the publisher's terms don't allow automated reading, there was no PubMed abstract, or a bot check came up.
A page that can't be opened counts as zero. If an AI can't read a page, it can't use it. I also ran everything with those pages left out instead. The order didn't change.
Step 5: Grade every page blind
Claude Sonnet 5.5 graded each page against the question, the good answer and its key points, on a 0 to 3 scale:
- 3: answers the question correctly and currently, from an authoritative source (a guideline, a drug label, a trial, a systematic review or a major clinical reference).
- 2: helps. It answers part of the question, or answers it from a weaker source like a review or a news story.
- 1: on topic, but doesn't help answer it.
- 0: off topic, wrong, or spam.
It also marked which key points each page states. The grader never saw which tool found the page. That's the point: the same page gets the same grade whichever tool returned it. Grading cost about a cent a page.
Step 6: Score each tool
I picked the main measure before the run: ranking quality. The others fill in the picture.
| Measure | What it asks |
|---|---|
| Ranking quality (nDCG at 10) | Are the best pages near the top? A page graded 3 in first place counts fully, and lower places count less. A score of 1.0 means the best list possible from every page any tool found for that question. |
| Best page found | Is a page graded 3 somewhere in the top 10? |
| Useful pages | What share of the top 10 is graded 2 or 3? |
| Key points covered | Of the key points, how many does at least one top-10 page state? |
| Speed | Median seconds per search. |
| Reliability | Errors, timeouts and empty results. |
Each question's score is the average of its two versions, full and keywords. Then I compared the tools question by question. A paired test asks how often chance alone would give a gap this consistent, and with six pairs of tools I corrected for making six comparisons at once (the Holm method).
Which web search API found the best medical answers?
Two engines tied at the top. Google and Firecrawl tied at the bottom.
| Brave | Tavily | Google (SerpAPI) | Firecrawl | |
|---|---|---|---|---|
| Ranking quality, 0 to 1 | 0.61 | 0.57 | 0.45 | 0.44 |
| Best page in the top 10 | 70% | 95% | 65% | 60% |
| Best page in the top 5 | 70% | 70% | 40% | 50% |
| Useful pages in the top 10 | 60% | 56% | 38% | 40% |
| Key points covered | 89% | 94% | 83% | 73% |
| Authoritative sources in the top 10 | 3.0 | 3.3 | 2.0 | 2.1 |
| Median time per search | 0.6 s | 3.1 s | 6.8 s | 3.2 s |
| Errors, timeouts, empty results | 0 | 0 | 0 | 3 empty |
10 questions, each asked two ways, so 20 searches per tool. Percentages are shares of those 20 searches. Google's time is with SerpAPI's cache turned off.
- Tavily beat Google and Firecrawl, on 9 and 10 of the 10 questions, and both gaps held up after the correction.
- Brave beat Google the same way, on 9 of 10 questions. Against Firecrawl it was also ahead on 9 of 10, but after the correction the gap fell just short (p = 0.06). Likely, not proven.
- Brave against Tavily is a tie. Brave was ahead on 6 questions, Tavily on 4. Brave ranked slightly better. Tavily more often had a page that fully answers somewhere in its top 10, and covered the most key points.
- Google and Firecrawl tied.
What surprised me?
- Firecrawl returned nothing for 3 of the 5 patient cases when I sent the whole case. With keywords it returned results. If your app sends the clinician's full question to a search API, test this first.
- The long question hurt Google and Firecrawl the most. With keywords, both scored 0.50. With the full question, Google dropped to 0.39 and Firecrawl to 0.37. Brave scored about the same either way (0.62 and 0.60).
- Google wasn't the best at medicine. Its top 10 had the fewest authoritative sources of the four, and the most pages that couldn't be opened.
- The tools barely agree. Any two of them shared only 13 to 28% of their top 10. They aren't ranking the same pages in a different order. They're finding different pages.
- The medical web is closed to machines. About a third of the pages couldn't be read by an automated reader that plays by the rules. That's a problem for every AI tool that cites the web, not just this test.
What are the limits of this test?
- 10 questions. Only big gaps show up at this size. Search results also change from day to day.
- The grader is a model. I haven't yet checked a sample of its grades against my own.
- The good answers were drafted with AI before the run. I haven't checked every one by hand yet.
- My reader can't open everything a person could. A tool that's good at finding paywalled journals loses points here. Leaving unreadable pages out didn't change the order.
- The network dropped during the run. I re-read the pages that failed because of it, the same way for every tool. Six pages from Brave couldn't be re-read, because its terms had me delete its links after grading. They stay at zero, which can only lower Brave's score.
- US and English only.
What's next?
The same test with 180 questions and more search APIs. Before that, I'll grade a sample of pages myself to see how often I agree with the model, and I'll run the searches again a week later to see how much the results move.
Bottom line
For medical questions, the search step matters more than I expected. On 10 questions, the best two tools ranked useful pages about a third better than the other two, and one of them did it in a fraction of the time. And the tools barely overlap, so the one you pick decides what your AI gets to read.
Write the answer down before you search. Otherwise you're grading the search by how good it sounds.
Sources
- Järvelin K, Kekäläinen J. Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems. 2002;20(4):422-446. doi.org/10.1145/582415.582418. The paper behind nDCG.
- Holm S. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics. 1979;6(2):65-70. jstor.org/stable/4615733.
- Firecrawl. Search endpoint documentation. Checked November 30, 2026.
- SerpAPI. Google Search API. Checked November 30, 2026.
- Brave. Brave Search API. Checked November 30, 2026.
- Tavily. Tavily documentation. Checked November 30, 2026.
- IETF. RFC 9309: Robots Exclusion Protocol. 2022.
- National Center for Biotechnology Information. Entrez Programming Utilities Help.
- Incyte. Jakafi (ruxolitinib) prescribing information.
- Anthropic. Claude Sonnet.