# medRxiv preprint API

Get medRxiv Preprint data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as doi, output, and retrieve structured data including preprint DOI, preprint title, resolved preprint version, reported version count, and historical version identifier for bibliographic linking, and literature discovery, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/medrxiv/medrxiv-preprint-api/866b13e0-1db0-4488-b52c-6920c02f0830/
API ID: 866b13e0-1db0-4488-b52c-6920c02f0830
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/medrxiv/v1/preprint
Page update time: 2026-12-03T02:45:22.561Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:45:21.630Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## medRxiv Preprint API

doi accepts a preprint DOI or medrxiv.org link. The response retains the resolved preprint version, version\_count, versions, first\_posted and source licence metadata. published\_doi and publication link any available journal record separately; a preprint DOI and its publication DOI identify different source records.

## What You Can Build

- **Bibliographic linking**: Retain source identities and version context when connecting research catalogue records.
- **Literature discovery**: Use returned titles and source links to select records for further literature review.

## Returned Data

| Field | Meaning |
| --- | --- |
| `doi` | Preprint DOI |
| `title` | Preprint title |
| `version` | Resolved preprint version |
| `version_count` | Reported version count |
| `versions[].version` | Historical version identifier |
| `published_doi` | Linked publication DOI when available |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "medRxiv preprint API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "doi": {
          "type": "string",
          "description": "Preprint DOI or a medrxiv.org link."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "doi"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "abstract": {
      "type": "string"
    },
    "attribution": {
      "type": "string"
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cached": {
      "type": "boolean"
    },
    "category": {
      "type": "string"
    },
    "corresponding_author": {
      "type": "string"
    },
    "corresponding_institution": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "date": {
      "type": "string"
    },
    "doi": {
      "type": "string"
    },
    "first_posted": {
      "type": "string"
    },
    "jats_xml_url": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "publication": {
      "type": "object",
      "properties": {
        "preprint_authors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "preprint_category": {
          "type": "string"
        },
        "preprint_date": {
          "type": "string"
        },
        "preprint_doi": {
          "type": "string"
        },
        "preprint_title": {
          "type": "string"
        },
        "preprint_url": {
          "type": "string"
        },
        "published_citation_count": {
          "type": "null"
        },
        "published_date": {
          "type": "string"
        },
        "published_doi": {
          "type": "string"
        },
        "published_journal": {
          "type": "string"
        },
        "published_url": {
          "type": "string"
        }
      }
    },
    "published_doi": {
      "type": "string"
    },
    "server": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "version": {
      "type": "integer"
    },
    "version_count": {
      "type": "integer"
    },
    "versions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "abstract": {
            "type": "string"
          },
          "authors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "type": "string"
          },
          "corresponding_author": {
            "type": "string"
          },
          "corresponding_institution": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "doi": {
            "type": "string"
          },
          "jats_xml_url": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "published_doi": {
            "type": "string"
          },
          "server": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/medrxiv/v1/preprint?doi=10.1101%2F2020.02.18.20024364&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "abstract": "BACKGROUNDThe outbreak of coronavirus disease 2019 (COVID-19) caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) has pos…",
  "attribution": "Data: medRxiv (Cold Spring Harbor Laboratory, BMJ, Yale)",
  "authors": [
    "Diao, B.",
    "Wang, C.",
    "… 12 more"
  ],
  "cached": false,
  "category": "infectious diseases",
  "corresponding_author": "Yongwen Chen",
  "corresponding_institution": "Institute of Immunology, PLA, Third Military Medical University, Chongqing, China",
  "credits_used": 1,
  "date": "2020-02-20",
  "doi": "10.1101/2020.02.18.20024364",
  "first_posted": "2020-02-20",
  "jats_xml_url": "https://www.medrxiv.org/content/early/2020/02/20/2020.02.18.20024364.source.xml",
  "license": "cc_by_nc_nd",
  "publication": {
    "preprint_authors": [
      "Diao, B.",
      "Wang, C.",
      "… 12 more"
    ],
    "preprint_category": "infectious diseases",
    "preprint_date": "2020-02-20",
    "preprint_doi": "10.1101/2020.02.18.20024364",
    "preprint_title": "Reduction and Functional Exhaustion of T Cells in Patients with Coronavirus Disease 2019 (COVID-19)",
    "preprint_url": "https://www.medrxiv.org/content/10.1101/2020.02.18.20024364",
    "published_citation_count": null,
    "published_date": "2020-05-01",
    "published_doi": "10.3389/fimmu.2020.00827",
    "published_journal": "Frontiers in Immunology",
    "published_url": "https://doi.org/10.3389/fimmu.2020.00827"
  },
  "published_doi": "10.3389/fimmu.2020.00827",
  "server": "medRxiv",
  "title": "Reduction and Functional Exhaustion of T Cells in Patients with Coronavirus Disease 2019 (COVID-19)",
  "type": "PUBLISHAHEADOFPRINT",
  "url": "https://www.medrxiv.org/content/10.1101/2020.02.18.20024364v1",
  "version": 1,
  "version_count": 1,
  "versions": [
    {
      "abstract": "BACKGROUNDThe outbreak of coronavirus disease 2019 (COVID-19) caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) has pos…",
      "authors": [
        "Diao, B.",
        "Wang, C.",
        "… 12 more"
      ],
      "category": "infectious diseases",
      "corresponding_author": "Yongwen Chen",
      "corresponding_institution": "Institute of Immunology, PLA, Third Military Medical University, Chongqing, China",
      "date": "2020-02-20",
      "doi": "10.1101/2020.02.18.20024364",
      "jats_xml_url": "https://www.medrxiv.org/content/early/2020/02/20/2020.02.18.20024364.source.xml",
      "license": "cc_by_nc_nd",
      "published_doi": "10.3389/fimmu.2020.00827",
      "server": "medRxiv",
      "title": "Reduction and Functional Exhaustion of T Cells in Patients with Coronavirus Disease 2019 (COVID-19)",
      "type": "PUBLISHAHEADOFPRINT",
      "url": "https://www.medrxiv.org/content/10.1101/2020.02.18.20024364v1",
      "version": 1
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Can I use the journal DOI as the preprint DOI?
Use the preprint DOI or source preprint URL; retain the linked published_doi separately.

### How do I distinguish first posting from a version date?
Keep first_posted, date and version with their source meanings.

### Does every preprint have a journal link?
No. published_doi or publication can be missing.

### Does this download JATS XML?
It returns metadata and an available jats_xml_url, not the linked XML file bytes.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/medrxiv/medrxiv-preprint-api/866b13e0-1db0-4488-b52c-6920c02f0830/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
