# NPI Registry Scraper — US Doctors & Clinics API (`yannabadie/npi-healthcare-providers-mcp`) Actor

Official U.S. CMS NPPES NPI Registry API v2.1 scraper & MCP tool. Extract 8M+ doctors, dentists & clinics with direct phones, fax, specialties, licenses & authorized officials. Flat $2.50/1k, zero proxy.

- **URL**: https://apify.com/yannabadie/npi-healthcare-providers-mcp.md
- **Developed by:** [Yann Abadie](https://apify.com/yannabadie) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 npi provider records

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 Registry Scraper — US Doctors, Clinics & Phones API](https://raw.githubusercontent.com/yannabadie/yannabadie/main/assets/banner_npi_providers.png)

## NPI Registry Scraper — US Doctors, Clinics & Phones API (MCP)

**Deterministic, zero-proxy U.S. CMS NPPES NPI Registry API v2.1 scraper & MCP tool** covering **8,000,000+ U.S. physicians, dentists, therapists, clinics, hospitals & pharmacies** with direct practice phones, fax numbers, state licenses, specialties, FHIR endpoints, and **Authorized Official decision-makers (`NPI-2`)**.

> **Bookmark this Actor** to export verified U.S. healthcare provider leads at a **flat `$2.50 / 1,000` all-inclusive rate** — **zero phone surcharge, zero proxy fees, zero compute fees**.

***

### Why Teams Choose This NPI Scraper

| Feature | This Actor (`yannabadie`) | Typical NPI Scrapers |
|---|---|---|
| **Total price per 1,000 providers WITH phone** | **$2.50 / 1,000 all-inclusive** | `$4.00 / 1,000` (`$1` record + `$3` phone surcharge) + platform compute |
| **Actor start fee** | **$0.005** | `$0.01` + proxy costs |
| **FREE Count Preview (`mode: "count"`)** | **Yes** (`0` provider charges) | Not available |
| **Zero Proxy / Direct Official CMS API v2.1** | **Yes** — `< 1s` runs, 100% deterministic | Often bundles paid SERP proxies |
| **Authorized Official Decision-Makers (`NPI-2`)** | **Name, Title, Credential & Direct Phone** | Partial |
| **Batch Multi-Specialty Dedup (`batch_search`)** | **Yes** + bulk `lookup_npis` | Partial |
| **MCP & n8n Ready** | **Yes** — [Free n8n Healthcare Leads template](https://github.com/yannabadie/official-opendata-mcp-n8n-templates/blob/main/workflows/n8n_us_npi_healthcare_leads_sheets.json) | Manual setup |

***

### Pricing (Flat All-Inclusive Pay-Per-Event)

| Event | Price | Charged When |
|---|---|---|
| `apify-actor-start` | `$0.005` | Once per run start |
| `npi-provider-record` | `$0.0025` (`$2.50 / 1k`) | Per returned provider record (**phone, fax, licenses & officials included — `$0` in `count` mode**) |

*Free Apify accounts include `$5/month` in credits (~2,000 U.S. healthcare provider records/month free).*

***

### Example Inputs

#### 1. FREE Availability Preview (`count` mode — `$0` provider charge)

```json
{
  "mode": "count",
  "taxonomyDescription": "Dentist",
  "state": "CA",
  "city": "Los Angeles"
}
```

#### 2. Clinic & Group Practice Decision-Makers (`NPI-2`) With Phone Only

```json
{
  "mode": "search",
  "taxonomyDescription": "Cardiology",
  "state": "TX",
  "enumerationType": "NPI-2",
  "onlyWithPhone": true,
  "maxResults": 100
}
```

#### 3. Multi-Specialty Batch Export (Auto-Deduplicated)

```json
{
  "mode": "batch_search",
  "specialtiesList": ["Dermatology", "Plastic Surgery", "Dentist"],
  "state": "FL",
  "city": "Miami",
  "onlyWithPhone": true,
  "maxResults": 200
}
```

***

### Sample JSON Output (`npi_provider`)

```json
{
  "recordType": "npi_provider",
  "npi": "1588410302",
  "enumerationType": "NPI-2",
  "providerName": "HEART CARE CLINIC",
  "primarySpecialty": "Cardiovascular Disease",
  "primaryTaxonomyCode": "207RC0000X",
  "practiceCity": "LOS ANGELES",
  "practiceState": "CA",
  "practicePostalCode": "90040",
  "practicePhone": "323-622-2429",
  "practiceFax": "323-853-6935",
  "authorizedOfficialName": "ROBERT YOUNG",
  "authorizedOfficialTitle": "Medical Director",
  "authorizedOfficialPhone": "323-622-2429",
  "nppesUrl": "https://npiregistry.cms.hhs.gov/provider-view/1588410302"
}
```

***

### Python, MCP & n8n Integration

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("yannabadie/npi-healthcare-providers-mcp").call(run_input={
    "taxonomyDescription": "Cardiology",
    "state": "CA",
    "city": "Los Angeles",
    "onlyWithPhone": True,
    "maxResults": 50,
})
providers = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

- **Free ready-to-import n8n template & MCP config**: [`yannabadie/official-opendata-mcp-n8n-templates`](https://github.com/yannabadie/official-opendata-mcp-n8n-templates)

***

### Explore Our Official Open-Data Actor Suite

- **[ClinicalTrials.gov API v2 — Trials & Contacts](https://apify.com/yannabadie/clinical-trials-api-mcp)** (`$5/1k`, 500k+ NIH clinical studies, PI/central contact emails & sponsors)
- **[Pappers / SIRENE Scraper — French Companies API](https://apify.com/yannabadie/french-company-intelligence-mcp)** (`$6/1k`, free count mode, GPS radius, BODACC KYC & BOAMP)
- **[TED Europa & BOAMP — EU Public Tenders & Contacts](https://apify.com/yannabadie/eu-public-tenders-ted-boamp)** (`$3–$4/1k`, 27 EU countries + France, buyer emails & award winners)

# Actor input Schema

## `mode` (type: `string`):

Search providers by specialty/location/name ('search'), preview availability for FREE ('count' — 0 provider charges), bulk lookup 10-digit NPI numbers ('lookup_npis'), or run multiple specialties/cities in one deduplicated run ('batch_search').

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

Specialty keyword matched against CMS NUCC taxonomies (e.g. 'Cardiology', 'Dentist', 'Dermatology', 'Family Medicine', 'Physical Therapist', 'Pharmacy').

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

Filter NPI-2 organizations by legal or DBA name (supports trailing wildcard '*', e.g. 'Mayo Clinic*').

## `firstName` (type: `string`):

Individual clinician first name (supports trailing wildcard '\*').

## `lastName` (type: `string`):

Individual clinician last name (supports trailing wildcard '\*').

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

Two-letter U.S. state code (e.g. 'CA', 'NY', 'TX', 'FL', 'MA').

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

U.S. city name (e.g. 'Los Angeles', 'Austin', 'Boston').

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

5-digit ZIP code or wildcard prefix (e.g. '90001' or '100\*').

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

Filter by Individual clinicians (NPI-1), Organizations/Clinics/Hospitals (NPI-2), or both.

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

List of 10-digit U.S. NPI numbers (e.g. \['1588410302']).

## `specialtiesList` (type: `array`):

Run multiple specialties in one deduplicated run (e.g. \['Cardiology', 'Dermatology', 'Dentist']).

## `onlyWithPhone` (type: `boolean`):

Filter out records without a practice or authorized-official phone number (no extra phone fee!).

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

Hard cap on output provider records (1 to 1,200 per query).

## Actor input object example

```json
{
  "mode": "search",
  "taxonomyDescription": "Cardiology",
  "organizationName": "",
  "firstName": "",
  "lastName": "",
  "state": "CA",
  "city": "",
  "postalCode": "",
  "enumerationType": "",
  "npiNumbers": [],
  "specialtiesList": [],
  "onlyWithPhone": false,
  "maxResults": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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": "Cardiology",
    "state": "CA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("yannabadie/npi-healthcare-providers-mcp").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": "Cardiology",
    "state": "CA",
}

# Run the Actor and wait for it to finish
run = client.actor("yannabadie/npi-healthcare-providers-mcp").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": "Cardiology",
  "state": "CA"
}' |
apify call yannabadie/npi-healthcare-providers-mcp --silent --output-dataset

```

## MCP server setup

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

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/0mIoUpedaXhHoSkUk/builds/Jyz1pV6x3BybtbfBP/openapi.json
