CMS Hospital Compare Scraper
Pricing
from $3.00 / 1,000 results
CMS Hospital Compare Scraper
Scrape CMS Hospital Compare data via the free data.cms.gov public API. Search hospitals by state or name, get ratings, quality measures, and contact info for all US hospitals. No API key required.
Pricing
from $3.00 / 1,000 results
Rating
0.0
(0)
Developer
Crawler Bros
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Share
Scrape US hospital data from the CMS Hospital Compare program via the free data.cms.gov public API. No API key, login, or proxy required.
What data does it collect?
Every US hospital registered with CMS, including:
- Hospital name, address, city, state, ZIP code, county
- Phone number
- Hospital type (Acute Care, Critical Access, Children's, Psychiatric, Veterans)
- Ownership type (Non-profit, Proprietary, Government, etc.)
- Overall star rating (1–5 stars, when available)
- Emergency services availability
- EHR/interoperability compliance
Modes
| Mode | Description |
|---|---|
searchHospitals | Search hospitals by name or city keyword, optionally filtered by state |
hospitalRatings | Fetch hospitals filtered by minimum star rating |
hospitalMeasures | Fetch hospital quality measure data |
searchByState | Fetch all hospitals in a specific US state |
Input
{"mode": "searchHospitals","state": "CA","searchQuery": "General Hospital","hospitalType": "Acute Care Hospitals","ownershipType": "","minRating": 3,"emergencyServicesOnly": false,"maxItems": 20}
Input fields
| Field | Type | Description |
|---|---|---|
mode | string (required) | One of searchHospitals, hospitalRatings, hospitalMeasures, searchByState |
state | string | 2-letter US state code (e.g. CA, TX, NY). Required for searchByState |
searchQuery | string | Hospital name or city keyword |
hospitalType | string | Filter by type: Acute Care Hospitals, Critical Access Hospitals, etc. |
ownershipType | string | Filter by ownership type |
minRating | integer (1-5) | Only return hospitals at or above this star rating |
emergencyServicesOnly | boolean | Only return hospitals with emergency services |
maxItems | integer | Max records to return (default: 20, max: 5000) |
Output
{"providerNumber": "050001","hospitalName": "UCLA Medical Center","address": "757 Westwood Plaza","city": "Los Angeles","state": "CA","zipCode": "90095","countyName": "Los Angeles","phoneNumber": "3108256301","hospitalType": "Acute Care Hospitals","ownershipType": "Voluntary non-profit - Private","emergencyServices": true,"rating": 5,"dataSource": "CMS Hospital Compare (data.cms.gov)","recordType": "hospital","scrapedAt": "2024-01-15T10:30:00+00:00"}
FAQs
Is this free to use? Yes. The CMS data.cms.gov API is completely free and public with no rate limits or registration.
How current is the data? CMS updates hospital data periodically (typically quarterly). The data reflects the latest published CMS Hospital Compare dataset.
How many hospitals are in the dataset? CMS covers approximately 5,000+ US hospitals across all 50 states and territories.
Does it require login or cookies? No. This actor uses only the public CMS data API.
What does the star rating mean? CMS assigns 1–5 overall star ratings based on 57 quality measures across five care areas: mortality, safety of care, readmission, patient experience, and timely/effective care.
Can I get all hospitals in a state?
Yes — use mode=searchByState with the 2-letter state code.
Data Source
Data is sourced from the CMS Provider Data Catalog — the same source powering medicare.gov/care-compare. This is a publicly accessible US government dataset.