skills/paper-lookup/references/medrxiv.md
medRxiv is a preprint server for health sciences. The API is identical to bioRxiv's API -- same endpoints, same response format -- just use medrxiv as the server parameter.
Important: Like bioRxiv, there is no keyword search. Use Semantic Scholar, OpenAlex, or PubMed for keyword searches of medRxiv content.
https://api.biorxiv.org
(Same base URL as bioRxiv -- the server is specified in the path.)
Use api.biorxiv.org, not api.medrxiv.org. The api.medrxiv.org host answers some paths but
is not equivalent, and its failures are not graceful (verified 2026-07-27):
| Request | Result |
|---|---|
api.medrxiv.org/details/medrxiv/10d | HTTP 500, empty body |
api.medrxiv.org/details/medrxiv/2024-01-01/2024-01-03/0 | 200, but count: 60 -- returns the whole interval, ignoring the documented page size, and omits category from messages |
api.biorxiv.org/details/medrxiv/2024-01-01/2024-01-03/0 | 200, count: 30, full messages block |
Every example below uses api.biorxiv.org.
None required. Fully public API.
GET /details/medrxiv/{interval}/{cursor}/{format}
| Parameter | Values | Description |
|---|---|---|
interval | YYYY-MM-DD/YYYY-MM-DD | Date range (inclusive) |
N (integer) | N most recent preprints | |
Nd (integer + "d") | Last N days | |
cursor | Integer (default 0) | Absolute record offset. /details/ returns 30 per page, so step by 30 -- see Pagination. |
format | json (default), xml | Response format |
Optional: ?category=cardiovascular%20medicine (use URL-encoding for spaces)
Examples:
https://api.biorxiv.org/details/medrxiv/2024-01-01/2024-01-31/0
https://api.biorxiv.org/details/medrxiv/5
https://api.biorxiv.org/details/medrxiv/10d
GET /details/medrxiv/{doi}/na/{format}
Example:
https://api.biorxiv.org/details/medrxiv/10.1101/2021.04.29.21256344/na/json
GET /pubs/medrxiv/{interval}/{cursor}
GET /pubs/medrxiv/{doi}/na
Links preprints to their published journal versions. Accepts both preprint DOI and published DOI.
Same as bioRxiv:
{
"messages": [{
"status": "ok",
"category": "all",
"interval": "2024-01-01:2024-01-03",
"funder": "all",
"cursor": 0,
"count": 30,
"count_new_papers": "46",
"total": "60"
}],
"collection": [{
"title": "Paper title...",
"authors": "Surname, A.; Surname, B.",
"author_corresponding": "Full Name",
"author_corresponding_institution": "Institution",
"doi": "10.1101/2021.04.29.21256344",
"date": "2021-05-03",
"version": "1",
"type": "PUBLISHAHEADOFPRINT",
"license": "cc_by_nc_nd",
"category": "cardiovascular medicine",
"abstract": "Full abstract text...",
"published": "10.1371/journal.pone.0256482",
"server": "medRxiv"
}]
}
30 results per page on /details/, 100 on /pubs/ -- same as bioRxiv, and the same silent
hazard: cursor is an absolute record offset, out-of-step values return HTTP 200, and stepping a
/details/ walk by 100 skips records 30-99 of every hundred while looking successful. Step by the
count the response reported. See the Pagination and messages sections of
references/biorxiv.md for the full behavior, including why total and count_new_papers differ
and which endpoints expose no counts at all.
scripts/paginate.py --api medrxiv implements the walk with the correct step.
No documented rate limits. No authentication required.
addiction-medicine, allergy-and-immunology, anesthesia, cardiovascular-medicine, dentistry-and-oral-medicine, dermatology, emergency-medicine, endocrinology, epidemiology, forensic-medicine, gastroenterology, genetic-and-genomic-medicine, geriatric-medicine, health-economics, health-informatics, health-policy, health-systems-and-quality-improvement, hematology, hiv-aids, infectious-diseases, intensive-care-and-critical-care-medicine, medical-education, medical-ethics, nephrology, neurology, nursing, nutrition, obstetrics-and-gynecology, occupational-and-environmental-health, oncology, ophthalmology, orthopedics, otolaryngology, pain-medicine, palliative-medicine, pathology, pediatrics, pharmacology-and-therapeutics, primary-care-research, psychiatry-and-clinical-psychology, public-and-global-health, radiology-and-imaging, rehabilitation-medicine-and-physical-therapy, respiratory-medicine, rheumatology, sexual-and-reproductive-health, sports-medicine, surgery, toxicology, transplantation, urology