# New York Health Facility Leads - Hospitals, Nursing Homes (`pink_comic/new-york-health-facility-leads`) Actor

Search 6k NYS DOH certified health facilities: hospitals, nursing homes, home care agencies (LHCSA/CHHA), diagnostic and treatment centers, adult homes and hospices. Get facility phone, address, county, opening date, operator name and address and ownership type.

- **URL**: https://apify.com/pink_comic/new-york-health-facility-leads.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Lead generation, Business, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 facility results

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

## New York Health Facility Leads - Hospitals, Nursing Homes

Search every **NYS Department of Health certified health facility** from the official Health Facility General Information file on health.data.ny.gov (about 6,000 facilities, 238k page views): hospitals and their extension clinics, nursing homes, licensed home care services agencies (LHCSA), certified home health agencies, diagnostic and treatment centers, adult homes and assisted living, hospices and adult day health programs.

Each result includes:

- facility name, DOH facility ID, type code and description
- facility **phone**, address, city, ZIP and county
- **opening date**
- **operator name and address**, ownership type and operating certificate number
- DOH regional office and coordinates

Results are newest opening date first. No API key, no CAPTCHA. Pricing: **$0.002 per facility + $0.0001 start**.

```json
{ "facilityTypeCodes": ["LHCSA"], "counties": ["KINGS", "QUEENS"], "maxResults": 500 }
```

```json
{ "facilityTypeCodes": ["NH"], "ownershipTypes": ["LLC"] }
```

### Use cases

B2B lead lists for healthcare staffing, EHR and billing software, medical supplies, pharmacy and food service; home care agency prospecting; operator and ownership research; market mapping by county.

### Limits

Point-in-time public data from NYS DOH. No email and no bed counts. Names are matched as substrings.

### Related

- [New York Medicaid Provider Search](https://apify.com/pink_comic/new-york-medicaid-provider-search)
- [CMS Nursing Home Compare](https://apify.com/pink_comic/cms-nursing-home-compare)
- [CMS Hospital Quality Ratings](https://apify.com/pink_comic/cms-hospital-quality-ratings)

# Actor input Schema

## `query` (type: `string`):

Quick single facility or operator name search (contains match). Leave blank for the most recently opened facilities.

## `names` (type: `array`):

Facility or operator names, contains match, case-insensitive.

## `openedAfter` (type: `string`):

Optional YYYY-MM-DD facility opening date.

## `facilityTypeCodes` (type: `array`):

'HOSP' hospital, 'HOSP-EC'/'HOSP-SB' hospital extension/satellite, 'NH' nursing home, 'LHCSA' licensed home care agency, 'CHHA' certified home health agency, 'DTC' diagnostic & treatment center, 'AH' adult home, 'HSPC' hospice, 'ADHCP' adult day health.

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

Contains match on the full description, e.g. 'Nursing', 'Home Care', 'Hospital', 'Dialysis', 'Assisted Living'.

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

County, e.g. 'KINGS', 'NEW YORK', 'MONROE', 'ERIE', 'SUFFOLK'.

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

City, e.g. 'BROOKLYN', 'ROCHESTER', 'BUFFALO'.

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

ZIP code or prefix, e.g. '11201' or '146'.

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

Contains match, e.g. 'LLC', 'Not for Profit', 'Corporation', 'Partnership', 'Public', 'Individual'.

## `facilityIds` (type: `array`):

Exact NYS DOH facility IDs.

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

Maximum total paid dataset items, split across search terms. The default returns 10 facilities (about $0.0201 including the start event).

## Actor input object example

```json
{
  "query": "",
  "names": [],
  "openedAfter": "",
  "facilityTypeCodes": [],
  "facilityTypes": [],
  "counties": [],
  "cities": [],
  "zipCodes": [],
  "ownershipTypes": [],
  "facilityIds": [],
  "maxResults": 10
}
```

# Actor output Schema

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

Dataset items.

# 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 = {
    "query": "",
    "names": [],
    "openedAfter": "",
    "facilityTypeCodes": [],
    "facilityTypes": [],
    "counties": [],
    "cities": [],
    "zipCodes": [],
    "ownershipTypes": [],
    "facilityIds": [],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/new-york-health-facility-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 = {
    "query": "",
    "names": [],
    "openedAfter": "",
    "facilityTypeCodes": [],
    "facilityTypes": [],
    "counties": [],
    "cities": [],
    "zipCodes": [],
    "ownershipTypes": [],
    "facilityIds": [],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/new-york-health-facility-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 '{
  "query": "",
  "names": [],
  "openedAfter": "",
  "facilityTypeCodes": [],
  "facilityTypes": [],
  "counties": [],
  "cities": [],
  "zipCodes": [],
  "ownershipTypes": [],
  "facilityIds": [],
  "maxResults": 10
}' |
apify call pink_comic/new-york-health-facility-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pink_comic/new-york-health-facility-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/ecZZoTDivmL3ccmNd/builds/5LiSjYnYR3R5yElpj/openapi.json
