# US Nursing Home & Assisted Living Leads (CMS, MO, NY) (`vesper_studio/us-senior-care-leads`) Actor

B2B leads of US skilled nursing homes (CMS Provider Data Catalog) and state-licensed assisted living / adult care facilities (Missouri DHSS, New York DOH), with bed counts, ownership type, CMS 5-star ratings, administrator names, and optional website + generic e-mail enrichment.

- **URL**: https://apify.com/vesper_studio/us-senior-care-leads.md
- **Developed by:** [Xavier Richard](https://apify.com/vesper_studio) (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 $25.00 / 1,000 senior care facility 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

## US Nursing Home & Assisted Living B2B Leads (`us-senior-care-leads`)

Extract verified B2B facility leads for **US skilled nursing homes (SNFs)** and **licensed assisted living / adult care residences** directly from federal **CMS Provider Data** and official **state open-data portals (Socrata)** — optionally enriched with the facility's **official website** and **generic role-based e-mail** (`info@`, `contact@`, `admissions@`, `office@`).

Built for:

- **Healthcare & Nurse Staffing Agencies** (RN, LPN, CNA per-diem and travel staffing outreach)
- **Senior Care SaaS & EHR Vendors** (eMAR, care planning, billing, census & scheduling software)
- **Medical Supply, Pharmacy & Facility Services Providers** (LTC pharmacy, DME, food service, rehab therapy, HVAC & compliance services)

***

### Official Data Sources

Every lead is extracted over pure HTTP from authoritative federal and state open-data APIs (no HTML directory scraping, no headless browsers) and deduplicated by its official identifier:

| Coverage | Facility Type | Official Portal & Dataset | Identifier (`facility_id`) | Key Attributes |
| :--- | :--- | :--- | :--- | :--- |
| **Federal (CMS)** | `nursing_home` | **CMS Provider Data Catalog** (`data.cms.gov` / `4pq5-n9py` *Provider Information*) | 6-digit CMS Certification Number (**CCN**, e.g. `265001`) | Certified beds, ownership type, overall 5-Star Rating (`1–5`), address, phone, chain/legal entity |
| **Missouri (DHSS)** | `assisted_living` (+ administrator cross-ref for MO SNFs) | **Missouri Open Data** (`data.mo.gov` / `fenu-sipv` *Show Me Long Term Care — LTC Directory*) | State Facility Number (e.g. `00078`) or CCN (`certification`) | Licensed capacity (`ALF`, `ALF**`, `RCF`, `RCF*`), ownership definition, state-published `administrator_name`, address, phone |
| **New York (DOH)** | `assisted_living` | **Health Data NY** (`health.data.ny.gov` / `wssx-idhx` *Adult Care Facility Directory*) | NYS DOH `facility_id` (e.g. `14916`) | Total licensed beds (Adult Homes, Enriched Housing, ALR/ALP), ownership classification, operator, address, phone |

> **Note on CMS API Access:** This Actor queries the official CMS DKAN JSON datastore API (`/provider-data/api/1/datastore/query/4pq5-n9py/0`) with automatic fallback to the official CSV distribution published in the CMS metastore schema (`/provider-data/api/1/metastore/schemas/dataset/items/4pq5-n9py`). It never scrapes HTML pages on `data.cms.gov` and never attempts to bypass WAF/Akamai protections.

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `states` | `array<string>` | `["MO"]` | States to extract (`"MO"`, `"NY"`). When multiple states are selected, `maxItems` is split evenly across them. |
| `facilityTypes` | `array<string>` | `["nursing_home", "assisted_living"]` | Facility categories to include: `"nursing_home"` (CMS) and/or `"assisted_living"` (state Socrata). |
| `minBeds` | `integer` | `null` | Minimum certified or licensed bed count (`>= minBeds`). Facilities without a published bed count are excluded when set. |
| `ownershipType` | `string` | `null` | Normalized ownership filter: `"for_profit"`, `"non_profit"`, or `"government"`. Leave empty for all ownership types. |
| `starRatingMin` | `integer (1–5)` | `null` | Minimum CMS overall 5-Star Quality Rating (`1` to `5`). Applies to CMS nursing homes; state-licensed assisted living facilities do not have a CMS rating and are skipped when set. |
| `enrichWebsiteEmail` | `boolean` | `false` | Resolve the facility's official website and crawl the homepage + up to 3 contact/about pages (`robots.txt` respected) to extract a generic role e-mail (`info@`, `contact@`, `admissions@`, etc.). |
| `maxItems` | `integer` | `50` | Maximum number of leads to deliver across all selected states. |

***

### Output Schema (Dataset Item)

Each dataset item contains 17 standardized fields:

```json
{
  "facility_id": "265001",
  "name": "ATHENE NURSING AND REHABILITATION",
  "facility_type": "nursing_home",
  "beds": 282,
  "ownership": "for_profit",
  "star_rating": 1,
  "address": "13995 CLAYTON ROAD",
  "city": "Town And Country",
  "state": "MO",
  "zip": "63017",
  "phone": "(636) 227-5070",
  "website": "https://www.athenenursingandrehabilitation.com/",
  "generic_email": "info@athenenursingandrehabilitation.com",
  "administrator_name": "Kimberly Wyatt",
  "source": "data.cms.gov/4pq5-n9py",
  "source_url": "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=265001&conditions%5B0%5D%5Boperator%5D=%3D",
  "scraped_at": "2026-10-26T23:58:00+00:00"
}
```

***

### Cost & Pay-Per-Event Pricing

This Actor uses Apify **Pay-Per-Event (PPE)** pricing so you only pay for the exact leads and enrichments delivered:

| Event Name | Price (USD) | When it is charged |
| :--- | :--- | :--- |
| `apify-actor-start` | Platform start fee | Charged once by Apify when the Actor run starts. |
| `lead` | **$0.025** | Charged once per deduplicated senior-care facility pushed to the output dataset. |
| `email-found` | **$0.010** | Charged only when `enrichWebsiteEmail` is enabled **and** a verified generic role e-mail is found and delivered on the lead. |

#### Sample Run Cost Estimates

- **50 leads (default run, `enrichWebsiteEmail: false`)**: `50 × $0.025 = $1.25` (+ `apify-actor-start`)
- **200 leads with website & e-mail enrichment (`enrichWebsiteEmail: true`, ~35% generic e-mail match rate)**: `200 × $0.025 ($5.00) + 70 × $0.01 ($0.70) = $5.70` (+ `apify-actor-start`)
- **Strict Budget Control (`eventChargeLimitReached`)**: If you configure a maximum spend per run in Apify Console or via API, the Actor checks your remaining balance before pushing each item and stops cleanly as soon as `eventChargeLimitReached` is triggered.

***

### Compliance, Privacy & Responsible Outreach

- **No Patient or Resident Data (HIPAA Out of Scope)**: This Actor processes **zero Protected Health Information (PHI)** and zero resident or patient records. Every field comes strictly from public federal/state institutional licensing registries and corporate websites. HIPAA privacy rules governing patient health records do not apply to public B2B facility directory data.
- **Website & E-mail Enrichment Safeguards**:
  - **Strict `robots.txt` Compliance**: Before fetching any page on a facility website, the Actor fetches and honours `/robots.txt` (including disallowing sites when `robots.txt` returns `5xx` or is unreachable).
  - **Bounded Crawling**: Visits only the homepage and **at most 3 internal contact/about pages** over plain HTTP with a 15-second timeout.
  - **Generic Role Mailboxes Only**: Only role-based organizational addresses (`info@`, `contact@`, `admissions@`, `office@`, `admin@`, `referrals@`, `hr@`, `careers@`, etc.) are retained. Personal employee e-mail addresses are discarded.
  - **No E-mail Guessing from Administrator Names**: When a state agency publicly lists a facility administrator (such as Missouri's `first_name_administrator` / `last_name_administrator`), the name is preserved in `administrator_name` for institutional context, but is **never** used to guess, pattern-match, or construct personal e-mail addresses.
- **CAN-SPAM & B2B Outreach Compliance**: When using organizational contact details for commercial B2B outreach in the United States, buyers must comply with the federal **CAN-SPAM Act** (accurate header and sender identification, truthful subject lines, a visible physical postal address, and a clear, working opt-out mechanism honoured within 10 business days) as well as applicable state business-communication laws.

# Actor input Schema

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

US states (all 50 states + DC) to extract. Skilled nursing homes come from the federal CMS Provider Data Catalog (4pq5-n9py, nationwide coverage); state-licensed assisted living / adult care facilities are also pulled for MO (data.mo.gov/fenu-sipv) and NY (health.data.ny.gov/wssx-idhx). When several states are selected, maxItems is split evenly between them and queried in parallel.

## `facilityTypes` (type: `array`):

Which types of senior-care facilities to include: nursing_home (CMS-certified skilled nursing / nursing facilities across all 50 states + DC) and/or assisted_living (state-licensed assisted living, residential care and adult care facilities in MO and NY). Leave empty for both.

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

Only keep facilities with at least this many certified or licensed beds. Facilities without a published bed count are excluded when this is set.

## `ownershipType` (type: `string`):

Filter by normalized ownership category: for_profit (corporations, LLCs, partnerships, individuals), non_profit (non-profit and church-related corporations), or government (city, county, state, nursing home district). Leave empty to include all ownership types.

## `starRatingMin` (type: `integer`):

Minimum CMS overall 5-Star Quality Rating (1 to 5). Applies to CMS-certified nursing homes; state-licensed assisted living facilities do not have a CMS star rating and are skipped when this filter is set.

## `enrichWebsiteEmail` (type: `boolean`):

Resolve the facility's official website and visit the homepage plus up to 3 contact/about pages concurrently (plain HTTP, robots.txt respected, fast 5 s timeout) to extract generic role e-mails only (info@, contact@, admissions@, office@, admin@…). Decodes Cloudflare email protection, JSON-LD contactPoint, mailto:, and \[at] obfuscation. Administrator names are never used to guess e-mails. Each generic e-mail delivered is billed as an extra 'email-found' event.

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

Maximum number of leads to return across all selected states and facility types. You are billed per lead delivered.

## Actor input object example

```json
{
  "states": [
    "MO"
  ],
  "facilityTypes": [
    "nursing_home",
    "assisted_living"
  ],
  "enrichWebsiteEmail": false,
  "maxItems": 50
}
```

# Actor output Schema

## `leads` (type: `string`):

All senior-care facility leads produced by the run, as JSON. Append ?format=csv or ?format=xlsx for spreadsheets.

# 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": [
        "MO"
    ],
    "facilityTypes": [
        "nursing_home",
        "assisted_living"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesper_studio/us-senior-care-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": ["MO"],
    "facilityTypes": [
        "nursing_home",
        "assisted_living",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("vesper_studio/us-senior-care-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": [
    "MO"
  ],
  "facilityTypes": [
    "nursing_home",
    "assisted_living"
  ],
  "maxItems": 50
}' |
apify call vesper_studio/us-senior-care-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesper_studio/us-senior-care-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/NiiIdIVUziprdGJqE/builds/yHvPVZ5oTy7CSgKNw/openapi.json
