The Hospital API for developers
Find US hospitals by address — with bed counts, trauma level, ownership, and CMS Certification Numbers. Plus police, fire, and EMS in the same API. Built on federal HIFLD and CMS data. Clean JSON, no scraping.
curl "https://api.publicsafetyapi.dev/v1/stations/nearby?address=Houston+TX&type=hospital&radius_miles=10" \
-H "X-API-Key: psk_live_your_api_key"{
"data": [{
"name": "Memorial Hermann-Texas Medical Center",
"entityType": "hospital",
"beds": 1083,
"traumaLevel": "I",
"ownershipType": "Non-profit",
"cmsCcn": "450358",
"distanceMiles": 2.1
}],
"meta": { "creditsUsed": 1, "creditsRemaining": 499 }
}What you get
Why publicsafetyapi.dev
HIFLD and the CMS Provider of Services file are public — but they ship as GIS exports and wide government CSVs with no geocoded address lookup and no clean merge. We normalize and join them, add spatial search, and serve hospitals (with CMS enrichment), police, fire, and EMS as one API. Address lookup and the full schema are on the free tier.
See pricing →Frequently asked questions
How do I find hospitals near an address?
Call GET /v1/stations/nearby?address=…&type=hospital and the API geocodes the address and returns the nearest hospitals ordered by distance, with beds, trauma level, ownership, and CMS Certification Number.
What data sources power the hospital data?
Hospital records come from HIFLD (DHS/CISA) merged with the CMS Provider of Services file, which adds the CMS Certification Number, bed counts, and ownership type. All public federal data.
Does it cover police, fire, and EMS too?
Yes — the same API serves police stations, fire stations, and EMS locations nationwide, with a jurisdiction lookup for which agency covers a given point.
Is there a free tier?
Yes — 500 requests/month, no credit card, with full access to every endpoint and field.
How many hospitals are covered?
About 7,500 hospitals across the US, plus ~23,000 police stations, ~52,000 fire stations, and ~43,000 EMS locations.
Start with 500 free requests/month
No credit card. Hospitals, police, fire, EMS — full schema.
Get your API key