Building with AI

Which Web Search API Finds the Answer to a Medical Question? I Tested Four

By Roupen Odabashian
Published  |  Updated  |  10 min read

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

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:

How did the test work?

A flow from top to bottom. Step 1, 10 invented questions. Step 2, write down the good answer: a short answer and 2 to 4 key points, before any search. Step 3, search: the same question goes to every tool, asked two ways, the full question and short keywords, top 10 from each. Step 4, read: our own reader opens every page, no paywalls or logins, and a page it can't open counts as zero. Step 5, grade blind: Claude Sonnet grades each page 0 to 3 against the key points without knowing which tool found it. Step 6, score: compare the tools question by question.
Figure 1. The six steps of the test.

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:

One-liners

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)

Patient cases

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:

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:

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:

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:

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.

MeasureWhat 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 foundIs a page graded 3 somewhere in the top 10?
Useful pagesWhat share of the top 10 is graded 2 or 3?
Key points coveredOf the key points, how many does at least one top-10 page state?
SpeedMedian seconds per search.
ReliabilityErrors, 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.

BraveTavilyGoogle (SerpAPI)Firecrawl
Ranking quality, 0 to 10.610.570.450.44
Best page in the top 1070%95%65%60%
Best page in the top 570%70%40%50%
Useful pages in the top 1060%56%38%40%
Key points covered89%94%83%73%
Authoritative sources in the top 103.03.32.02.1
Median time per search0.6 s3.1 s6.8 s3.2 s
Errors, timeouts, empty results0003 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.

Two bar charts with the same four rows. Ranking quality, nDCG at 10: Brave 0.61, Tavily 0.57, Google through SerpAPI 0.45, Firecrawl 0.44. Searches, out of 20 per tool, with a page that fully answers in the top 10: Brave 70%, Tavily 95%, Google 65%, Firecrawl 60%.
Figure 2. Ranking quality and best page found, with 95% ranges. 10 questions, 20 searches per tool.

What surprised me?

What are the limits of this test?

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

  1. 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.
  2. Holm S. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics. 1979;6(2):65-70. jstor.org/stable/4615733.
  3. Firecrawl. Search endpoint documentation. Checked November 30, 2026.
  4. SerpAPI. Google Search API. Checked November 30, 2026.
  5. Brave. Brave Search API. Checked November 30, 2026.
  6. Tavily. Tavily documentation. Checked November 30, 2026.
  7. IETF. RFC 9309: Robots Exclusion Protocol. 2022.
  8. National Center for Biotechnology Information. Entrez Programming Utilities Help.
  9. Incyte. Jakafi (ruxolitinib) prescribing information.
  10. Anthropic. Claude Sonnet.
Roupen Odabashian

About the author

Roupen Odabashian is a medical oncologist in British Columbia and the founder of MeDucation AI and Alma. He taught himself to code during fellowship and now builds software with AI every day.

More about Dr. Odabashian  ·  All writing  ·  YouTube