/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/bloodtype-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bloodtype-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bloodtype-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/bloodtype-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Educational only. Educational only — actual transfusion requires laboratory cross-matching and clinical judgement. Not medical advice.",
"types": [
"O-",
"O+",
"A-",
"A+",
"B-",
"B+",
"AB-",
"AB+"
],
"service": "bloodtype",
"endpoints": {
"/v1/info": "Antigens, antibodies, who a type can give to / receive from, and frequency.",
"/v1/donors": "All compatible donor types for a recipient (red cells or plasma).",
"/v1/compatibility": "Whether a donor can give to a recipient (red cells and plasma)."
},
"description": "ABO + Rh blood-type compatibility: red-cell and plasma donor/recipient rules, antigens/antibodies and population frequency."
},
"meta": {
"timestamp": "2026-06-04T01:59:17.244Z",
"request_id": "5ab2bf1a-af68-45c1-b484-b979232af363"
},
"status": "ok",
"message": "Meta",
"success": true
}