Medical Literature Search API Review: PubMed, Europe PMC, OpenAlex and What Each Misses

TLDR: A medical literature search API usually means PubMed's E-utilities for recall and retraction status, plus Europe PMC for open-access full text. OpenAlex and Semantic Scholar add citation graphs. In our November 7, 2026 tests, one query returned 399 to 10,148 hits depending on the API and fields searched, Europe PMC held none of the sampled records PubMed added in the past three days, and of 291 recently retracted papers, PubMed flagged all, Europe PMC 290 and OpenAlex 286.
Developers who search for a medical literature search API are usually building one of three things: a search box over biomedical papers, a pipeline that watches for new studies on a topic, or an agent that answers clinical questions and cites what it read. All three need the same four things from the API underneath. They need recall you can explain to a clinician, records that are current, a retraction flag you can trust, and text the model is allowed to read. The public APIs differ on every one of those, and the differences only show up when you run them side by side.
So we did. On November 7, 2026 we sent test queries to PubMed E-utilities, Europe PMC, OpenAlex, Semantic Scholar and Crossref from stdlib Python, with no API keys. The counts below are snapshots dated November 7 that will drift. The patterns behind them are what to design around.
Medical literature APIs compared
Five APIs cover most of what a biomedical app needs, and all five can be called without a paid plan. Counts are what each API reported on November 7, 2026, and limits and prices are as of November 2026.
| API | Coverage (live count) | Access and limits | Cost | Use it for |
|---|---|---|---|---|
| PubMed E-utilities | 41,403,934 biomedical citations | Free optional key. 3 requests per second without one, 10 with one | Free | Recall, MeSH filtering, the retraction flag |
| Europe PMC REST | 49,193,995 records: 41.3 million from PubMed, 1.28 million preprints, 12.48 million with full text, 8.39 million open access | No key | Free | Full-text search, open-access article text, preprints |
| OpenAlex | 318,346,476 works in the default core corpus, across all disciplines | Keyless budget of $0.10 a day, $1 a day with a free key. 10 requests per second keyless, 30 with a key | $0.001 per search call, $0.0001 per list call | Citation graph, institutions, work outside biomedicine |
| Semantic Scholar | Papers across disciplines, with citations and references | Keyless calls share one pool with every anonymous user. Keys are granted on application, starting at 1 request per second | No fee listed. Data licenses vary, and some are CC BY-NC | Citation and reference graphs |
| Crossref REST | 188,572,261 DOI metadata records | No key. Since July 21, 2026, list queries are capped at 1 per second, or 3 with a mailto address | Free, with a paid Plus tier | Resolving DOIs and publisher metadata |
Three limits bite earlier than people expect. Semantic Scholar's shared keyless pool returned HTTP 429 on all six of our requests, spaced three seconds apart, so apply for a key before you build on it. PubMed's ESearch stops at 9,999 IDs per query, although NCBI's documentation says 10,000: asking for retmax=100000 on "cancer" returned 9,999 of 5,738,544 matches with only a warninglist note, and retstart=9999 returned an error that points to EDirect. Split big pulls by date, for example with [dp] ranges. OpenAlex's October 2026 announcement says API keys are now required, with keyless calls meant for demos, and its basic paging stops at 10,000 results.
Why one query returns 399 or 10,148 results
The first thing a side-by-side test shows is that hit counts are not comparable across APIs. We ran semaglutide and "heart failure" three ways.
| Search scope | PubMed | Europe PMC | OpenAlex |
|---|---|---|---|
| Default search | 469 | 5,628 | 10,148 |
| Title and abstract only | 431 | 399 (380 from PubMed, 18 preprints) | 930 (508 with a PMID) |
MeSH headings ("Semaglutide"[nm] AND "Heart Failure"[mh]) | 94 | Not applicable | Not applicable |
The default rows use each API's plain search: semaglutide heart failure on the PubMed website, semaglutide AND "heart failure" in Europe PMC and search=semaglutide "heart failure" in OpenAlex. The title-and-abstract rows scope the same two terms with [tiab], TITLE_ABS: and search.title_and_abstract.
Most of the spread comes from what each API searches by default. PubMed holds citations and abstracts, not article bodies. Europe PMC's default query also searches full text, which its own FAQ gives as a reason its counts run higher, and 5,366 of its 5,628 matches have full text in Europe PMC. Restrict it to titles and abstracts and it lands at 399, close to PubMed's 431. OpenAlex is broader for three reasons. Its default search also covers full text and keywords, its search is stemmed (its own query translation reads stemmed "heart failure"), and 422 of its 930 title-and-abstract matches have no PMID, so OpenAlex does not map them to a PubMed record.
MeSH is the precision end. Only 94 records carry both headings, which makes MeSH a good filter or ranking signal and a poor sole recall query, since it misses records that are not indexed with those terms. The practical rule: for recall a clinician can audit, query PubMed titles and abstracts and use MeSH to rank. For questions like "which papers mention this assay in their methods", use Europe PMC's full-text search. Never treat a bigger count as better coverage until you know which fields produced it.
How far behind PubMed the aggregators run
Europe PMC and OpenAlex both ingest PubMed, so freshness is a question of lag. On the morning of November 7 we pulled the PMIDs PubMed added on each of several days, sampled 60 per day at random, and checked whether each aggregator had them.
| Day PubMed added the record | Records added that day | In Europe PMC (of 60) | In OpenAlex (of 60) |
|---|---|---|---|
| November 6 | 6,354 | 0 | 34 |
| November 5 | 5,957 | 0 | 53 |
| November 4 | 5,019 | 0 | 59 |
| November 3 | 5,673 | 39 | 57 |
| November 2 | 4,017 | 60 | 60 |
| October 28 | 5,151 | 60 | 59 |
On this sample, OpenAlex was about a day behind PubMed. Europe PMC held none of the records from the last three days and 39 of 60 from the day before that, so it ran three to four days behind PubMed's newest records. One morning's sample is not a service level, so measure it for your own topics before you promise anyone a same-day alert. If you need one, poll PubMed by entry date ([edat]) and enrich the records from the other APIs later.
Retractions: the check most pipelines get wrong
A medical assistant that cites a retracted trial is worse than one that cites nothing. Two traps make this easy to get wrong.
The first is a rename. NLM changed the publication type for retraction notices from "Retraction of Publication" to "Retraction Notice", and its March 31, 2026 Technical Bulletin updated PubMed's filters to match. Many tutorials still use the old name. Today "Retraction of Publication"[pt] returns zero results, with the problem reported only in the response's warninglist under quotedphrasesnotfound. Code that reads only count concludes that nothing was retracted. The type to check on the paper itself is "Retracted Publication", which PubMed applied to 35,535 records on November 7. "Retraction Notice" marks the 34,299 notices, as NLM's definitions put it.
The second trap is lag. We took all 294 retraction notices PubMed added between October 17 and November 6 and followed each to the paper it retracts. That gave 291 retracted papers, since three notices had no linked paper in PubMed, and PubMed flagged all 291.
| Date PubMed added the notice | Retracted papers | Flagged in PubMed | Flagged in OpenAlex | Flagged in Europe PMC |
|---|---|---|---|---|
| October 17 to November 4 | 178 | 178 | 178 | 178 |
| November 5 | 102 | 102 | 101 | 101 |
| November 6 | 11 | 11 | 7 | 11 |
Everything older than November 5 matched in all three. The biggest batch, 102 papers on November 5, came through with one paper missing in OpenAlex and a different one in Europe PMC. The newest day is where they split: OpenAlex had flagged 7 of the 11 papers from November 6, Europe PMC all 11. Europe PMC applied retraction flags within a day or two even while it held none of the newly added records. A random sample of 60 retracted papers published from 2024 through September 2026 matched in all three. The lag is short but uneven, so check retraction status against PubMed at the moment you cite a paper, not when you indexed it, and treat any disagreement as "retracted".
What an LLM is allowed to read
Grounding quality depends on how much text the model sees. For the 431 PubMed title-and-abstract matches, 396 had an abstract, 202 were in PubMed Central, and 265 had free full text somewhere. In Europe PMC's 399 matches, 171 had full text readable in Europe PMC, 156 were open access, and 105 carried a CC BY license. OpenAlex marked 579 of its 930 as open access.
So for this topic, about nine in ten records had an abstract, but under half had full text in PubMed Central or Europe PMC, and about a quarter of Europe PMC's matches carried a CC BY license. Measure that ratio on your own queries before you size a full-text pipeline. Open access is also not permission to store and reuse. Europe PMC's open access subset page says its articles are still protected by copyright, with license terms that differ across the subset, and its developer page states that automated bulk download of anything outside the open-access set is not permitted. Read the license before you put full text in your index, and fall back to abstracts and links where it does not allow reuse.
A federated search you can run today
Save the script below as litsearch.py. It uses PubMed for the ID list and the retraction flag, then asks Europe PMC which hits have full text and open access. It paces NCBI calls at 3 per second, or 10 with NCBI_API_KEY set, and sends the tool and email parameters NCBI's usage policy asks for, so set NCBI_EMAIL first. It raises an error when PubMed finds no match for a phrase, which catches renamed publication types and misspelled terms, and it returns the query PubMed actually ran.
"""Medical literature search across PubMed and Europe PMC.
PubMed supplies recall and the retraction flag. Europe PMC adds full-text and
open-access flags. Python 3.9+, standard library only.
"""
import json
import os
import time
import urllib.error
import urllib.parse
import urllib.request
EUTILS = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/"
EPMC = "https://www.ebi.ac.uk/europepmc/webservices/rest/search"
ESEARCH_CAP = 9999 # PubMed's ESearch stops here, whatever retmax says
if not os.environ.get("NCBI_EMAIL"):
raise SystemExit("Set NCBI_EMAIL to your contact address. NCBI's usage policy asks for it.")
NCBI = {"tool": "my-lit-search", "email": os.environ["NCBI_EMAIL"]}
if os.environ.get("NCBI_API_KEY"):
NCBI["api_key"] = os.environ["NCBI_API_KEY"]
NCBI_GAP = 0.11 if "api_key" in NCBI else 0.34 # 10/s with a key, 3/s without
_last_call = [0.0]
def _get(url, params):
full = url + "?" + urllib.parse.urlencode(params)
req = urllib.request.Request(full, headers={"User-Agent": "my-lit-search/1.0"})
for attempt in range(4):
try:
with urllib.request.urlopen(req, timeout=60) as resp:
return json.loads(resp.read().decode())
except urllib.error.HTTPError as err:
if err.code != 429 and err.code < 500:
raise
except OSError:
pass # DNS failure, dropped connection or timeout: retry
time.sleep(2 ** attempt)
raise RuntimeError("gave up after 4 tries: " + url)
def _ncbi(path, **params):
wait = _last_call[0] + NCBI_GAP - time.monotonic()
if wait > 0:
time.sleep(wait)
_last_call[0] = time.monotonic()
return _get(EUTILS + path, {**NCBI, "retmode": "json", **params})
def pubmed_search(term, retmax=200):
if retmax > ESEARCH_CAP:
raise ValueError("ESearch returns at most %d IDs. Split the query by date." % ESEARCH_CAP)
res = _ncbi("esearch.fcgi", db="pubmed", term=term, retmax=retmax)["esearchresult"]
if "ERROR" in res:
raise ValueError(res["ERROR"])
notes = {**res.get("errorlist", {}), **res.get("warninglist", {})}
dropped = notes.get("quotedphrasesnotfound", []) + notes.get("phrasesnotfound", [])
if dropped:
# PubMed ignores unknown phrases and tags and still answers, so fail loudly.
raise ValueError("PubMed did not recognise: %s" % dropped)
return int(res["count"]), res["idlist"], res.get("querytranslation", "")
def pubmed_records(pmids):
out = {}
for i in range(0, len(pmids), 200):
res = _ncbi("esummary.fcgi", db="pubmed", id=",".join(pmids[i:i + 200]))["result"]
for uid in res.get("uids", []):
doc = res[uid]
ids = {a["idtype"]: a["value"] for a in doc.get("articleids", [])}
out[uid] = {
"pmid": uid,
"title": doc.get("title"),
"journal": doc.get("fulljournalname"),
"pubdate": doc.get("pubdate"),
"doi": ids.get("doi"),
"pmcid": ids.get("pmc"),
"retracted": "Retracted Publication" in doc.get("pubtype", []),
"url": "https://pubmed.ncbi.nlm.nih.gov/%s/" % uid,
}
return out
def europepmc_flags(pmids):
flags = {}
for i in range(0, len(pmids), 50):
chunk = " OR ".join("EXT_ID:" + p for p in pmids[i:i + 50])
res = _get(EPMC, {"query": "SRC:MED AND (%s)" % chunk, "format": "json",
"resultType": "lite", "pageSize": 100})
for r in res["resultList"]["result"]:
flags[r["pmid"]] = {
"full_text_in_epmc": r.get("inEPMC") == "Y",
"open_access": r.get("isOpenAccess") == "Y",
"epmc_retracted": "retracted publication" in r.get("pubType", "").lower(),
}
time.sleep(0.2)
return flags
def search(term, retmax=200):
count, pmids, translation = pubmed_search(term, retmax)
records = pubmed_records(pmids)
flags = europepmc_flags(pmids)
keep, retracted, lagging = [], [], []
for pmid in pmids:
rec = records.get(pmid)
if rec is None:
continue
rec.update(flags.get(pmid, {"full_text_in_epmc": False, "open_access": False,
"epmc_retracted": None}))
if rec["retracted"]:
retracted.append(pmid)
if rec["epmc_retracted"] is False:
lagging.append(pmid) # Europe PMC has not caught up yet
else:
keep.append(rec)
return {"count": count, "returned": len(records), "query_as_run": translation,
"results": keep, "retracted_dropped": retracted,
"europepmc_not_yet_flagged": lagging}
if __name__ == "__main__":
import sys
out = search(sys.argv[1], int(sys.argv[2]) if len(sys.argv) > 2 else 50)
print(json.dumps({k: v for k, v in out.items() if k != "results"}, indent=2))
for rec in out["results"][:5]:
print(rec["pmid"], rec["open_access"], rec["title"][:80])
Run live on November 7 against semaglutide[tiab] AND "heart failure"[tiab], it reported 431 matches, returned 200 records and dropped none. Pointed at all 113 papers retracted on November 5 and 6, it dropped all 113 and listed one, PMID 41861684, under europepmc_not_yet_flagged. The old "Retraction of Publication"[pt] query raised an error instead of returning a silent zero. One failure it cannot catch is a mistyped field tag, because PubMed gives no warning for one. semaglutide[tiabb] silently searched all fields and returned 6,052 hits against 5,862 for semaglutide[tiab], and our headline query went from 431 to 438. The only trace is query_as_run, which shows [All Fields] where you meant [Title/Abstract], so log it. We also ran offline tests against fixtures shaped like each API's response. If you need more than 9,999 records, wrap pubmed_search in a loop over date slices.
Where You.com fits
You.com is not a bibliographic index. The Research API returns the sources it read and cited, not every paper that matches a query, so it cannot replace the documented database searches a systematic review needs. PRISMA 2020 asks authors to present the full search strategies for all databases. Use the APIs above for that.
Where it helps is the step after retrieval: turning a clinical question into a cited answer. The Research API runs multiple searches, reads the pages, and returns Markdown with inline citations plus a sources array of URLs, titles and snippets. Its source_control.include_domains setting, which is in beta, returns results only from the domains you list, up to 500. The docs do not say whether a domain also matches its subdomains, so the script names the PubMed and PMC hosts explicitly. As of November 2026, a standard request costs $50 per 1,000, so about five cents per answer, with lite at $12 and deep at $100 per 1,000 on the billing page. The script below, saved next to litsearch.py, asks a question within that allowlist, then runs every cited PubMed record through the same retraction check. Keep the User-Agent header: in our tests on November 20, 2026, api.you.com answered Python's default urllib one with a 403 (Cloudflare error 1010).
"""Ask the You.com Research API a clinical question, restricted to literature
domains, then check every cited PubMed record for a retraction flag."""
import json
import os
import re
import urllib.request
from litsearch import pubmed_records
# source_control is in beta. Results come only from the hosts listed here.
LITERATURE_DOMAINS = [
"pubmed.ncbi.nlm.nih.gov", "pmc.ncbi.nlm.nih.gov", "europepmc.org",
"cochranelibrary.com", "nejm.org", "thelancet.com", "jamanetwork.com", "bmj.com",
]
PUBMED_URL = re.compile(r"pubmed\.ncbi\.nlm\.nih\.gov/(\d+)")
def research(question, effort="standard"):
body = {"input": question, "research_effort": effort,
"source_control": {"include_domains": LITERATURE_DOMAINS}}
req = urllib.request.Request(
"https://api.you.com/v1/research", data=json.dumps(body).encode(), method="POST",
headers={"X-API-Key": os.environ["YDC_API_KEY"], "Content-Type": "application/json",
"User-Agent": "my-lit-search/1.0"})
with urllib.request.urlopen(req, timeout=90) as resp: # standard runs about 10 to 30s
return json.loads(resp.read().decode())["output"]
def retracted_citations(output):
pmids = sorted({m.group(1) for s in output.get("sources", [])
for m in [PUBMED_URL.search(s.get("url", ""))] if m})
records = pubmed_records(pmids)
return [{"pmid": r["pmid"], "title": r["title"]} for r in records.values() if r["retracted"]]
if __name__ == "__main__":
out = research("What do randomized trials show about semaglutide in heart failure "
"with preserved ejection fraction? Cite trial publications.")
print(out["content"])
bad = retracted_citations(out)
print("Retracted sources:", bad or "none")
The check covers PubMed URLs only. For PMC or publisher pages, resolve the PMCID or DOI to a PMID before you check. That pairing gives you a synthesized answer to show a user and a deterministic safety check you control. For medical use, the Research API docs also recommend following citation URLs to confirm claims before surfacing them. For more on what a citation does and does not prove, see our guide to LLM citations. For domain and freshness controls in general, see the Research API controls. The same pattern for case law is in our legal research API guide, and a fuller Python walkthrough is in the Research API in Python. You.com's docs also include a biomedical research brief example.
What to test before you ship
- Recall on your queries. Run 20 real user questions through PubMed title-and-abstract search and Europe PMC, and compare the PMID sets, not the counts.
- Silent query failures. Log every
warninglist,errorlistandquerytranslationfrom ESearch. Fail the request when a phrase was dropped, and read the translation for a mistyped field tag, which gets no warning. - Lag for your topic. Take yesterday's PubMed additions and check which ones your secondary sources already have.
- Retraction at cite time. Re-check "Retracted Publication" against PubMed when you show a citation, and count how often Europe PMC or OpenAlex disagree.
- Licenses. Store full text only where the license allows it. Keep abstracts and links for the rest.
- Limits and budget. At $0.001 per search, an OpenAlex free key covers about 1,000 searches a day. PubMed caps each query at 9,999 IDs. At five cents per standard Research API answer, 10,000 questions a month costs about $500.
Start with PubMed for the list and the flag, add Europe PMC for text, add OpenAlex or Semantic Scholar when you need the citation graph, and keep the retraction check in the last step before a user sees an answer.
Frequently Asked Questions
Yes. PubMed's E-utilities are free and need no account. Without an API key you can send 3 requests per second. A free key from your NCBI account raises that to 10, and NCBI asks every client to send tool and email parameters. Each search returns at most 9,999 IDs, so larger pulls have to be split, for example by publication date.
It depends on what PubMed lacks for your job. Europe PMC adds full-text search, open-access article text and preprints, with no key. OpenAlex adds a cross-discipline citation graph and charges against a small free daily budget. Semantic Scholar adds citation data but needs a key for reliable access. Most apps keep PubMed for recall and retraction flags and add one of these.
Fetch the record from PubMed with ESummary or EFetch and look for the publication type "Retracted Publication". Do not search for "Retraction of Publication", which NLM renamed "Retraction Notice" and which now returns zero results. In our November 7, 2026 test of 291 recently retracted papers, PubMed flagged all of them, Europe PMC 290 and OpenAlex 286, so check PubMed when you cite, not just when you index.
Europe PMC's default query searches article full text as well as titles and abstracts, and it also holds preprints. For semaglutide and heart failure it returned 5,628 hits against PubMed's 469. Restricted to titles and abstracts, it returned 399 against PubMed's 431. Compare result sets field by field before deciding which API has better coverage.
Use it for cited answers, not for exhaustive search. The Research API can restrict its sources, in beta, to an allowlist such as PubMed, PMC, Europe PMC and journal sites, and returns Markdown with inline citations for $50 per 1,000 standard requests as of November 2026. It returns the sources it read, not every matching paper, so systematic reviews should still start from PubMed or Europe PMC.
LI Test
LI Test
Share Article:
Related resources.
.webp)
Search 1B+ professional profiles, 100M+ companies with Knowledge Pro
December 2, 2026
Product Updates

Introducing the You.com Extract API: fetch and parse any URL, with 80% higher accuracy on PDFs
November 17, 2026
Product Updates

FDA Approval Monitoring API: Sources, Lag and a Working Pipeline
November 15, 2026
Blog

Equity Research Automation API: What to Automate and How to Check the Numbers
November 14, 2026
Blog

Retail Assortment Monitoring API: How to Track What Competitors Add, Drop, and Carry
November 13, 2026
Blog
