# US NPI Registry Scraper - Doctors, Dentists & Clinic Leads (`hoanle0126/us-npi-registry-healthcare-doctors-leads-scraper`) Actor

Scrape 8M+ US healthcare providers from the official CMS NPPES NPI Registry API: doctors (NPI-1), clinics & hospitals (NPI-2), specialties, practice phones, faxes, addresses, state licenses & Authorized Official contacts. Zero proxies.

- **URL**: https://apify.com/hoanle0126/us-npi-registry-healthcare-doctors-leads-scraper.md
- **Developed by:** [Hoan Le](https://apify.com/hoanle0126) (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.26 / 1,000 dataset items

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

## US NPI Registry Scraper (Doctors, Dentists, Clinics & Healthcare Leads)

Extract structured US healthcare provider and medical practice leads across **8+ million records** directly from the official US federal **CMS NPPES NPI Registry API (`version 2.1`)**: doctors (`NPI-1`), clinics/hospitals/practices (`NPI-2`), credentials (`MD`, `DO`, `DDS`, `DMD`, `NP`, `PA`), specialties & taxonomy codes, state medical license numbers, practice street addresses, phone & fax numbers, and **Authorized Official names, titles, and direct phone numbers**.

Engineered for **MedTech sales, dental/medical SaaS prospecting, healthcare staffing agencies, credentialing verification, and AI agents** on pure lightweight HTTP (`256 MB` RAM) with zero proxies and zero API keys.

### Why Use This US NPI Registry Scraper?

- **Official US Federal Government Data (CMS NPPES v2.1):** Real-time queries directly against `npiregistry.cms.hhs.gov/api/?version=2.1` with zero anti-bot blocking, zero proxies, and 100% reliability.
- **Multi-State & Multi-Specialty Matrix Sweeps:** Combine multiple medical specialties (`Dentist`, `Dermatology`, `Cardiovascular Disease`, `Physical Therapist`, `Chiropractor`, `Optometrist`) across multiple states (`CA`, `NY`, `TX`, `FL`), cities, or wildcard ZIP codes (`902*`) in a single run, automatically scaling past CMS's 1,200-record per-query skip ceiling by slicing across locations.
- **Decision-Maker Contacts (`NPI-2` Authorized Officials):** For every medical group, dental clinic, and hospital (`NPI-2`), extracts the `authorizedOfficialName`, `authorizedOfficialTitle` (e.g., Managing Partner, Practice Administrator, Owner), and `authorizedOfficialPhone` alongside practice phone & fax numbers.
- **Direct 10-Digit NPI Verification:** Pass an array of 10-digit `npiNumbers` for instant provider credentialing, license validation, and CRM enrichment.

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `specialties` | `string[]` | `["Dentist"]` | Medical specialties / taxonomy descriptions (e.g., `"Dentist"`, `"Dermatology"`, `"Family Medicine"`, `"Chiropractor"`). |
| `states` | `string[]` | `["CA"]` | 2-letter US state codes (e.g., `"CA"`, `"NY"`, `"TX"`, `"FL"`). |
| `cities` | `string[]` | `[]` | Optional US cities (e.g., `"Los Angeles"`, `"Austin"`). |
| `postalCodes` | `string[]` | `[]` | Optional ZIP codes or wildcard prefixes (e.g., `"10001"`, `"902*"`). |
| `entityType` | `string` | `"ALL"` | `"ALL"`, `"NPI-1"` (Individual Doctors), or `"NPI-2"` (Clinics / Medical Groups / Hospitals). |
| `organizationName` | `string` | `""` | Optional clinic/practice name filter with wildcards (e.g., `"Dental*"`, `"Spine*"`). |
| `npiNumbers` | `string[]` | `[]` | Optional direct 10-digit NPI numbers for lookup/verification. |
| `requirePhone` | `boolean` | `false` | Only output records containing a practice or authorized official telephone number. |
| `maxProvidersPerQuery` | `integer` | `50` | Maximum providers per specialty-location combination (`1` to `1,200`). |

### Example Inputs

#### 1. Dental Clinics & Practices (`NPI-2`) in California & Texas with Authorized Official Contacts

```json
{
    "specialties": ["Dentist"],
    "states": ["CA", "TX"],
    "entityType": "NPI-2",
    "requirePhone": true,
    "maxProvidersPerQuery": 100
}
```

#### 2. Individual Dermatologists & Plastic Surgeons (`NPI-1`) in New York City

```json
{
    "specialties": ["Dermatology", "Plastic Surgery"],
    "states": ["NY"],
    "cities": ["New York"],
    "entityType": "NPI-1",
    "maxProvidersPerQuery": 100
}
```

### Example Output Record

```json
{
    "npi": "1760813802",
    "entityType": "NPI-2",
    "entityKind": "Organization",
    "status": "Active",
    "providerName": "WEST HILLS DENTAL GROUP INC",
    "primarySpecialty": "Dentist",
    "primaryTaxonomyCode": "122300000X",
    "practicePhone": "818-999-9900",
    "practiceFax": "818-999-9901",
    "practiceCity": "CANOGA PARK",
    "practiceState": "CA",
    "practicePostalCode": "91303",
    "authorizedOfficialName": "JANE DOE",
    "authorizedOfficialTitle": "PRESIDENT / OWNER",
    "authorizedOfficialPhone": "818-999-9900",
    "npiRegistryUrl": "https://npiregistry.cms.hhs.gov/provider-view/1760813802"
}
```

### Integrations, MCP & Automation

Connect directly to **Apify MCP Server**, **n8n**, **Make.com**, **Zapier**, **Clay**, **Salesforce**, **HubSpot**, or **Google Sheets** to power automated US healthcare prospecting and provider directory syncs.

### Frequently Asked Questions

**What is the difference between `NPI-1` and `NPI-2`?**
`NPI-1` records represent individual healthcare practitioners (physicians, dentists, therapists, nurse practitioners) with personal credentials (`MD`, `DDS`, `DO`) and license numbers. `NPI-2` records represent healthcare organizations (dental practices, clinics, imaging centers, hospitals) and include the **Authorized Official** decision-maker contact.

**How do I extract more than 1,200 providers in a large state like California?**
The official CMS API caps pagination at `1,200` results per single query. To collect more, split your run by passing multiple `cities` or wildcard `postalCodes` (e.g., `["900*", "902*", "941*"]`) in the input arrays.

**Does this Actor require proxies or an API key?**
No. It queries the official US federal CMS public API over lightweight HTTP (`256 MB` RAM) with zero proxy charges.

# Actor input Schema

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

Specialty/taxonomy keywords to query (e.g., 'Dentist', 'Family Medicine', 'Cardiovascular Disease', 'Dermatology', 'Physical Therapist', 'Chiropractor', 'Psychiatry'). Leave empty when querying by NPI number or organization name.

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

Two-letter US state codes to combine with each specialty (e.g., 'CA', 'NY', 'TX', 'FL', 'IL'). Leave empty for nationwide queries.

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

Optional city names to narrow searches (e.g., 'Los Angeles', 'Miami', 'Austin').

## `postalCodes` (type: `array`):

Optional 5-digit ZIP codes or wildcard prefixes (e.g., '10001', '902\*').

## `entityType` (type: `string`):

Choose Individual Providers (NPI-1: doctors, dentists, nurses), Organizations (NPI-2: clinics, practices, hospitals with Authorized Official contacts), or ALL.

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

Optional organization name search (e.g., 'Dental\*', 'Orthopedic\*'). Automatically queries NPI-2 organizations.

## `npiNumbers` (type: `array`):

Specific 10-digit NPI numbers for direct provider lookup/verification (e.g., '1760813802').

## `requirePhone` (type: `boolean`):

Only output healthcare providers with a published practice or authorized official telephone number.

## `maxProvidersPerQuery` (type: `integer`):

Maximum NPI records to extract per specialty-state-city combination (1 to 1200).

## Actor input object example

```json
{
  "specialties": [
    "Dentist"
  ],
  "states": [
    "CA"
  ],
  "cities": [],
  "postalCodes": [],
  "entityType": "ALL",
  "organizationName": "",
  "npiNumbers": [],
  "requirePhone": false,
  "maxProvidersPerQuery": 50
}
```

# Actor output Schema

## `dataset` (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": [
        "Dentist"
    ],
    "states": [
        "CA"
    ],
    "maxProvidersPerQuery": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hoanle0126/us-npi-registry-healthcare-doctors-leads-scraper").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": ["Dentist"],
    "states": ["CA"],
    "maxProvidersPerQuery": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hoanle0126/us-npi-registry-healthcare-doctors-leads-scraper").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": [
    "Dentist"
  ],
  "states": [
    "CA"
  ],
  "maxProvidersPerQuery": 50
}' |
apify call hoanle0126/us-npi-registry-healthcare-doctors-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hoanle0126/us-npi-registry-healthcare-doctors-leads-scraper"
        }
    }
}
```

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/J9BNIxrUsrmfO6Jbo/builds/7mWFVON7XmBjz2Taa/openapi.json
