Search Preprints by Keyword
biorxiv_search_preprintsSearch preprints by keyword and/or author using EuropePMC for relevance ranking, then enrich matching DOIs with full bioRxiv/medRxiv metadata. Provide a keyword query, an author name, or both — author maps to an EuropePMC AUTH: field query and is ANDed with the keyword query. Covers both servers by default. EuropePMC indexes new preprints within 1–2 days of posting; for preprints posted within the last day, prefer biorxiv_list_recent. Abstracts are included by default; include_abstract: false omits them from every result for a response about a third the size, and biorxiv_get_preprint returns the abstract for up to 10 DOIs per call. A EuropePMC rate limit (HTTP 429) fails the call with a retryable rate_limited error carrying the wait in seconds — a rate-limited metadata enrichment does not, and instead marks the affected record enrichment_error: "rate_limited".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to return (1–100). Defaults to 25. | |
| query | No | Keyword search query. Optional when author is provided — supply at least one of query or author. | |
| author | No | Author name to filter by, mapped to an EuropePMC AUTH:"…" field query and ANDed with the keyword query. Optional when query is provided (e.g. "Jennifer Doudna"). | |
| server | No | Server scope for enrichment. "both" checks all matching DOIs on both servers. | both |
| date_to | No | Latest first-publication date filter (YYYY-MM-DD). | |
| date_from | No | Earliest first-publication date filter (YYYY-MM-DD). | |
| cursor_mark | No | Opaque page token for ranked EuropePMC results. Omit for the first page; pass the nextCursorMark returned by a prior call to fetch the next page. Pages through the same ranked list rather than raising limit. A token EuropePMC does not recognize fails with invalid_cursor_mark. | |
| include_abstract | No | Include each result's abstract. Defaults to true. false omits the abstract from every result, enriched and EuropePMC-fallback alike, and keeps every other field. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Present when zero results are returned: on a cursor_mark page past the last match, says the list is exhausted; otherwise echoes the query and suggests how to broaden it. Also present when abstracts for results shown with EuropePMC metadata only could not be retrieved, which leaves those results without one. | |
| preprints | No | Search results, ranked by EuropePMC relevance. | |
| queryEcho | No | Echo of the parameters used to produce this result set — lets callers verify what was sent. | |
| totalCount | No | Total preprints matching the query in EuropePMC (hitCount) — the true upstream grand total, not the number of results returned. | |
| nextCursorMark | No | Opaque token for the next page of ranked results. Present only when more results exist beyond this page; pass it back as cursor_mark. Absent on the last page. | |
| partial_results | No | True when one or more DOIs failed bioRxiv enrichment and fell back to EuropePMC metadata. |