Medicare Care Compare Scraper avatar

Medicare Care Compare Scraper

Pricing

from $5.50 / 1,000 results

Go to Apify Store
Medicare Care Compare Scraper

Medicare Care Compare Scraper

Scrapes hospital and nursing home quality data from Medicare.gov Care Compare. Returns star ratings, quality measures, staffing data, and inspection results as flat rows.

Pricing

from $5.50 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

13 hours ago

Last modified

Share

ParseForge

Medicare Care Compare Scraper

Scrape Medicare Care Compare data for hospitals and nursing homes across the United States. Get overall star ratings, quality measures, staffing data, and inspection results in a structured dataset. Export to CSV, JSON, Excel, or XML.

Medicare.gov's Care Compare tool lets you look up one facility at a time, but comparing hundreds of hospitals or nursing homes means hours of manual clicking. This Actor reads the public quality data directly, filters by state, overall rating, and facility type, and returns every match in one flat table. No API key or government registration required.

Who uses itWhat they scrape Medicare.gov Care Compare for
Healthcare consultantsBenchmark hospital performance across a state or region for client reports.
Journalists and researchersInvestigate nursing home inspection records and staffing levels for public interest stories.
Senior care placement agenciesBuild a searchable database of top-rated nursing homes filtered by location and quality.
Insurance analystsCompare hospital quality scores to inform network adequacy and provider contracting.
Data scientistsFeed Medicare quality datasets into predictive models for health outcomes research.

What it does

This Actor collects hospital and nursing home quality data from Medicare Care Compare and returns each facility as a flat row with star ratings, quality measures, and location details.

  • πŸ₯ Two facility types: Choose hospitals or nursing homes, each with its own quality measures and rating categories.
  • πŸ“ State-level filtering: Narrow results to a single state using its two-letter abbreviation, or leave blank to scrape nationwide.
  • ⭐ Rating threshold: Set a minimum overall star rating from 1 to 5, so only top-performing facilities reach your dataset.
  • 🏷️ Hospital type filter: For hospitals, restrict results to Acute Care, Critical Access, Children's, or Psychiatric facilities.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Medicare.gov Care Compare data

πŸ“Š Build a regional hospital quality dashboard.

A healthcare consultant scrapes all Acute Care Hospitals in Texas with a 4-star rating or higher to populate a client-facing performance dashboard.

πŸ” Investigate nursing home inspection histories.

A journalist collects nursing home data for an entire state, filtering by low overall ratings to identify facilities with repeated health inspection deficiencies.

πŸ‘΄ Create a senior living referral list.

A placement agency scrapes all nursing homes in Florida rated 4 stars and above, then combines the data with location details to build a curated referral directory.

πŸ“ˆ Analyze quality trends across health systems.

A data scientist collects hospital quality measures nationwide, groups them by health system, and tracks star rating distributions over time for a research paper.

πŸ₯ Compare critical access hospitals in rural areas.

A policy analyst scrapes Critical Access Hospitals across multiple Midwestern states to compare staffing levels and patient survey results for a rural health initiative.

Why choose this scraper

What you get
Public CMS dataThe same quality measures and star ratings displayed on Medicare.gov Care Compare.
Fixed flat schemaEvery facility returns the same columns, ready for analysis in any spreadsheet or database.
No manual lookupsCollect thousands of records in one run instead of searching one facility at a time.
State and rating filtersTarget only the facilities that matter for your analysis before the data is collected.

How it compares

No other Store actor targets Medicare.gov Care Compare the same way, so the honest comparison is with the alternatives teams actually weigh.

Medicare Care Compare ScraperBuild it in-houseBy hand
SetupRun it now, zero configDays of engineeringNone, but hours per pull
When Medicare.gov Care Compare changesMaintained for youYou fix itYou re-learn the page
Proxies, retries, anti-botBuilt inYour problemBrowser only
OutputFixed JSON schema, CSV/Excel exportWhatever you buildCopy-paste
CostPay per resultEngineering timeAnalyst hours

Configure the run

Drive the Actor by selecting a facility type, then optionally filter by state abbreviation, minimum overall star rating, and hospital type. Filters run as each facility is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
"dataType": "hospitals",
"maxItems": 10
}

A larger pull:

{
"dataType": "hospitals",
"maxItems": 200
}

Pricing

Pay-per-result: $0.006 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$0.60
1,000 results$6.00
10,000 results$60.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Medicare Care Compare Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Medicare.gov Care Compare through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/medicare-care-compare-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check that your filters are not too restrictive. A high minimum rating combined with a narrow hospital type or a state with few facilities can return zero matches. Try broadening your filters or removing the state filter to test.

The run stopped before collecting all facilities I expected.

Check your maxItems setting. Free accounts are capped at 10 items. Paid accounts should increase maxItems up to 1,000,000. Also verify that your state and rating filters are not limiting the result set.

Why are some fields empty in my dataset?

Not all quality measures apply to every facility type. For example, nursing home staffing measures do not appear in hospital records. Empty fields mean that particular measure is not reported for that facility type.

The hospital type filter is not working.

The hospital type filter only applies when the data type is set to Hospitals. If you have Nursing Homes selected, this filter is ignored. Switch to Hospitals to use it.

I entered a state abbreviation but got facilities from other states.

Make sure you are using the correct two-letter USPS state abbreviation in uppercase, such as CA not California or ca. The Actor matches against the exact abbreviation format used by Medicare.gov.

FAQ

QuestionAnswer
What data does this Actor collect from Medicare Care Compare?It collects overall star ratings, quality measure scores, staffing data, health inspection results, patient survey ratings, and location information for hospitals and nursing homes listed on Medicare.gov.
Can I scrape all hospitals in the United States at once?Yes. Leave the state filter empty and set a high maxItems value to collect hospital data nationwide. The Actor will paginate through all available results.
Does this Actor require a Medicare.gov account or API key?No. It reads the publicly available data from the Medicare Care Compare website. No login, registration, or API key is needed.
What is the difference between the Hospitals and Nursing Homes data types?Each facility type has different quality measures and rating categories. Hospitals include measures like mortality rates and patient experience, while nursing homes include staffing hours per resident and health inspection deficiencies.
How do I filter by a specific state?Enter the two-letter state abbreviation in the State field, such as CA for California or TX for Texas. The Actor will only return facilities in that state.
Can I get only highly rated facilities?Yes. Set the Minimum Overall Rating field to a number from 1 to 5. Only facilities with an overall star rating at or above that threshold will be collected.
What hospital types can I filter by?When the data type is set to Hospitals, you can filter by Acute Care Hospitals, Critical Access Hospitals, Children's, or Psychiatric hospitals. Leave it on All Types to include everything.
How many facilities can I scrape in one run?Free accounts are limited to 10 items for preview. Paid accounts can collect up to 1,000,000 facilities per run by adjusting the Max Items setting.
What export formats are supported?Your dataset can be exported to CSV, JSON, Excel, or XML from the Apify platform after the run completes.
Is the data updated when Medicare.gov refreshes its ratings?The Actor reads live data from Medicare Care Compare each time it runs, so your dataset reflects whatever is currently published on the site.

Browse the full ParseForge collection for more scrapers.

πŸ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Centers for Medicare & Medicaid Services. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.