# NPI Provider Leads: Complete Statewide Pulls (`queenly_friendship/npi-provider-leads`) Actor

Doctors, dentists, chiropractors, therapists, clinics and more from the official CMS NPI Registry. Search by specialty and state; large searches are auto-split by ZIP so you get every provider, not just the first 1,200. Phone, fax, address, license, authorized official. $2 per 1,000.

- **URL**: https://apify.com/queenly_friendship/npi-provider-leads.md
- **Developed by:** [Patera Ventures](https://apify.com/queenly_friendship) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 providers

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

## NPI Healthcare Provider Leads: Complete Statewide Pulls (No 1,200 Cap)

Build a **healthcare provider list** from the official **CMS NPI Registry (NPPES)** — doctors, nurse practitioners, dentists, chiropractors, therapists, pharmacies, and clinics — by specialty and state. Each provider includes practice phone, fax, address, license, specialty, and (for organizations) the authorized official.

The public NPI API stops at 1,200 results and returns them in name order. This Actor auto-splits large statewide searches **ZIP by ZIP**, interleaved across the state, so you can pull a complete census and a small sample is spread geographically instead of clustering in the lowest ZIP codes.

**$2 per 1,000 providers.** No login, no API key, no proxies. You only pay for unique providers delivered to the dataset.

### Why this one

The NPI Registry API stops at **1,200 results per search**, and those 1,200 come back in name order (so a truncated pull is mostly organizations whose names start with "A" or a number). Most NPI tools quietly return those first 1,200 and stop. When a search hits the cap, this Actor **automatically re-runs it ZIP code by ZIP code** (in interleaved regional order) and removes duplicates, so a complete statewide list is possible — even if you set `maxResults` below 1,200.

In a real test, Nurse Practitioners in Delaware returned 2,310 providers instead of 1,200 (1,916 practicing in Delaware itself).

### Who uses it

- **Medical device, pharma, and lab sales teams** building territory lists
- **Healthcare staffing and recruiting** firms
- **Medical billing, credentialing, EHR, and practice-software** companies
- **Marketing agencies** serving dental, chiro, PT, and med-spa practices
- **Researchers and directories** that need a full provider census by specialty

### Input

| Field | Example | Notes |
| --- | --- | --- |
| `specialties` | `["Chiropractor", "Physical Therapist"]` | NPI taxonomy text; partial matches work (e.g. "Nurse Practitioner" includes Family, Pediatric, and other NPs) |
| `states` | `["OH", "PA"]` | 2-letter codes |
| `cities` | `["CLEVELAND"]` | Optional |
| `providerType` | `organization` | `any`, `individual`, or `organization` |
| `enumeratedOnOrAfter` | `2026-10-01` | Optional: only providers who got their NPI recently |
| `completePulls` | `true` | Auto-split past the 1,200 cap, interleaved by ZIP region |
| `practiceLocationOnly` | `true` | Drop providers whose only link to the state is a mailing address |
| `maxResults` | `5000` | Spending cap (default 500) |
| `skipPreviouslyReturned` | `true` | Skip records already delivered in earlier runs (not charged) |
| `resetPreviouslyReturned` | `false` | Forget earlier runs and start fresh |

Example: chiropractors practicing in Ohio, capped at 200 (spread across the state when the search is ZIP-split).

```json
{ "specialties": ["Chiropractor"], "states": ["OH"], "practiceLocationOnly": true, "completePulls": true, "maxResults": 200 }
```

### Output

```json
{
  "npi": "1962833590", "type": "Individual", "name": "SEIDATU SALIS",
  "primarySpecialty": "Nurse Practitioner, Family", "taxonomyCode": "363LF0000X",
  "licenseNumber": "LG-0000716", "licenseState": "DE",
  "practiceAddress": "4051 OGLETOWN RD SABRE WING-SUITE 102", "practiceCity": "NEWARK",
  "practiceState": "DE", "practiceZip": "19713", "practicePhone": "302-777-0720",
  "enumerationDate": "2013-12-08", "status": "Active",
  "npiRegistryUrl": "https://npiregistry.cms.hhs.gov/provider-view/1962833590"
}
```

Export to CSV, Excel, JSON, Google Sheets, or via API, or schedule it monthly.

### Cost

**$0.002 per provider ($2 per 1,000).** Every chiropractor in a mid-size state (a few thousand) costs a few dollars. Duplicates are never charged.

### FAQ

**Where does the data come from?** The public CMS NPPES NPI Registry API, updated by CMS daily. Not affiliated with CMS.

**Will a small `maxResults` cover the whole state?** When a statewide search is ZIP-split, ZIP codes are interleaved by region so a small cap is spread across the state instead of clustering at the lowest ZIPs. Raise `maxResults` for a full census.

**Are emails included?** No. Phone and fax are what providers filed with CMS. Follow the TCPA, CAN-SPAM, and do-not-call rules when contacting providers.

**Can any providers be missed?** Providers whose practice ZIP is unusual (military or PO-box-only) may be missed by the ZIP split. City-only searches that themselves hit the 1,200 cap are not auto-split by ZIP.

**What if I pass an invalid state?** The run fails immediately with a short message such as `States must be 2-letter codes like OH, PA.` You are not charged.

ZIP list © GeoNames (CC BY 4.0).

### No duplicates, ever

- **Within a run:** each provider is keyed by NPI number and delivered once.
- **Across runs:** with `skipPreviouslyReturned` (on by default), the tool remembers what it already gave you in a private key-value store in *your* Apify account. Scheduled or repeat runs return only records you haven't received.
- **You're never charged for a duplicate.** Skipped records aren't saved or billed.
- To get everything again, turn on `resetPreviouslyReturned` for one run.

# Actor input Schema

## `specialties` (type: `array`):

NPI taxonomy descriptions, e.g. Chiropractor, Dentist, Physical Therapist, Nurse Practitioner, Family Medicine, Pharmacy. One search per specialty.

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

2-letter state codes of the practice location, e.g. OH, PA.

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

Limit to these cities. Leave empty for the whole state.

## `providerType` (type: `string`):

Individuals (NPI-1), organizations such as clinics and practices (NPI-2), or both.

## `enumeratedOnOrAfter` (type: `string`):

YYYY-MM-DD. Keep only providers whose NPI was issued on or after this date.

## `completePulls` (type: `boolean`):

The NPI Registry returns at most 1,200 records per search. When a statewide search hits that cap, re-run it ZIP by ZIP (interleaved across the state, not just the lowest ZIP codes) to get a complete, geographically spread list. Slower for big specialties.

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

Stop after this many providers.

## `practiceLocationOnly` (type: `boolean`):

The NPI Registry also matches providers whose mailing address is in the state. Keep this on to return only providers who practice there.

## `skipPreviouslyReturned` (type: `boolean`):

On by default: records this tool already delivered to you in earlier runs are skipped (and not charged), so scheduled or repeat runs only bring new records.

## `resetPreviouslyReturned` (type: `boolean`):

Clear the memory of previously returned records before this run, so everything matching is returned again.

## Actor input object example

```json
{
  "specialties": [
    "Chiropractor"
  ],
  "states": [
    "OH"
  ],
  "providerType": "any",
  "completePulls": true,
  "maxResults": 500,
  "practiceLocationOnly": true,
  "skipPreviouslyReturned": true,
  "resetPreviouslyReturned": false
}
```

# Actor output Schema

## `results` (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 = {
    "specialties": [
        "Chiropractor"
    ],
    "states": [
        "OH"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("queenly_friendship/npi-provider-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 = {
    "specialties": ["Chiropractor"],
    "states": ["OH"],
}

# Run the Actor and wait for it to finish
run = client.actor("queenly_friendship/npi-provider-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 '{
  "specialties": [
    "Chiropractor"
  ],
  "states": [
    "OH"
  ]
}' |
apify call queenly_friendship/npi-provider-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,queenly_friendship/npi-provider-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/zQzV393Cp3lqVUQNa/builds/Kz8NSRcWqVxNMIo8p/openapi.json
