Catalog/ref-blood-type

Reference

Blood-type compatibility API

Resolve ABO/Rh red-cell transfusion compatibility for a donor and/or recipient: which types they can donate to, which they can receive from, the donor-to-recipient verdict, and universal-donor (O-) / universal-recipient (AB+) flags — the value-add being the antigen-based compatibility logic LLMs get backwards. Answers 'can O- donate to A+', 'who can receive AB+ blood', 'is this donor-recipient pair compatible', 'is O- a universal donor'.

Price$0.01per request
MethodPOST
Route/v1/ref/blood-type
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
refbloodtransfusiondonorrecipientaborhcompatibility
API URLhttps://x402.hexl.dev/v1/ref/blood-type
Integration docs
Example request
{
  "donor": "O-",
  "recipient": "A+"
}
Example response
{
  "donor": "O-",
  "donorIsUniversalDonor": true,
  "canDonateTo": [
    "O-",
    "O+",
    "A-",
    "A+",
    "B-",
    "B+",
    "AB-",
    "AB+"
  ],
  "recipient": "A+",
  "recipientIsUniversalRecipient": false,
  "canReceiveFrom": [
    "O-",
    "O+",
    "A-",
    "A+"
  ],
  "compatible": true
}
Input schema
{
  "type": "object",
  "properties": {
    "donor": {
      "type": "string",
      "examples": [
        "O-"
      ]
    },
    "recipient": {
      "type": "string",
      "examples": [
        "A+"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}