
Hospitals API
US hospital directory for 5,400+ Medicare-certified hospitals, built from official CMS Hospital Compare data enriched with geographic and infrastructure attributes: name, full address, county, phone, hospital type (acute care, critical access, psychiatric, childrens...), ownership, emergency services and birthing-friendly flags, CMS overall star rating (1-5) with mortality, safety, readmission, patient-experience and timeliness measure-group summaries β plus coordinates, bed counts, trauma-center level, helipad flag and website for the ~86% of hospitals geo-matched against the DHS HIFLD infrastructure layer. Search by name or city, filter by state, city, zip, county, type, ownership, emergency services, minimum star rating or trauma centers; find hospitals near any coordinate sorted by distance; aggregate states (with average rating) and hospital types. Self-hosted dataset refreshed daily from CMS β no third-party calls at request time.
{
"total": 5419,
"count": 1,
"results": [
{
"ccn": "050625",
"name": "CEDARS-SINAI MEDICAL CENTER",
"address": {
"city": "LOS ANGELES",
"state": "CA"
},
"type": "Acute Care Hospitals",
"emergencyServices": true,
"overallRating": 5,
"beds": 886
}
]
}Why developers pick this API
Production-ready
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 20+ APIs
Your DataAndAPIs subscription unlocks every API on the platform β anime, finance, sports, and more.
Code snippets
One install. Every endpoint.
No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.
- Fully typed responses β auto-completion in your IDE
- Tracks the API in lockstep β new endpoints land same day
- One key works across 20+ APIs on the platform
import axios from 'axios';
const { data } = await axios.get(
'{API_URL}',
{ headers: { 'X-Api-Key': process.env.API_KEY } }
);π Subscribe to unlock the live API URL
Developer playground
Explore the endpoints
Browse request parameters and inspect live example responses.
Available Endpoints
Request Parameters
API URL
Please subscribe to see the API URL
Headers
Please subscribe to see the actual API URL
import axios from 'axios';
const url = '{API_URL}';
const { data } = await axios.get(url, {
headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});Pricing
One subscription. Every API.
Tokens unlock this API and 20+ others on DataAndAPIs. Switch APIs any time β we promote.
STARTER
25,000 tokens / month
- Access to all APIs
- Tokens reset monthly
- Email support
PRO
100,000 tokens / month
- Access to all APIs
- Tokens reset monthly
- Priority email support
ULTRA
1,000,000 tokens / month
- Access to all APIs
- Tokens reset monthly
- Priority support
Need higher volume, dedicated infra, or a custom contract? Talk to sales β
Common questions
The things that actually block the upgrade.
Ship Hospitals API this afternoon.
500 free tokens. No card. Plus 20+ other APIs on the same key.
