# Medicare Home Health Compare Scraper (`parseforge/home-health-compare-scraper`) Actor

Scrapes home health agency ratings, quality scores, and services from Medicare Home Health Compare. Returns each agency as a flat row with filters for state, city, and ownership type.

- **URL**: https://apify.com/parseforge/home-health-compare-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Other, Lead generation
- **Stats:** 1 total users, 1 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 1,000 results

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/actors/running/actors-in-store.md#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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### Medicare Home Health Compare Scraper

**Scrape Medicare Home Health Compare agency ratings, quality scores, and services data.** Get every agency's star ratings, patient survey results, and ownership details in one flat dataset. No login or API key. Export to CSV, JSON, Excel, or XML.

Medicare's Home Health Compare website lets you look up one agency at a time, but there is no bulk export. This Actor reads the public agency directory directly, filtered by state, city, or ownership type, and returns each match as a flat row with its quality ratings and service details.

| Who uses it | What they scrape Medicare Home Health Compare for |
|---|---|
| Healthcare market researchers | Compare quality scores across agencies in a region |
| Home health agency owners | Benchmark their own ratings against local competitors |
| Lead generation agencies | Build lists of agencies by state and ownership type |
| Policy analysts | Track quality trends across ownership categories |

### What it does

This Actor collects home health agency records from Medicare Home Health Compare and returns each agency as one flat row with its ratings, services, and ownership information.

- ⭐ **Quality ratings:** star ratings, patient survey results, and timely care scores.
- 🏥 **Agency details:** name, address, phone, ownership type, and services offered.
- 🗺️ **Geographic filters:** narrow by state or city to focus on one market.
- 🏢 **Ownership filter:** select proprietary, non-profit, or government agencies.
- 📊 **Bulk export:** collect up to a million agencies per run in one dataset.

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

### What you can do with Medicare Home Health Compare data

**📈 Benchmark agency quality.**

A home health agency owner runs the Actor for their state and compares their star ratings and patient survey scores against local competitors.

**🎯 Generate leads by ownership.**

A marketing agency filters for proprietary agencies in Texas and exports the list with phone numbers and addresses for outreach.

**🗺️ Map service coverage.**

A policy analyst collects all agencies in a metro area and maps which services are offered where to identify gaps.

**📊 Track quality trends.**

A researcher runs the Actor monthly for non-profit agencies and tracks changes in timely care scores over time.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API key** | Reads the public Medicare directory directly, no registration needed |
| **Flat schema** | Every agency is one row, ready for spreadsheets or databases |
| **Bulk collection** | Get thousands of agencies in one run instead of manual lookups |
| **Flexible filters** | Target by state, city, or ownership type |

### How it compares

This Actor focuses on the Home Health Compare directory with quality ratings and services, while the competitor below pulls a broader CMS facility list without those quality metrics.

| Feature | ParseForge | US Healthcare Facility Leads Scraper (CMS) |
|---|---|---|
| Home health quality ratings | Yes | Not listed |
| Patient survey results | Yes | Not listed |
| Services offered by agency | Yes | Not listed |
| Filter by ownership type | Yes | Not listed |
| Filter by state and city | Yes | Not listed |

### Configure the run

Drive the Actor with a state, city, or ownership type, alone or together, and set a maximum number of agencies to collect. Filters run as each agency is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "maxItems": 10
}
```

A larger pull:

```json
{
  "maxItems": 200
}
```

### Pricing

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

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.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](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Medicare Home Health Compare Scraper](https://apify.com/parseforge/home-health-compare-scraper?fpr=vmoqkp).
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](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

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

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/home-health-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 your filters. The city field is an exact match, so try a broader city name or leave it blank. Also verify the state code is correct, like CA not California.

**The run stops before reaching my maximum agencies.**

That means there are no more agencies matching your filters. Try removing the city or ownership filter to get more results.

**Some agencies are missing from the results.**

Medicare Home Health Compare may not list agencies that are no longer certified or have incomplete data. The Actor only returns what is publicly shown.

**The run takes a long time.**

Large collections take time because the Actor reads each agency page. Reduce the maximum agencies or narrow your filters to speed it up.

### FAQ

| Question | Answer |
|---|---|
| What data does this Actor return for each agency? | Each row includes the agency name, address, phone, ownership type, star ratings, patient survey results, and services offered, as shown on Medicare Home Health Compare. |
| Can I filter by state or city? | Yes, use the state and city input fields to narrow results. State is a two-letter code like CA or TX, and city is an exact match. |
| How many agencies can I collect in one run? | Set the maximum agencies input up to 1,000,000. The Actor stops when it reaches that number or runs out of matches. |
| Do I need a Medicare or CMS API key? | No, the Actor reads the public Home Health Compare directory directly, so no registration or API key is required. |
| What ownership types can I filter by? | You can choose from proprietary, non-profit (private, church related, other), and government (local, state/county, federal) types, or leave it blank for all. |
| Is the data current? | The Actor scrapes the live Medicare Home Health Compare website at the time of the run, so you get the latest published ratings and details. |
| Can I export the results? | Yes, Apify datasets can be exported to CSV, JSON, Excel, or XML from the run results. |
| Does this Actor work for all U.S. states? | Yes, you can filter by any two-letter state code, or leave state blank to collect agencies nationwide. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) 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 (CMS). 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.

# Actor input Schema

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

How many home health agencies to collect per run.

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

Two-letter U.S. state code.

## `cityTown` (type: `string`):

City filter (exact match).

## `typeOfOwnership` (type: `string`):

Filter by ownership type.

## Actor input object example

```json
{
  "maxItems": 10
}
```

# Actor output Schema

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

Scraped Medicare Home Health Compare Scraper - Quality & Services records

# 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 = {
    "maxItems": 10
};

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

# Run the Actor and wait for it to finish
run = client.actor("parseforge/home-health-compare-scraper").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 '{
  "maxItems": 10
}' |
apify call parseforge/home-health-compare-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/home-health-compare-scraper"
        }
    }
}

```

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/epc1h6RYzxnzIUBbz/builds/pG6iojGnj4txLiIb6/openapi.json
