# US Doctors & Clinics Leads Scraper (NPI Registry) (`whthpnd/npi-healthcare-doctors-leads-scraper`) Actor

Fast, proxy-free US healthcare provider lead generator using the official CMS NPI Registry API v2.1. Search doctors, dentists, clinics, and medical practices by specialty, state, city, or ZIP with phone, fax, license number, and authorized official contacts.

- **URL**: https://apify.com/whthpnd/npi-healthcare-doctors-leads-scraper.md
- **Developed by:** [DirectAPI Labs](https://apify.com/whthpnd) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 result 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 Doctors & Clinics Leads Scraper (NPI Registry)

Fast, **proxy-free** US healthcare lead extractor (`256 MB` RAM) querying the official **CMS National Plan and Provider Enumeration System (NPPES) NPI Registry API v2.1**. Pull doctors, dentists, clinics, physical therapists, chiropractors, and medical organizations with direct phone numbers, fax numbers, state license IDs, and authorized official contacts.

### Why Use This Actor?

- **Official Federal Source (`npiregistry.cms.hhs.gov`):** Authoritative, always up-to-date provider directory covering millions of US physicians (`NPI-1`) and clinics/group practices (`NPI-2`).
- **Practice Phones, Faxes & Decision Makers:** Automatically extracts the physical `LOCATION` phone/fax numbers (`practicePhone`, `practiceFax`), plus for `NPI-2` clinics retrieves `authorizedOfficialName`, `authorizedOfficialTitle`, and `authorizedOfficialPhone`.
- **Precision Targeting:** Search by `taxonomyDescription` (e.g., `Dentist`, `Dermatology`, `Optometry`, `Psychiatry`), US `states`, `city`, `postalCode`, or `enumerationType`.
- **Zero Proxies & Ultra-Fast:** Direct JSON API calls at `256 MB` RAM.

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `taxonomyDescription` | String | `"Dentist"` | Medical specialty keyword (`Dentist`, `Dermatology`, `Chiropractor`, `Clinic`, etc.). |
| `states` | Array | `["FL"]` | 2-letter US state codes (`FL`, `TX`, `CA`, `NY`). |
| `city` | String | `""` | Optional US city name filter. |
| `postalCode` | String | `""` | Optional 5-digit ZIP or prefix (`331*`). |
| `enumerationType` | String | `""` | `""` (all), `"NPI-1"` (doctors), or `"NPI-2"` (clinics/organizations). |
| `organizationName` | String | `""` | Optional clinic/organization name search. |
| `maxProviders` | Integer | `25` | Maximum unique NPI providers to return (`1`–`500`). |

#### Example Input

```json
{
  "taxonomyDescription": "Dentist",
  "states": ["FL", "TX"],
  "enumerationType": "NPI-2",
  "maxProviders": 50
}
```

### Output Format

Each dataset item represents one NPI provider or healthcare organization:

```json
{
  "npi": "1234567890",
  "entityType": "Organization",
  "providerName": "SUNSHINE DENTAL CARE LLC",
  "organizationName": "SUNSHINE DENTAL CARE LLC",
  "credential": null,
  "primarySpecialty": "Dentist",
  "taxonomyCode": "122300000X",
  "licenseNumber": "DN19482",
  "licenseState": "FL",
  "practicePhone": "305-555-0142",
  "practiceFax": "305-555-0143",
  "authorizedOfficialName": "MARIA GONZALEZ",
  "authorizedOfficialTitle": "Owner",
  "authorizedOfficialPhone": "3055550142",
  "practiceStreet": "1400 BRICKELL AVE",
  "practiceCity": "MIAMI",
  "practiceState": "FL",
  "practiceZip": "33131",
  "enumerationDate": "2019-06-14",
  "lastUpdated": "2026-10-02",
  "npiUrl": "https://npiregistry.cms.hhs.gov/provider-view/1234567890"
}
```

### Pricing & Cost Efficiency

- **Pricing model:** Pay-Per-Event (`$0.00005` start + `$0.0025` base per provider, discounted to `$0.0019` on Diamond tier).
- **Compute footprint:** Default `256 MB` RAM (~`$0.0001` platform compute) with **no proxies needed**.

### Integrations & Automation

Ideal for medical SaaS, healthcare recruiting agencies, dental marketing agencies, B2B telemarketing/outbound pipelines in **Clay**, **HubSpot**, **n8n**, **Make**, and **Google Sheets**.

### FAQ

**What is the difference between `NPI-1` and `NPI-2`?**
`NPI-1` covers individual healthcare practitioners (doctors, dentists, therapists); `NPI-2` covers healthcare organizations, clinics, hospitals, and group practices (which also include `authorizedOfficialName` / owner details).

**Can I filter by exact specialty?**
Yes — pass any CMS taxonomy term into `taxonomyDescription`, such as `Dentist`, `Physical Therapist`, `Cardiovascular Disease`, or `Mental Health`.

**Why are emails not included?**
The federal CMS NPI Registry does not store practitioner email addresses; pair `providerName`, `practicePhone`, and `practiceCity`/`practiceState` with Clay or domain enrichment if you need emails.

**Are proxies required?**
No — queries `npiregistry.cms.hhs.gov` cleanly without proxies.

# Actor input Schema

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

Healthcare specialty keyword (e.g., Dentist, Dermatology, Physical Therapist, Chiropractor, Family Medicine, Clinic).

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

2-letter US state codes (e.g., FL, TX, CA, NY). Leave empty to search nationwide.

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

Optional US city filter (e.g., Miami, Austin, Chicago).

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

Optional 5-digit ZIP code prefix (e.g., 33101 or 331\*).

## `enumerationType` (type: `string`):

Leave empty for all; set NPI-1 for Individual Doctors or NPI-2 for Clinics & Organizations.

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

Optional organization name search (focuses on NPI-2 organizations).

## `maxProviders` (type: `integer`):

Maximum number of providers/clinics to extract.

## Actor input object example

```json
{
  "taxonomyDescription": "Dentist",
  "states": [
    "FL",
    "TX"
  ],
  "enumerationType": "",
  "maxProviders": 25
}
```

# Actor output Schema

## `providers` (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 = {
    "taxonomyDescription": "Dentist",
    "states": [
        "FL",
        "TX"
    ],
    "maxProviders": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("whthpnd/npi-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 = {
    "taxonomyDescription": "Dentist",
    "states": [
        "FL",
        "TX",
    ],
    "maxProviders": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("whthpnd/npi-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 '{
  "taxonomyDescription": "Dentist",
  "states": [
    "FL",
    "TX"
  ],
  "maxProviders": 25
}' |
apify call whthpnd/npi-healthcare-doctors-leads-scraper --silent --output-dataset

```

## MCP server setup

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