alterlab-biorxiv
bioRxiv Database
Overview
Python tooling over the keyless bioRxiv API for searching and retrieving life-sciences preprints. Searches by keyword, author, date range, and category, returning structured JSON (titles, abstracts, DOIs, authors, versions), and downloads full-text PDFs.
For published, peer-reviewed literature use alterlab-pubmed; for computer-science / physics / math preprints use alterlab-arxiv. bioRxiv covers biology subjects only. The same API also serves medRxiv (swap biorxiv for medrxiv in the endpoint path, e.g. /details/medrxiv/2025-03-21/2025-03-28?category=cardiovascular%20medicine); the bundled script targets bioRxiv, so query medRxiv with curl/requests directly.
How it works (and its limits)
The bioRxiv /details endpoint returns preprints by date range, 30 records per page. It accepts a server-side subject-category filter (?category=cell_biology), but has no keyword or author filter. So this tool:
- Paginates the date range (following the cursor until all records are retrieved), passing
--categoryto the server so only that subject is fetched, then - Filters client-side by keyword (substring over title/abstract).
Author search does not need that scan. By default --author asks Europe PMC, which indexes bioRxiv preprints and filters by author on the server, keylessly. The query is AUTH:"<name>" AND PUBLISHER:"bioRxiv" within the date range. A year of one author's preprints takes about two seconds; scanning a year of bioRxiv would take about 1,400 requests. Europe PMC can lag bioRxiv by a few days. --author-source scan forces the old client-side scan. The scan is also used when you add --category (Europe PMC has no bioRxiv categories), and when Europe PMC cannot be reached, with a note on stderr.
Implication: for keyword and date-range searches, a wide date range means many API calls and a large download. Keep ranges as tight as the question allows, and use --category (cuts API calls) and --limit to bound the work.