Hospital directory API
Find a hospital by name, country, type, region or city. Every country shares one set of fields, and country-only details such as a star rating or parent trust sit under local.
GET /v1/hospitals1 creditAbout $0.001Try it
curl 'https://api.apifor.dev/v1/hospitals?country=US®ion=AL&q=medical' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": "US-010001",
"country_code": "US",
"name": "Southeast Health Medical Center",
"type": "Acute Care Hospitals",
"status": "open",
"address": "1108 Ross Clark Circle",
"city": "Dothan",
"region": "AL",
"postal_code": "36301",
"lat": null,
"lng": null,
"phone": "(334) 793-8701",
"website": null,
"updated_at": "2026-11-30",
"local": {
"country": "US",
"ccn": "010001",
"county": "Houston",
"ownership": "Government - Hospital District or Authority",
"emergency_services": true,
"overall_rating": 4
}
}
],
"meta": {
"total": 1,
"page": 1,
"limit": 50,
"total_pages": 1,
"coverage": [
"ID",
"CA"
],
"attribution": {
"source": "https://data.cms.gov/provider-data/dataset/xubh-q36u",
"licence": "Public domain (US government work)",
"license": "Public domain (US government work)",
"license_url": "https://data.cms.gov/provider-data/dataset/xubh-q36u",
"source_url": "https://data.cms.gov/provider-data/dataset/xubh-q36u",
"attribution_page": "https://apifor.dev/sources",
"notice": "Source: CMS Hospital General Information."
},
"sources": [
{
"country": "US",
"name": "CMS Hospital General Information",
"url": "https://data.cms.gov/provider-data/dataset/xubh-q36u",
"licence": "Public domain (US government work)"
}
]
}
}A real response from our OpenAPI file, with long lists and strings shortened.
Endpoints and price
| Endpoint | Credits | About |
|---|---|---|
GET /v1/hospitals | 1 credit | $0.001 |
GET /v1/hospitals/{id} | 1 credit | $0.001 |
GET /v1/hospitals/coverage (Free) | Free | $0 |
USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.
Coverage today
Canada, Indonesia, United Kingdom and United States.
Leave country out to get every covered country, or pass one to narrow it.
Sources, row counts and country-only fields per country: GET /v1/hospitals/coverage, free with your API key. How coverage works
Limits
- Some sources list trust sites, clinics and units, not just hospitals. type says what each row is.
- Some countries have no coordinates, so lat and lng are null.
- Up to 200 rows per page, 10,000 rows deep.
Questions
What happened to the hospitals dataset?
It is now this service, at the same path and the same 1 credit per call. Existing rows keep their ids and fields.
How fresh is it?
Each row has updated_at. Some sources refresh weekly.