# CMS Nursing Home Leads (`infocomp/cms-nursing-home-leads`) Actor

Medicare and Medicaid certified nursing homes from the official CMS Provider Data Catalog API. Filter by state, city, ZIP, ownership or name. Facility-level only: name, CCN, address, phone, ownership, beds, chain, star ratings. $2/1,000. Not affiliated with CMS.

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

## Pricing

$2.00 / 1,000 nursing home leads

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

## CMS Nursing Home Leads

**Build lead lists of Medicare and Medicaid certified nursing homes from CMS's official open data.** Filter by US state, city, ZIP code or prefix, ownership type and facility name. You get one clean row per nursing home (per CMS Certification Number, CCN): name as CMS lists it, address, county, facility phone, ownership, certified beds, average residents per day, chain, Care Compare star ratings, coordinates and a link to its Medicare Care Compare page.

- 🏥 **About 14,700 US nursing homes** from the CMS "Provider Information" dataset (4pq5-n9py), including rehab-service homes.
- 🎯 **Filters:** states, cities, ZIP codes or 3-4 digit ZIP prefixes, ownership (for-profit, non-profit, government), facility name.
- 🔒 **Facility-level data only:** no administrator, owner or contact person names, and no resident data. The phone number is the facility's main number as CMS lists it.
- 💲 **$2.00 per 1,000 nursing homes** ($0.002 per row). No start fee. Empty and failed runs are free.

> **Data source:** Centers for Medicare & Medicaid Services (CMS), Provider Data Catalog (https://data.cms.gov/provider-data), dataset "Provider Information" for nursing homes (4pq5-n9py). This is the same data Medicare Care Compare uses. Works of the U.S. Government are in the public domain. Every row has a `source` credit and a `sourceUrl` link to the CMS API record.
>
> **Disclaimer:** Not affiliated with, endorsed by or sponsored by CMS, Medicare or HHS. Medicare certification and star ratings are not an endorsement. Confirm details on Medicare Care Compare (each row's `careCompareUrl`) before you rely on them.

### What does it do?

1. It turns your filters into filtered, paged queries to the **official CMS Provider Data Catalog API** (no API key needed), 500 nursing homes per request, sorted by CCN. It asks only for a fixed list of facility-level columns, never inspection narratives, penalties detail or administrator fields.
2. It de-duplicates by CCN and stops as soon as it has **Max results** rows, or when it reaches the maximum cost you set for the run.
3. It fails fast and free if CMS refuses the request (HTTP 403): no retries, no proxies.

In local tests on 2026-11-14, the default input (New Hampshire, up to 100 nursing homes) saved **73 nursing homes** in 0.4 to 2.8 seconds of Actor time (2 CMS requests; about 2.4 to 4.8 seconds wall time including startup) and peaked at **71 MB** of memory. All 14,686 US nursing homes took 71 seconds (31 requests) and peaked at 78 MB.

### Who is it for?

- **Senior-care staffing firms and recruiters:** map nursing homes by state, city or ZIP and by bed count or chain.
- **Medical supply, pharmacy, therapy and software vendors:** build territory lists of skilled nursing facilities.
- **Consultants, investors and market researchers:** size a market by ownership, chain and star rating.

### Input

| Field | Default | What it does |
|---|---|---|
| `states` | `["NH"]` | US states: `TX`, `ca`, `New Hampshire`... Empty = all states. |
| `cities` | all | City names as CMS lists them (case doesn't matter), e.g. `Houston`. |
| `zipCodes` | all | 5-digit ZIP codes (`78701`) or 3-4 digit prefixes (`787` = Austin area). |
| `ownershipTypes` | all | `forProfit`, `nonProfit`, `government`. |
| `companyName` | empty | A word or phrase matched against the facility name, e.g. `manor`. |
| `maxResults` | 100 | Stop after this many nursing homes (up to 20,000). |
| `maxApiCalls` | 200 | Safety cap on CMS API calls. All US nursing homes take about 31. |

Example input (also the prefill):

```json
{"states": ["NH"], "maxResults": 100}
```

### What's in each row?

| Field | Meaning |
|---|---|
| `companyName`, `ccn` | Facility name and CMS Certification Number. |
| `street`, `city`, `state`, `zipCode`, `county`, `address` | Location as CMS lists it. |
| `phone` | Facility main phone. |
| `ownershipType`, `ownershipTypeAsListed` | For-profit / Non-profit / Government, and CMS's detailed value (e.g. "For profit - Limited Liability company"). |
| `certifiedBeds`, `avgResidentsPerDay` | Certified beds and average residents per day. |
| `providerType`, `inHospital`, `continuingCareRetirementCommunity` | Medicare/Medicaid certification type and setting flags. |
| `chainName`, `chainFacilityCount` | Chain affiliation, if any. |
| `specialFocusStatus` | CMS special focus status, if any. |
| `overallRating`, `healthInspectionRating`, `staffingRating`, `qualityMeasureRating` | CMS star ratings (1-5). |
| `firstApprovedDate` | Date first approved for Medicare/Medicaid. |
| `latitude`, `longitude` | Coordinates from CMS. |
| `careCompareUrl`, `sourceUrl`, `cmsDatasetId`, `source`, `disclaimer`, `dataLastUpdated`, `retrievedAt` | Provenance. |

### Output example

```json
{
  "companyName": "Nashua Post Acute Care",
  "ccn": "305005",
  "street": "55 HARRIS ROAD",
  "city": "NASHUA",
  "state": "NH",
  "zipCode": "03062",
  "county": "Hillsborough",
  "country": "US",
  "address": "55 HARRIS ROAD, NASHUA, NH 03062",
  "phone": "(603) 888-1573",
  "ownershipType": "For-profit",
  "ownershipTypeAsListed": "For profit - Limited Liability company",
  "certifiedBeds": 290,
  "avgResidentsPerDay": 231.3,
  "providerType": "Medicare and Medicaid",
  "inHospital": false,
  "continuingCareRetirementCommunity": false,
  "chainName": "MARQUIS HEALTH SERVICES",
  "chainFacilityCount": 90,
  "specialFocusStatus": null,
  "overallRating": 1,
  "healthInspectionRating": 1,
  "staffingRating": 2,
  "qualityMeasureRating": 3,
  "firstApprovedDate": "1968-11-01",
  "latitude": 42.732,
  "longitude": -71.475,
  "careCompareUrl": "https://www.medicare.gov/care-compare/details/nursing-home/305005",
  "cmsDatasetId": "4pq5-n9py",
  "sourceUrl": "https://data.cms.gov/provider-data/api/1/datastore/query/4pq5-n9py/0?conditions%5B0%5D%5Bproperty%5D=cms_certification_number_ccn&conditions%5B0%5D%5Bvalue%5D=305005&conditions%5B0%5D%5Boperator%5D=%3D&limit=10",
  "source": "Centers for Medicare & Medicaid Services (CMS), Provider Data Catalog, Nursing Homes Provider Information (https://data.cms.gov/provider-data/dataset/4pq5-n9py), public U.S. government data.",
  "disclaimer": "Not affiliated with, endorsed by or sponsored by CMS, Medicare or HHS. Facility-level data as listed by CMS; Medicare certification and star ratings are not an endorsement. Confirm details on Medicare Care Compare (careCompareUrl) before you rely on them.",
  "dataLastUpdated": "2026-10-01",
  "retrievedAt": "2026-11-14T18:16:15Z"
}
```

### Pricing

**$2.00 per 1,000 nursing homes.** One `facility` event ($0.002) per saved row. There's no start fee and no run fee. Runs that find nothing, and runs that fail because the CMS API can't be reached, are free. If you set a maximum cost per run, the Actor stops cleanly before it goes over.

### Good to know

- **Freshness:** `dataLastUpdated` shows when CMS last updated the dataset (2026-10-01 on 2026-11-14). CMS refreshes it on its own schedule, roughly monthly.
- **Names are as listed.** Facility names, addresses and phones are exactly as CMS lists them.
- **Ratings** are CMS's; a blank rating means CMS has none for that home (for example, a new facility).
- **No person fields.** The Actor does not read the legal business name or administrator columns, because for some homes these are an individual's name.
- Use the data in line with your own legal and marketing obligations, such as CAN-SPAM, the TCPA and state privacy laws.

### Related InfoComp tools

- [Form D Funding Leads: New Startup & Private Raise Filings](https://apify.com/infocomp/form-d-funding-leads): companies that just raised private capital, from public SEC EDGAR Form D filings.
- [New Business Filings Leads: Colorado](https://apify.com/infocomp/new-business-filings-colorado): newly registered Colorado LLCs, corporations and nonprofits from the State's public open data.
- [FMCSA New Carrier Leads: New MC Authorities](https://apify.com/infocomp/fmcsa-new-carrier-leads): trucking companies, freight brokers and forwarders whose FMCSA operating authority was just granted.
- [FMCSA Carrier Vetting & Watchlist: Authority, Insurance, Flags](https://apify.com/infocomp/fmcsa-carrier-vetting): bulk-check USDOT numbers: operating authority, insurance on file, safety flags and change alerts from FMCSA public data.
- [FDA Medical Device Establishment Leads](https://apify.com/infocomp/fda-device-establishment-leads): medical device makers, contract manufacturers and sterilizers from FDA registration data via openFDA.
- [OIG Exclusion Check & Medicare Opt-Out Screen - Bulk NPI LEIE](https://apify.com/infocomp/oig-exclusion-optout-screen): bulk-check NPIs against the HHS-OIG LEIE file and the CMS Medicare opt-out list.
- [SAM.gov Contract Opportunities Scraper: Federal RFPs & Bids](https://apify.com/infocomp/sam-gov-opportunities): US federal contract opportunities (RFPs, solicitations, awards) from the official SAM.gov API.
- [Tender Feed API: EU TED, UK Find a Tender & Contracts Finder](https://apify.com/infocomp/eu-uk-tenders): EU and UK public tenders in one feed, from official TED, Find a Tender and Contracts Finder APIs.
- [Greenhouse, Lever, Ashby & SmartRecruiters Jobs Scraper API](https://apify.com/infocomp/ats-jobs-feed): live job postings from Greenhouse, Lever, Ashby and SmartRecruiters via their public job-board APIs.
- [US Address Geocoder & FEMA Flood Zone Risk API](https://apify.com/infocomp/us-address-risk-enricher): batch-geocode US addresses with the Census Bureau and add FEMA flood zone and National Risk Index ratings.
- [VIN Decoder Bulk: Specs, Recalls, MPG & Fuel Cost per Mile](https://apify.com/infocomp/bulk-vin-decoder-recalls-mpg): decode VINs in bulk with NHTSA vPIC, plus recall campaigns and EPA fuel economy.
- [Academic Paper Scraper: arXiv, PubMed, Crossref & OpenAlex API](https://apify.com/infocomp/scholarly-paper-search): search arXiv, PubMed, Crossref and OpenAlex in one run, de-duplicated by DOI.
- [HUD Multifamily Owner/Manager Leads](https://apify.com/infocomp/hud-multifamily-leads): HUD-assisted apartment properties with management company, firm phone, Section 8 contract expiry and REAC score.
- [Company Name to Website Finder & Enrichment](https://apify.com/infocomp/wikidata-company-finder): turn company names into official websites, HQ, employees, industry, ticker, LEI and SEC CIK from Wikidata.
- [FDA 510(k) New Clearance Leads](https://apify.com/infocomp/fda-510k-clearance-leads): companies that just got a medical device cleared by FDA: new 510(k) decisions from openFDA.
- [CMS Home Health, Hospice & Dialysis Leads](https://apify.com/infocomp/cms-facility-leads): Medicare-certified home health agencies, hospices and dialysis centers from CMS open data, facility-level.
- CMS Hospital Leads (coming soon): Medicare-enrolled hospitals from the same CMS Provider Data Catalog.
- FDA Drug Labeler Leads (coming soon): drug labelers and manufacturers from the openFDA NDC directory.

### FAQ

**Is this an official CMS list?** No. It's an independent tool built on CMS's public Provider Data Catalog. It is not affiliated with or endorsed by CMS, Medicare or HHS.

**Does it include administrators or contact people?** No, by design. You get the facility, its address, its main phone number as CMS lists it, ownership, beds, chain, ratings and links to CMS's own records.

**Do I need an API key?** No. The CMS Provider Data Catalog API is keyless.

**Is it legal to use this data?** CMS publishes this dataset as public U.S. government data. Works of the U.S. Government are in the public domain. Use the results in line with your own legal and compliance obligations.

**What if CMS blocks the request?** The Actor stops within seconds, charges nothing and says so. It does not use proxies or workarounds.

# Actor input Schema

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

Two-letter codes or US state names, e.g. TX, CA, New Hampshire. Empty = all states.

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

Optional. City names exactly as CMS lists them (case doesn't matter), e.g. Houston, Saint Louis. Empty = all cities.

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

Optional. 5-digit ZIP codes (78701) or 3-4 digit prefixes (787 = Austin area). Empty = all ZIPs.

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

Optional. Match CMS's ownership type: for-profit, non-profit or government. Empty = all.

## `companyName` (type: `string`):

Optional. Word or phrase matched against the nursing home name as CMS lists it, e.g. manor or "health care".

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

Stop after this many nursing home rows. Each saved row is one $0.002 facility event.

## `maxApiCalls` (type: `integer`):

Safety cap. Each call reads up to 500 nursing homes. All ~14,700 US nursing homes take about 31 calls.

## Actor input object example

```json
{
  "states": [
    "NH"
  ],
  "cities": [],
  "zipCodes": [],
  "ownershipTypes": [],
  "companyName": "",
  "maxResults": 100,
  "maxApiCalls": 200
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "NH"
    ],
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("infocomp/cms-nursing-home-leads").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": ["NH"],
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("infocomp/cms-nursing-home-leads").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 '{
  "states": [
    "NH"
  ],
  "maxResults": 100
}' |
apify call infocomp/cms-nursing-home-leads --silent --output-dataset

```

## MCP server setup

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

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/OdBU5gEy5eaFWd1Pr/builds/gfLHDH7jkWqok8EXi/openapi.json
