# CMS Care Compare Scraper — Hospital & Nursing Home Ratings (`deadwood_data_solutions/cms-care-compare-quality-tracker`) Actor

Structured CMS feed of hospital, nursing-home and home-health quality ratings and measures. For payers, health-system strategy, and patient-facing comparison products. Statutory sources that don't break.

- **URL**: https://apify.com/deadwood\_data\_solutions/cms-care-compare-quality-tracker.md
- **Developed by:** [K O](https://apify.com/deadwood_data_solutions) (community)
- **Categories:** Developer tools, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 api queries

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## CMS Care Compare Provider Quality Tracker – Healthcare Quality API

A **CMS Care Compare API** wrapper and healthcare-quality feed that pulls provider quality data from CMS's provider-data datastore — hospitals, nursing homes, home health and more — and normalizes each into a clean record: facility, location, overall rating and quality measures. Point it at any Care Compare dataset by ID. Use it to build a **provider-quality comparison tool**, a payer network-quality feed, or health-system strategy datasets.

### Who uses it

Payers and health plans assessing network quality, health-system strategy and market-intelligence teams, patient-facing comparison products, and healthcare researchers.

### Why this is worth charging for

CMS Care Compare data underpins star ratings and quality benchmarking, but it lives across many datastore datasets with dataset-specific field names. This actor normalizes facility identity, location and overall rating across dataset types and returns the remaining quality measures intact, so you can compare and monitor providers without wrangling each dataset's schema.

### Output

Each dataset item is one normalized record:

```json
{
  "datasetId": "xubh-q36u",
  "facilityId": "010001",
  "facilityName": "SOUTHEAST HEALTH MEDICAL CENTER",
  "address": "1108 ROSS CLARK CIRCLE",
  "city": "DOTHAN",
  "state": "AL",
  "zip": "36301",
  "phone": "(334) 793-8701",
  "overallRating": "4",
  "measures": {
    "hospital_type": "Acute Care Hospitals",
    "emergency_services": "Yes"
  },
  "source": "CMS Care Compare"
}
```

### Input

| Field | Description |
|---|---|
| `datasetId` | CMS provider-data dataset ID. Default xubh-q36u = Hospital General Information. Use other IDs for nursing home, home health, etc. |
| `state` | Filter facilities by state, e.g. CA. |
| `filterProperty` | Optional additional column to filter on, e.g. hospital\_type. |
| `filterValue` | Value for the extra filter field. |
| `pageSize` | Rows per page. |
| `maxPagesToScan` | Pages per run. |
| `onlyNewSinceLastRun` | Recommended for schedules — skips records already returned by a previous run using persisted state, so you're only charged for genuinely new items. |
| `maxItems` | Stop after this many normalized records. |

### Pricing (Pay-Per-Event)

- **`query`** — $0.02, charged once per run for the API query/poll.
- **`provider-record`** — $0.01 per normalized record pushed. This is the primary event.
- `apify-actor-start` (Apify-managed) — covers baseline compute per run.

A statewide hospital pull returns hundreds of facilities per run for a couple dollars. Snapshot the full dataset periodically to track rating changes over time.

### Source & reliability

Data comes from the official `data.cms.gov/provider-data` datastore. Facility identity and location are normalized across dataset types; remaining quality measures are preserved. No key or proxies required. Run `npm test` for the offline self-test covering the normalizer, including edge cases and missing-field handling.

### FAQ

**Which providers are covered?**

Any CMS Care Compare dataset — hospitals (default), nursing homes, home health, dialysis and more. Set datasetId to switch.

**How do I find other dataset IDs?**

Browse data.cms.gov/provider-data; each dataset's API path ends in its ID, which you paste into datasetId.

***

### Need the rest of the record on these companies?

This actor returns one source. **[KYB Company Data Enrichment](https://apify.com/deadwood_data_solutions/company-intel-enrichment)** takes a company name and returns what the public record says about it across up to nine sources — state business registries, UCC lien filings, tax warrants and WARN layoff notices, the FMCSA motor-carrier census, the CMS NPI Registry, USAspending federal awards, EPA ECHO compliance, SEC EDGAR filings and CourtListener federal dockets.

Every enriched field carries its source and its match confidence. Only matches above the accept threshold are merged — anything weaker is surfaced as a suggestion and never folded into the record, because a false join is worse than returning nothing.

***

*SEO keywords: CMS Care Compare API, hospital quality data, nursing home rating API, healthcare quality scraper, provider star rating feed, Medicare quality data*

# Actor input Schema

## `datasetId` (type: `string`):

CMS provider-data dataset ID. Default xubh-q36u = Hospital General Information. Use other IDs for nursing home, home health, etc.

## `state` (type: `string`):

Filter facilities by state, e.g. CA.

## `filterProperty` (type: `string`):

Optional additional column to filter on, e.g. hospital\_type.

## `filterValue` (type: `string`):

Value for the extra filter field.

## `pageSize` (type: `integer`):

Rows per page.

## `maxPagesToScan` (type: `integer`):

Pages per run.

## `maxItems` (type: `integer`):

Stop after this many normalized records have been pushed. Leave blank for no limit (bounded by pagination settings).

## `onlyNewSinceLastRun` (type: `boolean`):

Recommended for scheduled runs. Uses persisted state to skip records already returned earlier, so a recurring schedule only charges for genuinely new items.

## Actor input object example

```json
{
  "datasetId": "xubh-q36u",
  "pageSize": 500,
  "maxPagesToScan": 3,
  "onlyNewSinceLastRun": true
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("deadwood_data_solutions/cms-care-compare-quality-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("deadwood_data_solutions/cms-care-compare-quality-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call deadwood_data_solutions/cms-care-compare-quality-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deadwood_data_solutions/cms-care-compare-quality-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/qrUd1cYJNkZeT7oEB/builds/yyr2WNGlV8UqUcPrJ/openapi.json
