# Nursing Home Ratings Lookup: CMS Inspections & Fines (`hydrocore/nursing-home-ratings-inspections`) Actor

Look up US nursing homes by state, city, name or CCN: CMS star ratings, staffing hours and turnover, fines and payment denials, health citations with actual-harm and jeopardy counts, abuse flag, ownership and chain. Monthly change monitor.

- **URL**: https://apify.com/hydrocore/nursing-home-ratings-inspections.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 nursing homes

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?

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

## Nursing Home Ratings, Inspections & Penalties (CMS Care Compare)

Look up **US nursing homes** by state, city, name or CMS Certification Number (CCN) and get one clean row per facility with the **CMS 5-star ratings**, **fines and payment denials**, **health citations with actual-harm and immediate-jeopardy counts** and the most severe citations, the **abuse warning flag**, Special Focus status, **nurse staffing hours and turnover**, beds and occupancy, **ownership and chain**, address, phone and the Care Compare link. Data comes from the official CMS Provider Data Catalog (Care Compare), refreshed monthly. Filters, sorting before the cap and a monthly change monitor. No API keys.

### ✅ What you get

- Overall, inspection, staffing and quality star ratings
- Fines (USD), number of fines and payment denials, latest penalties
- Health citations (3 cycles), actual harm and immediate jeopardy counts, most severe citations
- Abuse warning flag and Special Focus Facility status
- Nurse and RN hours per resident per day, staff and RN turnover, administrator departures
- Beds, residents per day, occupancy
- Ownership type, legal business name, chain, chain size and chain rating, recent ownership change
- Address, county, ZIP, phone, coordinates, Care Compare link

### 🏆 Why this Actor

- **Three CMS files joined in one row:** provider information, penalties and health deficiencies, so you do not have to merge CCNs yourself.
- **Severity that matters:** counts of actual-harm (G-I) and immediate-jeopardy (J-L) citations plus the 3 most severe citations in plain text.
- **Ready for spreadsheets and CRMs:** flat fields, numbers as numbers, dates as YYYY-MM-DD, phone formatted, occupancy computed.
- **Find the outliers fast:** sort by lowest rating, most fines or most citations before the cap, filter by stars, abuse flag, fines and ownership.
- **Fair billing:** status, filtered and unchanged (monitor) facilities are free.

### 💡 Use cases

- Families and placement agencies: compare homes in a city before a visit
- Senior care referral and home health sales: build lead lists with ratings and occupancy
- Elder law and personal injury firms: find facilities with harm or jeopardy citations and fines
- Healthcare investors and M\&A: screen chains, ownership changes and staffing
- Journalists and researchers: rank facilities by penalties or citations in a state

### 🚀 How to use

1. Enter a **state** (and optionally a **city** or **name**), or paste **CCNs**.
2. Optional: star limits, abuse flag, fined only, ownership, details, sort and monitor mode.
3. Run, then open **Overview**, **Inspections & penalties**, **Staffing & capacity** or **Ownership & contact**, or export.

### ⚙️ Input

| Field | What it does |
|---|---|
| `state` | 2-letter state code (default example FL). |
| `city` | City (default example Miami). Empty = whole state. |
| `nameContains` | Part of the facility name. |
| `ccns` | CMS Certification Numbers to look up (the FL / Miami example is ignored when you give CCNs or a name and leave the example unchanged). |
| `minOverallRating / maxOverallRating` | Star limits (defaults 0 and 5 = no limit). |
| `onlyAbuseFlag / onlyWithFines` | Only abuse-flagged / only fined facilities (default false). |
| `ownership` | any (default), forProfit, nonProfit, government. |
| `includePenalties / includeCitations` | Add penalty details and health citations (default true). |
| `sortBy` | worstRated (default), bestRated, mostFines, mostCitations, name, mostBeds. |
| `maxResults` | Most facilities to save, default 25. |
| `onlyChanges / monitorKey` | Monitor mode: only facilities whose ratings, penalties, abuse flag or latest inspection changed since the last run. |

Example input:

```json
{
  "state": "TX",
  "city": "",
  "maxOverallRating": 2,
  "onlyWithFines": true,
  "sortBy": "mostFines",
  "maxResults": 100
}
```

### ⬆️ Output

One row per nursing home. Invalid or unknown CCNs, empty searches and source errors get a free row with `recordType` = `status` and the reason in `summaryText`. Every row has the same 53 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `name` | string | "St Annes Nursing Center, St Annes Residence INC" | Facility name (title case when CMS writes it in capitals). |
| `city` | string | "Miami" | City. |
| `state` | string | "FL" | 2-letter state code. |
| `overallRating` | integer | 3 | CMS overall 5-star rating (1-5). null when not rated. |
| `healthInspectionRating` | integer | 2 | Health inspection star rating. |
| `staffingRating` | integer | 5 | Staffing star rating. |
| `hasAbuseFlag` | boolean | true | CMS abuse warning icon (cited for abuse recently). |
| `totalFinesUsd` | number | 34141 | Total federal fines in the last 3 years. |
| `penaltyCount` | integer | 3 | Fines plus payment denials in the last 3 years. |
| `harmCitationCount` | integer | 2 | Citations with scope/severity G, H or I (actual harm). |
| `jeopardyCitationCount` | integer | 0 | Citations with scope/severity J, K or L (immediate jeopardy to resident health or safety). |
| `careCompareUrl` | string | "https://www.medicare.gov/care-compare/details/nursing-home/… | The facility page on Medicare Care Compare. |
| `summaryText` | string | "St Annes Nursing Center, St Annes Residence INC (Miami, FL,… | Plain-English summary of ratings, penalties, citations and staffing; on status rows, the reason. |

All 53 fields (in order): `recordType`, `ccn`, `name`, `city`, `state`, `overallRating`, `healthInspectionRating`, `staffingRating`, `qualityRating`, `hasAbuseFlag`, `specialFocusStatus`, `totalFinesUsd`, `fineCount`, `paymentDenialCount`, `penaltyCount`, `latestPenaltyDate`, `latestPenalties`, `deficiencyCount`, `harmCitationCount`, `jeopardyCitationCount`, `latestInspectionDate`, `latestInspectionDeficiencyCount`, `topCitations`, `totalNurseHoursPerResidentDay`, `rnHoursPerResidentDay`, `nurseStaffTurnoverPercent`, `rnTurnoverPercent`, `administratorDepartureCount`, `certifiedBedCount`, `averageResidentsPerDay`, `occupancyPercent`, `ownershipType`, `legalBusinessName`, `chainName`, `chainFacilityCount`, `chainAverageOverallRating`, `hasOwnershipChangeLast12Months`, `providerType`, `isInHospital`, `address`, `zipCode`, `county`, `phone`, `latitude`, `longitude`, `firstApprovedDate`, `careCompareUrl`, `dataProcessedDate`, `ratingChange`, `previousOverallRating`, `summaryText`, `inputValue`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "facility",
  "ccn": "105560",
  "name": "St Annes Nursing Center, St Annes Residence INC",
  "city": "Miami",
  "state": "FL",
  "overallRating": 3,
  "healthInspectionRating": 2,
  "staffingRating": 5,
  "qualityRating": 4,
  "hasAbuseFlag": true,
  "specialFocusStatus": null,
  "totalFinesUsd": 34141,
  "fineCount": 3,
  "paymentDenialCount": 0,
  "penaltyCount": 3,
  "latestPenaltyDate": "2025-11-13",
  "latestPenalties": "2025-11-13 fine $26,685; 2023-11-09 fine $3,728; 2023-11-09 fine $3,728",
  "deficiencyCount": 20,
  "harmCitationCount": 2,
  "jeopardyCitationCount": 0,
  "latestInspectionDate": "2025-04-10",
  "latestInspectionDeficiencyCount": 11,
  "topCitations": "[G] Protect each resident from all types of abuse such as physical, mental, sexual abuse, physical punishment, and neglect by anybody. (2025-11-13) | [G] Provide appropriate treatment and care according to orders, resident’s preferences and goals. (2025-11-13) | [E] Develop and implement a complete care plan that meets all the resident's needs, with timetables and actions that can be measured. (2025-09-18)",
  "totalNurseHoursPerResidentDay": 3.96,
  "rnHoursPerResidentDay": 0.97,
  "nurseStaffTurnoverPercent": 32.8,
  "rnTurnoverPercent": 28.3,
  "administratorDepartureCount": 0,
  "certifiedBedCount": 213,
  "averageResidentsPerDay": 182.4,
  "occupancyPercent": 85.6,
  "ownershipType": "Non profit - Corporation",
  "legalBusinessName": "ST. ANNE'S NURSING CENTER, ST ANNE'S RESIDENCE INC",
  "chainName": null,
  "chainFacilityCount": null,
  "chainAverageOverallRating": null,
  "hasOwnershipChangeLast12Months": false,
  "providerType": "Medicare and Medicaid",
  "isInHospital": false,
  "address": "11855 Quail Roost Drive",
  "zipCode": "33177",
  "county": "Miami-Dade",
  "phone": "(305) 252-4000",
  "latitude": 25.589,
  "longitude": -80.383,
  "firstApprovedDate": "1987-05-22",
  "careCompareUrl": "https://www.medicare.gov/care-compare/details/nursing-home/105560/view-all?state=FL",
  "dataProcessedDate": "2026-10-01",
  "ratingChange": null,
  "previousOverallRating": null,
  "summaryText": "St Annes Nursing Center, St Annes Residence INC (Miami, FL, CCN 105560): overall 3/5 (inspections 2, staffing 5, quality 4). CMS abuse warning icon. 3 penalties in 3 years, fines $34,141. 20 health citations in the last 3 inspection cycles (2 actual harm, 0 immediate jeopardy). 3.96 nurse hours per resident per day; staff turnover 32.8%.",
  "inputValue": "state:FL city:Miami",
  "scrapedAt": "2026-11-14T21:15:09.399Z"
}
```

Views: **Overview**, **Inspections & penalties**, **Staffing & capacity**, **Ownership & contact**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts CCN inputs, invalid and duplicate CCNs, not found, facilities matched, rows filtered out, unchanged (monitor mode), over the cap and saved, and gives the CMS data processing date.

### 💰 Pricing

Competitive pricing, pay per result: **$0.0025 per nursing home** on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default 25-facility run costs about $0.06; 1,000 facilities about $2.50 (+ start). Each row already includes penalties and citations. Status, filtered and unchanged (monitor mode) facilities are never charged.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| Nursing home | One nursing home saved (ratings, penalties, citations, staffing and ownership in one row). Status, filtered and unchanged (monitor) facilities are free. | $0.0025 | $0.0023 | $0.0021 | $0.002 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Where does the data come from?**

From the official CMS Provider Data Catalog (data.cms.gov), the same data behind Medicare Care Compare: Nursing Home Provider Information, Penalties and Health Deficiencies. The dataProcessedDate field shows the CMS processing date.

**How often is it updated?**

CMS refreshes these files monthly. Running the Actor more than once a month returns the same values; monitor mode is best scheduled monthly or weekly.

**What do actual harm and immediate jeopardy mean?**

CMS rates each citation by scope and severity from A to L. G, H and I mean residents were actually harmed; J, K and L mean immediate jeopardy to resident health or safety. The Actor counts both over the last 3 inspection cycles.

**What is a CCN?**

The 6-character CMS Certification Number (provider number) that identifies each certified facility, for example 105765. It is in every row and in Care Compare links.

**What is the abuse flag?**

CMS shows an abuse icon on facilities cited for abuse recently. hasAbuseFlag is true for those homes.

**What is a Special Focus Facility?**

A home with a history of serious quality issues that CMS inspects more often. specialFocusStatus is SFF or SFF Candidate, otherwise null.

**Why are some ratings null?**

New facilities and some others are not rated yet. Star filters drop unrated facilities.

**Does it include assisted living or home health?**

No. Only Medicare/Medicaid-certified nursing homes (skilled nursing facilities) are in this CMS data. Assisted living is licensed by states.

**How does monitor mode work?**

With onlyChanges on, the Actor remembers each facility's ratings, penalties, fines, abuse flag, Special Focus status and latest inspection date under your monitor name and saves only new or changed facilities, with previousOverallRating.

**Is it good for AI agents?**

Yes. A state and city, a name or a CCN is enough, and each row has a summaryText sentence, so an agent can answer "what are the worst-rated nursing homes in Miami?" with official, citable data and a Care Compare link.

### Ready-made examples

- [Worst-rated Florida nursing homes with abuse flags](https://apify.com/hydrocore/nursing-home-ratings-inspections/examples/worst-rated-nursing-homes-with-abuse-flags-in-florida)

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-14): first release.

# Actor input Schema

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

2-letter US state code (FL, CA, NY, TX...). Combine with City or Name to narrow down. The example FL / Miami is ignored when you give CCNs or a name and leave the example unchanged.

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

City as CMS writes it (case does not matter), e.g. Miami, Saint Petersburg. Leave empty for the whole state.

## `nameContains` (type: `string`):

Part of the facility name, e.g. sunrise or rehab.

## `ccns` (type: `array`):

6-character CCNs (provider numbers), e.g. 105765. Looked up in addition to the state/city/name search.

## `minOverallRating` (type: `integer`):

Only facilities with at least this overall rating (0 = no limit). Unrated facilities are dropped when a star limit is set.

## `maxOverallRating` (type: `integer`):

Only facilities with at most this overall rating (5 = no limit). Use 2 to find low-rated homes.

## `onlyAbuseFlag` (type: `boolean`):

Only facilities with the CMS abuse warning icon.

## `onlyWithFines` (type: `boolean`):

Only facilities with at least one federal fine in the last 3 years.

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

Ownership type filter.

## `includePenalties` (type: `boolean`):

Read the CMS penalties file for the latest penalty date and the 3 latest fines or payment denials.

## `includeCitations` (type: `boolean`):

Read the CMS health deficiencies file for citation counts (actual harm, immediate jeopardy) and the 3 most severe citations.

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

Order of the saved rows. Sorting happens before Max results.

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

Most facilities to save (default 25).

## `onlyChanges` (type: `boolean`):

Remember each facility's ratings, penalties, abuse flag and latest inspection date, and save only new or changed facilities. CMS refreshes this data monthly.

## `monitorKey` (type: `string`):

Name of the memory used by monitor mode. Default: default.

## Actor input object example

```json
{
  "state": "FL",
  "city": "Miami",
  "minOverallRating": 0,
  "maxOverallRating": 5,
  "onlyAbuseFlag": false,
  "onlyWithFines": false,
  "ownership": "any",
  "includePenalties": true,
  "includeCitations": true,
  "sortBy": "worstRated",
  "maxResults": 25,
  "onlyChanges": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Ratings, penalties and citations per facility.

## `inspections` (type: `string`):

Citations, severity and penalty detail.

## `staffing` (type: `string`):

Nurse hours, turnover, beds and occupancy.

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

Owner, chain, address and phone.

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

Every field for each row.

## `summary` (type: `string`):

Run summary: CCN inputs, invalid and duplicate CCNs, not found, facilities matched, filtered out, unchanged (monitor), over the cap, saved, status rows and the CMS data processing date.

# 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": "FL",
    "city": "Miami"
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/nursing-home-ratings-inspections").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": "FL",
    "city": "Miami",
}

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/nursing-home-ratings-inspections").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 '{
  "state": "FL",
  "city": "Miami"
}' |
apify call hydrocore/nursing-home-ratings-inspections --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hydrocore/nursing-home-ratings-inspections"
        }
    }
}
```

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/APGfl0phnFa7QdlJV/builds/fNmAZuEWJTdobLuiq/openapi.json
