Skip to content

Preprint details

client.details reads the details routes and returns Preprint models, 30 records per page. A Preprint carries doi, title, authors (one string with ; between names), author_list (the split list), date, version, category, abstract, license, published_doi, and funder. Later blocks reuse the client from the first block.

from bibliofabric.rxiv import RxivClient

client = RxivClient()

Get every version of one preprint

by_doi() returns all versions, oldest first. It accepts the preprint DOI, a doi.org URL, and the content page URL of bioRxiv or medRxiv with its version suffix (for example https://www.biorxiv.org/content/10.1101/339747v1); the client strips the suffix because the API answers a version-suffixed DOI with DOI not recognizable. An unknown DOI raises NotFoundError. The DOI is percent-escaped in the path, so DOIs with parentheses also work.

versions = await client.details.by_doi("10.1101/339747")
print([(v.version_number, v.date) for v in versions])
[('1', '2018-06-05'), ('2', '2019-02-07'), ('3', '2019-02-07'), ('4', '2019-05-10')]

Pass server="medrxiv" to look on medRxiv instead of bioRxiv. A bioRxiv or medRxiv content URL names its server, so server may stay unset for those.

List posts in a date window

search() returns one page of the versions posted between two dates. Dates are YYYY-MM-DD strings or date and datetime objects; a date that does not exist raises ConfigurationError before a request. category filters by subject category, written with spaces or underscores (cell biology). page.next_cursor is the offset of the next page.

page = await client.details.search("2026-11-01", "2026-11-01", server="medrxiv")
print(page.total, "|", page.results[0].title[:60])
43 | Which Attention Helps? A Slide-Level Ablation of Attention-Augmented CN...

iterate() yields every version in the window, one page of 30 per request, and collect() gathers them into a list bounded by limit:

preprints = await client.details.collect(
    "2026-11-01", "2026-11-01", server="medrxiv", limit=3
)
print([(p.doi, p.category, p.published_doi) for p in preprints])
[('10.64898/2026.04.21.26351441', 'oncology', None), ('10.64898/2026.10.28.26366687', 'genetic and genomic medicine', None), ('10.64898/2026.10.28.26366716', 'cardiovascular medicine', None)]

published_doi is None while the preprint has not appeared in a journal yet; see published articles for the links.

Get the newest posts

recent() wraps the two cursorless upstream forms: posts=N (the N newest versions, which answers in one page of up to 30) and days=N (everything of the last N days, which can answer hundreds of records at once). These forms take no cursor, so the page carries next_cursor=None and total=None.

recent = await client.details.recent(posts=5)
print(len(recent.results), recent.next_cursor)
5 None

The funder declarations on each preprint are listed in funders. Errors that the API reports with HTTP 200 raise APIError; see upstream quirks.