/v1/hospital
Single hospital by CMS facility id
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/hospitals-api/v1/hospital" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hospitals-api/v1/hospital", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hospitals-api/v1/hospital");
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/hospitals-api/v1/hospital",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"id": "050441",
"zip": "94305",
"city": "STANFORD",
"name": "STANFORD HEALTH CARE",
"type": "Acute Care Hospitals",
"phone": "(650) 723-4000",
"state": "CA",
"county": "SANTA CLARA",
"address": "300 PASTEUR DRIVE",
"ownership": "Voluntary non-profit - Private",
"overall_rating": 5,
"emergency_services": true
},
"meta": {
"timestamp": "2026-05-30T22:48:26.442Z",
"request_id": "7e441492-3532-41b1-8195-465afe64337b"
},
"status": "ok",
"message": "Hospital retrieved",
"success": true
}