# NPI Registry Healthcare Leads: Clinics, Labs, DME (NPPES) (`datacrate/npi-healthcare-organization-feed`) Actor

Organization-only NPI records from the CMS NPPES registry: clinics, labs, DME suppliers, home health, hospitals. Filter by state, city, ZIP, taxonomy, name and NPI creation date. No key.

- **URL**: https://apify.com/datacrate/npi-healthcare-organization-feed.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 1,000 npi organization records

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

## NPI Healthcare Organization Feed (CMS NPPES)

Get healthcare organizations from the official CMS NPI Registry: clinics, labs, DME suppliers, home health agencies, hospitals and pharmacies. Each row has the NPI, organization name, primary taxonomy, practice address, phone and fax, NPI creation date, status and the authorized official's job title. Filter by state, city, ZIP, provider type or NPI creation date to build lead lists and new-provider feeds. Individual providers (doctors, nurses) are excluded.

**First run:** press Start. The prefill returns 50 Home Health organizations in New York (about $0.08 at $0.0016 per record).

**New providers:** set *NPI created since* and pair it with a state and taxonomy to keep the run short.

**Limits:** the registry returns at most 1,200 rows per query; keep *Deep search* on for large result sets. If you contact organizations by phone, fax or email, check TCPA and CAN-SPAM rules.

### Input

| Field | What it does |
|---|---|
| `state` | Two-letter state or territory code (e.g. `NY`) |
| `city`, `postalCode` | Narrow to a city or ZIP / ZIP prefix (practice location) |
| `taxonomyDescription` | Provider type, e.g. `Home Health`, `Clinic/Center`, `Clinical Medical Laboratory`, `Durable Medical Equipment & Medical Supplies`, `Pharmacy` |
| `primaryTaxonomyOnly` | Keep only records whose primary taxonomy contains your taxonomy text |
| `organizationName` | Name search with a trailing wildcard, e.g. `SUNRISE*` (min 2 characters before `*`) |
| `createdSince` | Only NPIs issued on or after this date (YYYY-MM-DD), for new-business feeds |
| `deepSearch` | Split big result sets by name prefix to get past the registry's 1,200-row query cap |
| `maxItems` | Stop after N records (you only pay for returned records) |

Example: `{ "state": "NY", "taxonomyDescription": "Home Health", "maxItems": 50 }`

New clinics in Texas this year: `{ "state": "TX", "taxonomyDescription": "Clinic/Center", "createdSince": "2026-01-01", "maxItems": 500 }`

### Sample output

```json
{
  "npi": "1982298899",
  "orgName": "1 OF A KIND HOME HEALTH CARE LLC",
  "otherNames": [],
  "isSubpart": false,
  "authorizedOfficialTitle": "Administrator",
  "primaryTaxonomyCode": "251E00000X",
  "primaryTaxonomyDescription": "Home Health",
  "primaryTaxonomyLicenseState": null,
  "taxonomies": [{ "code": "251E00000X", "description": "Home Health", "primary": true, "licenseState": null }],
  "practiceAddress": "148 GEORGE ST",
  "practiceCity": "BROOKLYN",
  "practiceState": "NY",
  "practicePostalCode": "11237-1912",
  "phone": "718-300-8023",
  "fax": null,
  "enumerationDate": "2021-02-22",
  "lastUpdated": "2022-08-29",
  "status": "Active",
  "npiUrl": "https://npiregistry.cms.hhs.gov/provider-view/1982298899"
}
```

### Pricing

Pay per event: **$0.0016 per record** returned (about $1.60 per 1,000). Platform usage is included in this price. Records filtered out are not charged.

### Speed and limits

- The registry returns up to 200 rows per call and at most 1,200 rows per query (page offset is capped at 1,000). With `deepSearch` on, large queries are split by organization-name prefix and de-duplicated by NPI so you get the full set.
- A run with `maxItems` 50 finishes in a few seconds. A state-wide scan with `createdSince` can take several minutes because the API has no date filter.
- Organization names that start with a symbol (not a letter or digit) are not reached by prefix splitting.

### Data source & legal

- Source: CMS National Plan and Provider Enumeration System (NPPES) NPI Registry API, https://npiregistry.cms.hhs.gov/api/?version=2.1 (public, no key). NPPES data is a US federal government work and is released for public access; the NPI Registry is intended for public use and the full NPI file is also published by CMS as open data (https://download.cms.gov/nppes/NPI_Files.html).
- The registry host serves no `robots.txt` restrictions (the path returns the app shell, not a disallow list), and the API is a documented public interface. This Actor makes a small number of polite requests (about 10 per second at most, with retry/back-off), identifies itself with a user agent, and does not bypass any access control.
- This Actor is not affiliated with or endorsed by CMS or HHS. Review your own obligations before using the data for outreach (e.g. TCPA/CAN-SPAM for phone, fax and email marketing).

### Privacy

Only NPI-2 organization records are returned. The registry's authorized-official name and direct number fields are dropped; only the official's job title is kept. Phone and fax are the organization's published practice-location numbers.

### FAQ

**Why do I get only 1,200 records for broad searches?** That is the registry's hard limit per query. Keep `deepSearch` on, or add city, ZIP or taxonomy filters.

**Why does a taxonomy search return records where it is not the main specialty?** The registry matches any taxonomy an organization lists. Turn on `primaryTaxonomyOnly` for strict matches.

**Can I get only newly created NPIs?** Yes, set `createdSince`. It is applied while scanning, so pair it with a state and taxonomy to keep runs short.

**Is the data real-time?** It reflects the live NPPES registry, which CMS updates continuously.

**Can I schedule it?** Yes, use Apify schedules and integrations (Sheets, webhooks, API) as with any Actor.

# Actor input Schema

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

Two-letter US state or territory code of the practice or mailing address (e.g. NY, TX, CA).

## `city` (type: `string`):

City name (e.g. Brooklyn). Leave empty for the whole state.

## `postalCode` (type: `string`):

5-digit ZIP or a ZIP prefix. Matched against the practice location ZIP.

## `taxonomyDescription` (type: `string`):

Provider type as listed in the registry, e.g. 'Home Health', 'Clinic/Center', 'Clinical Medical Laboratory', 'Durable Medical Equipment & Medical Supplies', 'General Acute Care Hospital', 'Pharmacy'.

## `primaryTaxonomyOnly` (type: `boolean`):

The registry matches any taxonomy an organization lists. Turn this on to keep only records whose PRIMARY taxonomy contains your taxonomy text.

## `organizationName` (type: `string`):

Organization name. Use \* as a wildcard after at least 2 characters, e.g. 'SUNRISE\*'.

## `createdSince` (type: `string`):

Only organizations whose NPI was issued on or after this date (new-business feed). The registry has no date filter, so this is applied while scanning; combine it with state/taxonomy to keep scans short.

## `deepSearch` (type: `boolean`):

The registry returns at most 1,200 rows per query. When a query hits that cap, split it by organization-name prefix to retrieve the full set. Slower, but complete.

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

Stop after this many matching records. You are charged per record returned.

## `maxApiRequests` (type: `integer`):

Safety limit on registry API calls per run (each call returns up to 200 rows).

## Actor input object example

```json
{
  "state": "NY",
  "taxonomyDescription": "Home Health",
  "primaryTaxonomyOnly": false,
  "deepSearch": true,
  "maxItems": 50,
  "maxApiRequests": 3000
}
```

# Actor output Schema

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

All NPI-2 organization records returned by this run (default 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 = {
    "state": "NY",
    "taxonomyDescription": "Home Health",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/npi-healthcare-organization-feed").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 = {
    "state": "NY",
    "taxonomyDescription": "Home Health",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/npi-healthcare-organization-feed").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 '{
  "state": "NY",
  "taxonomyDescription": "Home Health",
  "maxItems": 50
}' |
apify call datacrate/npi-healthcare-organization-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/npi-healthcare-organization-feed"
        }
    }
}
```

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/gdbIgK8EZEs4La1LW/builds/k8AtosQSECusNzPd3/openapi.json
