Medicare Hospital Compare Scraper avatar

Medicare Hospital Compare Scraper

Pricing

from $1.60 / 1,000 hospital profiles

Go to Apify Store
Medicare Hospital Compare Scraper

Medicare Hospital Compare Scraper

Retrieve official CMS Hospital Compare profiles with facility details, ownership, emergency services, and overall ratings for research and care-navigation workflows.

Pricing

from $1.60 / 1,000 hospital profiles

Rating

0.0

(0)

Developer

Muhammad Afzal

Muhammad Afzal

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

Retrieve current hospital profiles from CMS’s official Medicare Hospital Compare Hospital General Information dataset. It is intended for researchers, patient-navigation teams, health-care analysts, and applications that need facility location, ownership, emergency-service availability, birthing-friendly designation, and CMS overall hospital ratings in a clean dataset.

The Actor reads the CMS Provider Data Catalog to discover the current official CSV each run, then filters it locally. It does not scrape patient reviews, make clinical recommendations, or return every individual quality-measure score.

Free-plan result limit

Verified Apify free-plan runs return at most 5 hospital records per run, even if maxResults is higher. Upgrade your Apify plan to request more than five records in one run; paid users retain the requested maxResults cap.

What it extracts

FieldDescription
facilityIdCMS six-digit Certification Number
facilityName, address, city, state, zipCodeOfficial CMS facility identity and location
countyOrParish, phoneNumberCMS contact fields when reported
hospitalType, hospitalOwnershipCMS facility classification
emergencyServicesWhether emergency services are reported
birthingFriendlyDesignationCMS birthing-friendly indicator when reported
hospitalOverallRatingCMS overall quality star rating (1–5), or null
sourceUrl, sourceLastModified, scrapedAtTraceability fields

Inputs

Use facilityIds when you already know one or more CMS Certification Numbers. You can instead combine state, city, nameQuery, and overallRating. All supplied filters are combined with AND logic. Results are limited by maxResults.

{
"state": "AL",
"overallRating": "4",
"maxResults": 10
}

The Console prefill retrieves CMS facility 010001. When no filters are supplied, the default run returns the first 10 current CMS hospital profiles. A valid filter with no matching facility succeeds with an empty dataset and a run summary. Bad filter values are rejected before data retrieval. If CMS is unavailable, the Actor uses bounded retries, fails clearly, and does not fabricate records.

Output example

{
"facilityId": "010001",
"facilityName": "SOUTHEAST HEALTH MEDICAL CENTER",
"city": "DOTHAN",
"state": "AL",
"hospitalType": "Acute Care Hospitals",
"emergencyServices": true,
"birthingFriendlyDesignation": true,
"hospitalOverallRating": 4,
"sourceUrl": "https://data.cms.gov/provider-data/.../Hospital_General_Information.csv",
"sourceLastModified": "2026-07-22",
"scrapedAt": "2026-09-02T12:00:00.000Z"
}

The default dataset contains only hospital profiles. OUTPUT and SUMMARY in the default key-value store contain source information, filters, record count, warnings, and expected result events.

Pricing

This Actor uses pay-per-event pricing. These are the current Apify Store event prices:

EventPrice (USD)When it is charged
apify-actor-start$0.00005Actor Start — Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). — Charged once per run.
apify-default-dataset-item$0.001Hospital profile — One CMS Hospital Compare facility profile written to the default dataset.

Apify platform usage for this Actor run is included alongside the event prices above; no separate per-run platform-usage fee is passed to users.

This covers Apify platform usage for this Actor run. Other Apify products or usage outside this Actor run may still follow your account plan.

Reliability and source notes

The source is the public CMS Provider Data Catalog and its Hospital General Information CSV. CMS updates datasets independently, so individual fields and rating availability can change. The Actor discovers the current CSV from CMS metadata instead of hard-coding a dated file URL. It uses bounded result limits and performs no authenticated access, CAPTCHA bypass, or collection of patient data.

CMS information is useful for comparison and research, not medical advice. Confirm time-sensitive care decisions directly with a provider. CMS data is public; attribute CMS as the source and do not imply CMS endorsement of your product or service.