# NPPES NPI Registry Provider Scraper (`parselab/nppes-healthcare-provider-scraper`) Actor

Search the official US NPI Registry for doctors, clinics and other healthcare providers by name, specialty, city, state or ZIP code. Get NPI numbers, credentials, primary specialty, practice address, phone number and status. Build provider lead lists and export them to CSV or Excel.

- **URL**: https://apify.com/parselab/nppes-healthcare-provider-scraper.md
- **Developed by:** [ParseLab](https://apify.com/parselab) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $16.50 / 1,000 results

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

## NPPES NPI Registry Provider Scraper

This NPPES scraper searches the official US NPI Registry for doctors, nurse practitioners, clinics, hospitals, pharmacies and every other healthcare provider that has a National Provider Identifier. Search by name, specialty, city, state or ZIP code and get one row per provider with the NPI number, credentials, primary specialty, practice address, phone number and status.

Healthcare marketers, recruiters, billing companies, researchers and software teams use it to build provider lead lists and to check that a provider's details are correct.

### What can you do with this NPI Registry scraper?

- Find doctors by specialty and city
- Get NPI numbers for a list of providers
- Search healthcare organizations by name
- Build a lead list of dentists, pharmacies or clinics in a state
- Find nurse practitioners in a ZIP code
- Check a provider's credentials and primary specialty
- Get the practice phone number and address of a provider
- Separate individual providers from organizations
- Export NPI Registry data to CSV or Excel

### What data can you extract from the NPI Registry?

| Field | What it holds |
|---|---|
| `npi` | The 10-digit National Provider Identifier |
| `type` | Individual or Organization |
| `name` | Provider or organization name |
| `credential` | Credentials such as MD, DO, NP, PharmD |
| `primarySpecialty` | Primary specialty from the taxonomy code |
| `phone` | Practice phone number |
| `addressLine`, `city`, `state`, `postalCode` | Practice location |
| `status` | Active or another registry status |

### How to scrape the NPI Registry

1. Enter at least one search field: state, city, ZIP code, first or last name, organization name or specialty.
2. Optionally choose **Provider Type** to see only individuals or only organizations.
3. Set **Max Items**.
4. Click **Start** and export the dataset as CSV, Excel or from the Apify console.

Names accept a trailing wildcard, for example `Smi*` or `Cedars*`.

### Input example

```json
{
  "state": "CA",
  "organizationName": "Altamed*",
  "enumerationType": "NPI-2",
  "maxItems": 50
}
```

### Output example

```json
{
  "npi": "1588410302",
  "type": "Organization",
  "name": "ALTAMED HEALTH SERVICES CORPORATION",
  "primarySpecialty": "Pharmacist, Pharmacist Clinician (PhC)/ Clinical Pharmacy Specialist",
  "city": "LOS ANGELES",
  "state": "CA",
  "postalCode": "900401501",
  "status": "Active"
}
```

### How much does it cost to scrape the NPI Registry?

You pay per result: $22 per 1,000 providers plus a tiny start fee. The free plan returns up to 10 providers per run. Large searches are read in pages of 200, so long lists are quick.

### Tips for better results

- A search by specialty matches any specialty on the provider's record, not only the primary one. Check `primarySpecialty` if you need an exact fit.
- Combine a specialty with a state or city. A specialty alone can match a very large number of providers.
- Use trailing wildcards for names when you are unsure of the spelling.

### Who uses NPI Registry data?

- **Sales and marketing teams** build target lists of practices.
- **Recruiters** find clinicians in a region.
- **Billing and credentialing companies** verify provider details.
- **Researchers** map where specialists practice.

### FAQ

**Do I need a CMS account?**
No. The Actor works without any login.

**Is the data official?**
Yes. It comes from the NPI Registry maintained by CMS.

**Does it include email addresses?**
No. The registry does not publish email addresses.

**How often does the registry change?**
Providers register and update their records continuously, so schedule the Actor monthly if you keep a lead list and want to catch new practices and changed phone numbers.

**Can I search only by state?**
Yes, but very large states return a lot of providers. Add a specialty or city to narrow the search.

### Example searches

- Cardiologists in Houston: set the specialty to cardiology and the city to Houston
- Every pharmacy in a state: choose **Organization** as the provider type and search a pharmacy name with a wildcard
- Nurse practitioners in one ZIP code: enter the ZIP code and the specialty
- A hospital group: type the organization name with a trailing wildcard, such as `Kaiser*`

### Individual or organization?

Individuals are people such as doctors, dentists and nurses. Organizations are clinics, hospitals, pharmacies, labs and group practices. Choose the type to keep the list clean before you export it.

### Automate and connect

Schedule the Actor from the Apify console to refresh the data daily or weekly. Send finished datasets to Google Sheets, Zapier, Make or n8n, or trigger a webhook when a run ends, so your reports and alerts update without manual work.

### Legal note

This Actor collects information that is publicly visible on the website. Check the source site's terms and your local rules before using the data, and do not use contact details for unsolicited mass messaging.

### Support

Missing a field or found a bug? Open an issue from the Actor page.

# Actor input Schema

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

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

Two-letter US state code, e.g. 'CA', 'TX'.

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

City name, e.g. 'Los Angeles'.

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

US ZIP code (5 or 9 digit).

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

Individual provider's first name. Supports trailing wildcard, e.g. 'Jo\*'.

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

Individual provider's last name. Supports trailing wildcard, e.g. 'Smi\*'.

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

Organization/facility name. Supports trailing wildcard, e.g. 'Cedars\*'.

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

Provider specialty, e.g. 'Family Medicine', 'Dermatology', 'Nurse Practitioner'.

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

Individual provider (NPI-1) or organization (NPI-2).

## Actor input object example

```json
{
  "maxItems": 10
}
```

# Actor output Schema

## `overview` (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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parselab/nppes-healthcare-provider-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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("parselab/nppes-healthcare-provider-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 '{
  "maxItems": 10
}' |
apify call parselab/nppes-healthcare-provider-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parselab/nppes-healthcare-provider-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/hbHhmc3vVqgTTqzAz/builds/ZLkgYSTn9XRGr6f5y/openapi.json
