CMS Hospital Compare Scraper avatar

CMS Hospital Compare Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
CMS Hospital Compare Scraper

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

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

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

ModeDescription
searchHospitalsSearch hospitals by name or city keyword, optionally filtered by state
hospitalRatingsFetch hospitals filtered by minimum star rating
hospitalMeasuresFetch hospital quality measure data
searchByStateFetch 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

FieldTypeDescription
modestring (required)One of searchHospitals, hospitalRatings, hospitalMeasures, searchByState
statestring2-letter US state code (e.g. CA, TX, NY). Required for searchByState
searchQuerystringHospital name or city keyword
hospitalTypestringFilter by type: Acute Care Hospitals, Critical Access Hospitals, etc.
ownershipTypestringFilter by ownership type
minRatinginteger (1-5)Only return hospitals at or above this star rating
emergencyServicesOnlybooleanOnly return hospitals with emergency services
maxItemsintegerMax 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.