# Medicare Home Health Compare Scraper | Agency Ratings (`maximedupre/home-health-compare`) Actor

Find Medicare home health agencies by state, city, ownership, or quality rating. Export agency contacts, services, star ratings, patient survey ratings, and quality measures.

- **URL**: https://apify.com/maximedupre/home-health-compare.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** Business, Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $17.10 / 1,000 agencies

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### 🏠 Compare Medicare home health agencies

Home Health Compare helps families, care teams, health plans, and researchers find Medicare home health agencies. It returns agency contacts, ownership, services, CMS star ratings, patient survey ratings, and quality measures so you can compare providers.

- Find **[Medicare-approved home health care agencies](https://apify.com/maximedupre/home-health-compare/examples/medicare-approved-home-health-care-agencies)** in a state or city.
- Run a **[CMS star rating lookup](https://apify.com/maximedupre/home-health-compare/examples/cms-star-rating-lookup)** for matching agencies.
- Make a **[CMS star rating lookup by state](https://apify.com/maximedupre/home-health-compare/examples/cms-star-rating-lookup-by-state)** for a local market.
- Export **[CMS home health star ratings](https://apify.com/maximedupre/home-health-compare/examples/cms-home-health-star-ratings)** with patient survey ratings and quality measures.
- Save **[CMS star ratings 2026](https://apify.com/maximedupre/home-health-compare/examples/cms-star-ratings-2026)** for research and checks.

#### 📦 Returned data

Each dataset row is one Medicare home health agency. It can include its provider ID, address, phone, ownership, certification date, services, ratings, and quality measures.

#### ▶️ Running the Actor

1. Choose a state or territory. You may also enter a city.
2. Add ownership types or a minimum quality rating if needed.
3. Set **Maximum agencies**, or leave it empty to return all available matching agencies until the source is exhausted.
4. Start the Actor and open the default dataset.

#### ⚙️ Input

| Field | Type | What it does |
| --- | --- | --- |
| `state` | string | Keeps agencies in one US state or territory. |
| `city` | string | Keeps agencies in one city. Add a state when the city name may match more than one place. |
| `ownershipTypes` | array of strings | Keeps agencies with any listed Medicare ownership type. |
| `minQualityRating` | number | Keeps agencies with a Medicare quality star rating at or above this number, from 1 to 5. |
| `maxItems` | integer | Stops after this many agencies. Leave it empty to return all available matching agencies until the source is exhausted. |

Default-input example from a successful run:

```json
{
  "state": "GU",
  "maxItems": 5
}
```

#### 📊 Output

| Field | Type | What it does |
| --- | --- | --- |
| `providerId` | string | Medicare provider ID. |
| `name` | string | Agency name. |
| `address` | string | Street address. |
| `city` | string | City. |
| `state` | string | Two-letter state or territory code. |
| `postalCode` | string | Postal code. |
| `county` | string or null | County or similar area, when available. |
| `phone` | string or null | Agency phone number, when available. |
| `ownershipType` | string or null | Medicare ownership type, when available. |
| `certificationDate` | date string or null | Date first certified by Medicare, when available. |
| `services` | array of strings | Home health services offered. |
| `qualityRating` | number or null | Medicare quality of patient care star rating. |
| `patientSurveyRating` | number or null | Medicare patient survey star rating. |
| `qualityMeasures` | array of objects | Medicare quality measure results. |
| `qualityMeasures.measureCode` | string | Medicare measure code. |
| `qualityMeasures.name` | string | Measure name. |
| `qualityMeasures.value` | number or null | Agency value, or null when no value is given. |
| `qualityMeasures.unit` | string or null | Value unit, such as percent or days. |
| `qualityMeasures.footnote` | string or null | Note about a missing or limited value. |

```json
{
  "providerId": "097000",
  "name": "MEDSTAR HEALTH VNA",
  "address": "4201 CONNECTICUT AVENUE 441",
  "city": "WASHINGTON",
  "state": "DC",
  "postalCode": "20008",
  "county": null,
  "phone": "2028826988",
  "ownershipType": "NON-PROFIT",
  "certificationDate": "1966-07-01",
  "services": [
    "Nursing care",
    "Physical therapy",
    "Occupational therapy",
    "Speech pathology",
    "Medical social services",
    "Home health aide services"
  ],
  "qualityRating": 3.5,
  "patientSurveyRating": 3,
  "qualityMeasures": [
    {
      "measureCode": "how_often_the_home_health_team_began_their_patients_care_in_d440",
      "name": "How often the home health team began care on time",
      "value": 84.94,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "how_often_the_home_health_team_determined_whether_patients__4505",
      "name": "How often the home health team checked patients for depression",
      "value": 60.78,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "how_often_patients_got_better_at_walking_or_moving_around",
      "name": "How often patients got better at walking or moving around",
      "value": 88.21,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "how_often_patients_got_better_at_getting_in_and_out_of_bed",
      "name": "How often patients got better at getting in and out of bed",
      "value": 88.57,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "how_often_patients_got_better_at_bathing",
      "name": "How often patients got better at bathing",
      "value": 86.79,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "how_often_patients_breathing_improved",
      "name": "How often patients breathing improved",
      "value": 91.12,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "how_often_patients_got_better_at_taking_their_drugs_correct_bd88",
      "name": "How often patients got better at taking their drugs correctly",
      "value": 88.04,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "changes_in_skin_integrity_postacute_care_pressure_ulcerinjury",
      "name": "Changes in skin integrity after pressure ulcer or injury",
      "value": 0.06,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "how_often_physicianrecommended_actions_to_address_medicatio_cc88",
      "name": "How often recommended actions addressed medication issues",
      "value": 95.35,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "percent_of_residents_experiencing_one_or_more_falls_with_ma_34b8",
      "name": "Patients experiencing one or more falls with major injury",
      "value": 0.16,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "discharge_function_score",
      "name": "Discharge function score",
      "value": 71.7,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "transfer_of_health_information_to_the_provider",
      "name": "Transfer of health information to the provider",
      "value": 67.62,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "transfer_of_health_information_to_the_patient",
      "name": "Transfer of health information to the patient",
      "value": 81.67,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "dtc_riskstandardized_rate",
      "name": "Discharged to community risk-standardized rate",
      "value": 77.74,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "ppr_riskstandardized_rate",
      "name": "Potentially preventable readmission risk-standardized rate",
      "value": 4.59,
      "unit": "percent",
      "footnote": null
    },
    {
      "measureCode": "pph_riskstandardized_rate",
      "name": "Potentially preventable hospitalization risk-standardized rate",
      "value": 6.5,
      "unit": "percent",
      "footnote": null
    }
  ]
}
```

#### 💳 Pricing

You pay for each Medicare home health agency saved to the dataset. Runs that save no agencies do not create this charge. The Apify Console shows the current price before you start.

#### 🔌 Integrations

Export the dataset as JSON, CSV, Excel, XML, RSS, or HTML. You can also send it to Google Sheets, Slack, webhooks, and other Apify integrations, or use it through the Apify API.

https://www.youtube.com/watch?v=bNACk1\_S\_6w\&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW\&index=4

#### ❓ FAQ

##### Does this Actor tell me who qualifies for home health care services?

No. It returns public agency and quality data. It does not decide if a person qualifies for Medicare home health care.

##### Are all ratings available for every agency?

No. A rating or measure can be `null` when Medicare does not give a value.

##### Can I compare agencies by quality rating?

Yes. Set a minimum quality rating, then compare the saved star ratings, patient survey ratings, services, and measures.

##### Can I search every state?

Yes. Leave all filters empty to collect available agencies from every state and territory. Leave **Maximum agencies** empty to continue until the source is exhausted.

### 📝 Changelog

#### 0.0: Initial release

- Find Medicare home health agencies and export provider details, services, star ratings, patient survey ratings, and quality measures.
- Filter results by state, city, ownership type, and minimum quality rating.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~home-health-compare/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Related Actors

- [CMS Nursing Home Compare Scraper](https://apify.com/maximedupre/cms-nursing-home-compare-scraper) — Compare nursing home ownership, ratings, staffing, and penalties.
- [Hospital Price Transparency Scraper](https://apify.com/maximedupre/hospital-price-transparency-scraper) — Collect CMS hospital profiles and public hospital prices.
- [CMS Open Payments Scraper](https://apify.com/maximedupre/cms-open-payments-scraper) — Research public payments to providers, hospitals, and companies.
- [CMS Hospice Compare — Provider Records API](https://apify.com/nexgendata/cms-hospice-compare) — Compare Medicare hospice providers, ownership, and quality ratings.
- [CMS Dialysis Facility Compare — Provider Data API](https://apify.com/nexgendata/cms-dialysis-facility-compare) — Compare Medicare dialysis facilities, ownership, and quality ratings.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

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

Only include agencies in this US state or territory.

## `city` (type: `string`):

Only include agencies in this city. Add a state or territory when city names may match more than one place.

## `ownershipTypes` (type: `array`):

Only include agencies with any of these Medicare ownership types. Enter each type as a separate item.

## `minQualityRating` (type: `number`):

Only include agencies with a Medicare quality star rating at or above this number.

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

Stop after saving this many agencies. Leave empty to get all matching agencies.

## Actor input object example

```json
{
  "state": "GU",
  "maxItems": 5
}
```

# Actor output Schema

## `results` (type: `string`):

Open the matching home health agency rows.

# 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 = {
    "state": "GU",
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/home-health-compare").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 = {
    "state": "GU",
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/home-health-compare").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "state": "GU",
  "maxItems": 5
}' |
apify call maximedupre/home-health-compare --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=maximedupre/home-health-compare",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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