/v1/diagnostic
Diagnostic test
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/classifier-api/v1/diagnostic" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/classifier-api/v1/diagnostic", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/classifier-api/v1/diagnostic");
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/classifier-api/v1/diagnostic",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"npv": 0.999439,
"ppv": 0.087558,
"note": "Bayesian PPV/NPV combine the test's sensitivity/specificity with the prevalence (pre-test probability). LR+ = sens/(1−spec).",
"inputs": {
"prevalence": 0.01,
"sensitivity": 0.95,
"specificity": 0.9
},
"diagnostic_odds_ratio": 171,
"likelihood_ratio_negative": 0.055556,
"likelihood_ratio_positive": 9.5
},
"meta": {
"timestamp": "2026-06-05T03:09:02.607Z",
"request_id": "7bb04f2e-9255-4a0f-a2d0-c40eeb1e85d0"
},
"status": "ok",
"message": "Diagnostic test",
"success": true
}