# US Nursing Homes Scraper - Owners, Ratings & Staffing (`scrapers_lat/cms-nursing-homes-scraper`) Actor

Scrape US Medicare-certified nursing homes with CCN, address, phone, ownership type, beds, 5-star ratings, staffing, fines and the full list of owners and managers (name, type, role, percentage). Filter by state, city, ZIP, ownership, rating and beds. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/cms-nursing-homes-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.75 / 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/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

## US Nursing Homes Scraper - Owners, Ratings & Staffing

> Build complete lists of US Medicare-certified nursing homes with the CMS Certification Number (CCN), full address and phone, ownership type, certified beds, 5-star ratings, staffing hours, turnover, fines and penalties, chain details and the full list of registered owners and managers with their name, type, role and ownership percentage. Filter by state, city, ZIP, county, ownership, rating and bed count and export clean structured data for KYB, due diligence, sales and research.

**📥 [Input](https://apify.com/scrapers_lat/cms-nursing-homes-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/cms-nursing-homes-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/cms-nursing-homes-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/cms-nursing-homes-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Healthcare KYB](https://img.shields.io/badge/Data-Healthcare%20KYB-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>Owners & managers</strong><br>name, type, role & %</td>
<td align="center"><strong>Ratings, staffing & fines</strong><br>plus beds & chain</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
</tr></table>

<br>

### What you get

Each nursing home record includes:

- **Identity**: CCN, facility name, legal business name, provider type, full address, city, state, ZIP, county, phone
- **Owners & managers**: every registered owner and manager with name, type (individual or organization), role, ownership percentage and association date, plus the primary owner and all company owners called out separately
- **Ownership & chain**: ownership type, ownership-change-in-last-12-months flag, chain name, chain ID, number of facilities in chain and chain average rating
- **Quality**: overall, health inspection, quality measure (long and short stay) and staffing 5-star ratings
- **Staffing**: total nurse, RN, LPN and nurse aide hours per resident per day, weekend RN hours, nursing and RN turnover, administrator turnover
- **Enforcement**: number of fines, total fine dollars, payment denials, penalties and infection control citations
- **Other**: certified beds, average residents per day, special focus status, abuse icon, first Medicare/Medicaid approval date, coordinates and a Care Compare profile URL

### Who is it for

| Use case | Who benefits |
|---|---|
| KYB and due diligence | Investors, lenders and compliance teams tracing nursing home owners and chains |
| Sales and outreach | Vendors and staffing agencies targeting facilities by size, ownership and location |
| Research and journalism | Analysts and reporters studying quality, staffing and ownership across markets |
| Data enrichment | Teams appending CCN, ratings, owners and phone to existing facility records |

### How to use it

1. Choose one or more **states** (and optionally **city**, **ZIP**, **county** or a **name** / **chain name** filter).
2. Narrow by **ownership type**, **overall star rating** range, **bed count** range, **ownership-change** or **special focus** flags if you want.
3. Keep **include owners and managers** on to attach the ownership list, set **Max Facilities To Scrape** and run. Export as JSON, CSV or Excel, or pull it through the Apify API.

### Frequently Asked Questions

**No result, no charge?**
Correct. You are billed only per real nursing home record returned. A run that matches nothing costs you nothing.

**What ownership detail is included?**
For each facility you get every registered owner and manager: their name, whether they are an individual or an organization, their role (for example 5% or greater direct ownership interest, managing employee, corporate officer), their ownership percentage and the date the association began. The primary owner and any company owners are also surfaced as their own fields.

**Can I find facilities that recently changed hands?**
Yes. Turn on "only facilities that changed ownership in last 12 months" to focus on recent ownership changes.

**Can I filter by quality or size?**
Yes. Set a minimum or maximum overall star rating and a minimum or maximum certified bed count.

**How fresh is the data?**
Records are read live at run time, so each row reflects the source at the moment of the run (see observedAt).

### Export, API and AI agents (x402 + MCP)

Export the scraped data to **JSON, CSV or Excel**, pull it as a **dataset** through the Apify **API**, or wire it into your app with **no code**. This web scraper and data extractor also works for bulk data extraction and scheduled runs.

For AI agents: this Actor is available on **x402**, Apify's agentic payment standard built with Coinbase. An AI agent can discover, pay for and run it on its own with a funded wallet and a single HTTP request: no account, no subscription, no API key and no human in the loop. It also runs as an **MCP** tool inside Claude, Cursor and other AI clients out of the box. Learn more about [x402 agentic payments on Apify](https://docs.apify.com/platform/integrations/x402).

### Related scrapers

- [Medicare Doctors & Clinicians Scraper](https://apify.com/scrapers_lat/medicare-doctors-clinicians-scraper)
- [NPPES NPI Healthcare Provider Data Scraper](https://apify.com/scrapers_lat/nppes-npi-scraper)
- [CMS Open Payments Scraper](https://apify.com/scrapers_lat/cms-open-payments-scraper)

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for public platforms: finance, news, real estate, jobs, e-commerce and government data. Browse the full catalog or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> This actor is an independent tool and has no affiliation with the US Centers for Medicare & Medicaid Services. It only accesses publicly available provider data. Use the results in accordance with the source's terms.

# Actor input Schema

## `states` (type: `array`):

Filter by 2-letter US state code, for example CA, TX, NY. One run can scan several.

## `cities` (type: `array`):

Optional. Filter by city, for example HOUSTON, DALLAS.

## `zipCodes` (type: `array`):

Optional. Filter by 5-digit ZIP code.

## `counties` (type: `array`):

Optional. Filter by county / parish name as spelled by CMS, for example Harris, Franklin.

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

Optional. Keep only nursing homes whose name contains this text.

## `chainNameContains` (type: `string`):

Optional. Keep only nursing homes whose chain / group name contains this text.

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

Optional. Filter by ownership type. Use exact CMS labels.

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

Optional. Keep only facilities with an overall 5-star rating at or above this value (1-5).

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

Optional. Keep only facilities with an overall 5-star rating at or below this value (1-5).

## `minBeds` (type: `integer`):

Optional. Keep only facilities with at least this many certified beds.

## `maxBeds` (type: `integer`):

Optional. Keep only facilities with at most this many certified beds.

## `changedOwnershipLast12Months` (type: `boolean`):

When on, keep only nursing homes that changed ownership in the last 12 months.

## `specialFocusOnly` (type: `boolean`):

When on, keep only Special Focus Facilities or candidates (a CMS watch list).

## `ccnNumbers` (type: `array`):

Optional. Look up specific facilities by their CMS Certification Number (CCN).

## `includeOwnership` (type: `boolean`):

When on (default), attach the full list of registered owners and managers to each facility.

## `maxFacilities` (type: `integer`):

Maximum number of nursing homes to collect.

## Actor input object example

```json
{
  "states": [
    "TX"
  ],
  "changedOwnershipLast12Months": false,
  "specialFocusOnly": false,
  "includeOwnership": true,
  "maxFacilities": 10
}
```

# Actor output Schema

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

No description

# 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 = {
    "states": [
        "TX"
    ],
    "maxFacilities": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/cms-nursing-homes-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 = {
    "states": ["TX"],
    "maxFacilities": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/cms-nursing-homes-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 '{
  "states": [
    "TX"
  ],
  "maxFacilities": 10
}' |
apify call scrapers_lat/cms-nursing-homes-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers_lat/cms-nursing-homes-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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