# CMS Home Health Agencies Scraper - Quality & Provider API (`pink_comic/cms-home-health-agencies-quality-provider-scraper`) Actor

Search the official CMS Care Compare home-health agency snapshot by CCN, name, location, ownership, offered services, certification date, quality stars, and supported measures. Returns source-linked provider, service, suppression, and quality evidence.

- **URL**: https://apify.com/pink\_comic/cms-home-health-agencies-quality-provider-scraper.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Business, Lead generation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 cms home health agencies scraper - quality & provi evidence items

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/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

## CMS Home Health Agencies Quality & Provider Scraper API

Search the official **CMS Care Compare Home Health Care – Agencies** snapshot by CCN, provider name, state, city, ZIP, ownership, offered services, certification date, quality stars, and supported measures.

### Deterministic first run

```json
{"ccn":"027001","maxResults":1}
```

Returns Providence at Home with Compassus HH Anchorage after source revalidation. Maximum first-run charge: **$0.0021** ($0.0001 start + $0.002/item).

### Filtered example

```json
{"state":"AK","servicesOffered":["nursing","physical_therapy"],"minQualityStarRating":3.5,"measure":"timely_care","minMeasureValue":70,"maxCandidates":500,"maxResults":10}
```

Supported measures: `timely_care`, `walking_improved`, `bathing_improved`, `breathing_improved`, `discharge_function`, `dtc`, `ppr`, and `pph`. Filters map only to CMS dataset `6jpm-sxkc` columns. County is not present and is rejected rather than inferred.

Every item includes provider/contact/ownership/service evidence, certification date, normalized rating and selected-measure values, suppression footnotes, retrieval time, bounded-scan disclosure, CMS dataset provenance, and official profile link. No match and source outage are explicit outcomes. `maxResults` is a total cap and buyer charge limits are honored before querying.

### Important limits

Care Compare is a published CMS snapshot—not real-time certification, licensure, availability/capacity, service-area confirmation, patient suitability, sanctions clearance, a complete quality determination, or medical advice. Missing/suppressed values do not mean zero. Dataset `6jpm-sxkc` does not contain measure-period columns; ratings require the applicable CMS measure-period context.

[Official CMS dataset](https://data.cms.gov/provider-data/dataset/6jpm-sxkc)

# Actor input Schema

## `ccn` (type: `string`):

Exact six-character CMS Certification Number. Empty input uses 027001.

## `query` (type: `string`):

Case-insensitive provider-name keyword. Clear the default CCN when using this field.

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

Exact two-letter state code.

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

Case-insensitive city keyword.

## `zipCode` (type: `string`):

Exact five-digit ZIP code.

## `ownership` (type: `string`):

Case-insensitive match against CMS Type of Ownership, such as PROPRIETARY or NON-PROFIT.

## `servicesOffered` (type: `array`):

Require every selected CMS service indicator to equal Yes.

## `certificationDateFrom` (type: `string`):

Local filter, YYYY-MM-DD.

## `certificationDateTo` (type: `string`):

Local filter, YYYY-MM-DD.

## `minQualityStarRating` (type: `number`):

0-5 numeric filter. Suppressed/missing ratings cannot satisfy a positive minimum.

## `measure` (type: `string`):

Optional supported source measure to return/filter/sort.

## `minMeasureValue` (type: `number`):

Local numeric filter; requires a selected measure.

## `includeSuppressed` (type: `boolean`):

Include rows whose selected measure is missing/suppressed unless a numeric minimum is set. Footnotes remain explicit.

## `sortBy` (type: `string`):

Optional sort by filter or result-control setting. See the README for source semantics and examples.

## `sortDirection` (type: `string`):

Optional sort direction filter or result-control setting. See the README for source semantics and examples.

## `maxCandidates` (type: `integer`):

Bound on source rows retrieved before local date/rating/measure filters and sorting.

## `maxResults` (type: `integer`):

Total output cap. Each item costs $0.002.

## Actor input object example

```json
{
  "ccn": "027001",
  "servicesOffered": [],
  "minQualityStarRating": 0,
  "measure": "",
  "minMeasureValue": 0,
  "includeSuppressed": false,
  "sortBy": "providerName",
  "sortDirection": "",
  "maxCandidates": 1000,
  "maxResults": 1
}
```

# 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 = {
    "ccn": "027001",
    "maxResults": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/cms-home-health-agencies-quality-provider-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 = {
    "ccn": "027001",
    "maxResults": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/cms-home-health-agencies-quality-provider-scraper").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 '{
  "ccn": "027001",
  "maxResults": 1
}' |
apify call pink_comic/cms-home-health-agencies-quality-provider-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3RKLiOzEdV1akLwbc/builds/dauljCe2Gh8CNN9Su/openapi.json
