# CMS Nursing Home Ownership Scraper API - SNF Control (`pink_comic/cms-snf-ownership-control`) Actor

Search and group official CMS Skilled Nursing Facility Owner Information enrollment associations for compliance, network QA, facility research, and M\&A screening.

- **URL**: https://apify.com/pink\_comic/cms-snf-ownership-control.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Lead generation, Business, 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 snf ownership & control evidence api 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 SNF Ownership & Control Evidence API

Search the official, no-key CMS **Skilled Nursing Facility Owner Information** dataset and receive one grouped item per facility enrollment, with bounded nested ownership and operational/managerial-control associations.

Use it for compliance research, provider-network QA, facility research, and M\&A screening where source-linked administrative evidence is useful. It is distinct from Nursing Home Compare quality data.

### Default

The deterministic default uses enrollment `O20020815000002`, scans at most 25 source rows, nests at most 10 associations, and returns one grouped facility item. At `$0.002/item` plus the `$0.0001` start event, its maximum charge is **$0.0021**.

```bash
go run ./cmd/cms-snf-ownership-control --enrollment-id O20020815000002 --max-results 1 --max-candidates 25 --max-owner-associations 10
```

### Filters

- exact CMS enrollment ID and facility associate ID
- facility organization-name substring
- owner/control-associate individual or organization name substring
- exact owner address state
- exact individual (`I`) or organization (`O`) entity type
- role code/text substring
- minimum and maximum source-reported ownership percentage
- total grouped `maxResults`, bounded source `maxCandidates`, and bounded nested `maxOwnerAssociations`

The dataset does **not** expose NPI or CCN fields. Inputs are present to make that limitation machine-visible: supplying either produces `INVALID_INPUT`; the actor never guesses or joins identifiers from another dataset.

### Outcomes

`FOUND`, `NO_MATCH`, `INVALID_INPUT`, and `SOURCE_UNAVAILABLE` are explicit dataset items. A no-match only means no matching row appeared within the disclosed bounded source query.

### Evidence limits

These are source-reported CMS enrollment ownership/control associations in an administrative snapshot. They are not verified beneficial ownership, current legal control/title, licensure, quality, good standing, transaction completion, sanctions clearance, or complete due diligence. Records can lag or omit fields, one associate can have multiple roles, and blank percentages are not treated as zero.

Source: `https://data.cms.gov/data-api/v1/dataset/a4358712-e910-4eaf-8f24-5e90ba3cf8d0/data`

# Actor input Schema

## `facilityName` (type: `string`):

Case-insensitive source organization-name substring.

## `enrollmentId` (type: `string`):

Exact CMS enrollment ID. The deterministic default returns one current grouped facility.

## `associateId` (type: `string`):

Exact source facility ASSOCIATE ID.

## `npi` (type: `string`):

Reserved for explicit validation: this source has no NPI field, so a supplied value returns INVALID\_INPUT rather than guessing.

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

Reserved for explicit validation: this source has no CCN field, so a supplied value returns INVALID\_INPUT rather than guessing.

## `ownerName` (type: `string`):

Case-insensitive individual or organization owner-name substring.

## `role` (type: `string`):

Case-insensitive source role code or role-text substring.

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

Exact two-letter source owner-address state.

## `ownerType` (type: `string`):

Exact source owner type: I for individual, O for organization, or blank for both.

## `minOwnershipPercentage` (type: `number`):

Minimum source-reported percentage, from 0 through 100; blank percentages do not match.

## `maxOwnershipPercentage` (type: `number`):

Maximum source-reported percentage, from 0 through 100; blank percentages do not match.

## `maxOwnerAssociations` (type: `integer`):

Maximum matching owner/control associations nested in each paid facility item.

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

Maximum source association rows fetched and scanned, bounding the request.

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

Total grouped paid items returned. Default one item costs at most $0.0021 including the $0.0001 start event.

## Actor input object example

```json
{
  "facilityName": "",
  "enrollmentId": "O20020815000002",
  "associateId": "",
  "npi": "",
  "ccn": "",
  "ownerName": "",
  "role": "",
  "state": "",
  "ownerType": "",
  "maxOwnerAssociations": 10,
  "maxCandidates": 25,
  "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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/cms-snf-ownership-control").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/cms-snf-ownership-control").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 '{}' |
apify call pink_comic/cms-snf-ownership-control --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pink_comic/cms-snf-ownership-control"
        }
    }
}

```

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/nNPZxmx3Ugf8IpxcE/builds/zATgHCQKgyIZIk9B8/openapi.json
