Skip to content

Published articles

client.published reads the pubs, publisher, and pub routes and returns PublishedArticle models, 100 records per page. Each record links one preprint to the journal article it became, with preprint_doi, published_doi, published_journal, preprint_title, preprint_category, and the dates of both. The search_by_publisher and search_biorxiv routes cover bioRxiv only. Later blocks reuse the client from the first block.

from bibliofabric.rxiv import RxivClient

client = RxivClient()

Look up where a preprint was published

by_doi() accepts both the preprint DOI and the published DOI, plus a doi.org or bioRxiv/medRxiv content page URL, and returns the link records. A DOI without a link raises NotFoundError.

page = await client.published.search("2026-11-01", "2026-11-01")
sample = page.results[0]
links = await client.published.by_doi(sample.published_doi)
print(
    links[0].preprint_doi, "->", links[0].published_doi, "|", links[0].published_journal
)
10.64898/2026.03.19.712977 -> 10.1111/pce.71008 | Plant, Cell & Environment

by_doi() queries one DOI and does not fall back to the other form, so use a DOI the API resolves. bioRxiv posts from 2026 on carry new 10.64898/... preprint DOIs, and some of those resolve only through the published DOI.

List publications in a date window

search() returns one page of the preprints published as articles between two dates; iterate() and collect() walk the whole window:

page = await client.published.search("2026-11-01", "2026-11-01")
print(page.total)
1

List one publisher's articles

search_by_publisher(prefix, start, end) lists bioRxiv preprints published under a publisher DOI prefix, and iterate_by_publisher() walks the whole range:

page = await client.published.search_by_publisher(
    "10.15252", "2026-11-01", "2026-11-03"
)
print(page.total, len(page.results))
None 100

The total field is absent on this route, so page.total is None; read page.results and iterate for more.

The bioRxiv-only pub route and the newest articles

search_biorxiv(start, end) reads the older pub route, which returns fewer fields. recent(posts= or days=) wraps its cursorless forms for the most recently published articles:

recent = await client.published.recent(posts=3)
print([record.published_doi for record in recent.results])
['10.1186/s12951-022-01663-8', '10.1016/j.isci.2026.117277', '10.1002/ctm2.70804']

The recent forms take no cursor, so the page carries next_cursor=None and total=None. Errors that the API reports with HTTP 200 raise APIError; see upstream quirks.