Naar de inhoud
GET /v1/hospital

Single hospital by CMS facility id

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/hospitals-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}