# NPI/NPPES Healthcare Provider Scraper (`parseforge/npi-nppes-scraper`) Actor

Supercharge your healthcare provider research with our NPI/NPPES Scraper! Automate comprehensive data collection from the National Plan and Provider Enumeration System (NPPES) Registry, saving hours of manual research and ensuring you get the most accurate, up-to-date healthcare provider information

- **URL**: https://apify.com/parseforge/npi-nppes-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Automation, Developer tools, Lead generation
- **Stats:** 62 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

![ParseForge Banner](https://github.com/ParseForge/apify-assets/blob/ad35ccc13ddd068b9d6cba33f323962e39aed5b2/banner.jpg?raw=true)

## 🏥 NPI/NPPES Healthcare Provider Scraper

> 🚀 **Collect healthcare provider data from the NPPES registry in minutes.** Search by NPI number, name, specialty, city, state, or ZIP code. Export provider profiles, credentials, and contact info. No coding, no CMS account required.

The **NPI/NPPES Healthcare Provider Scraper** collects verified provider data from CMS's National Plan and Provider Enumeration System, returning **30+ fields per provider**: NPI number, name, credentials, specialty taxonomy, practice address, mailing address, phone, fax, enumeration date, and organization details. Runs support up to 1,000,000 records on a paid plan.

The Actor queries the official NPPES API with 10 search filters: NPI number, first name, last name, city, state, ZIP code, taxonomy/specialty, and enumeration type (individual NPI-1 or organization NPI-2). Results come directly from CMS's public registry.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| Healthcare compliance teams, insurance companies, hospital credentialing, health-tech platforms, pharmaceutical reps, researchers | Provider verification, credentialing, referral network building, provider directory enrichment, compliance audits, sales targeting |

### 📋 What the NPI/NPPES Scraper does

Direct NPPES API queries with 10 filters:

- 🆔 **NPI lookup.** Search by exact 10-digit NPI number.
- 👤 **Name search.** First and last name for individual providers.
- 📍 **Location filters.** City, state (2-letter code), and ZIP code.
- 🏥 **Specialty filter.** Taxonomy description (e.g. "Family Medicine", "Cardiology").
- 🏢 **Enumeration type.** NPI-1 (individual) or NPI-2 (organization).

Each provider record includes NPI, name, credentials, gender, taxonomy codes, practice address, mailing address, phone, fax, enumeration date, last update, and authorized official info (for organizations).

> 💡 **Why it matters:** manually looking up providers on the NPPES website means searching one at a time. This Actor exports verified CMS registry data in bulk, ready for your credentialing workflows, provider directories, or compliance databases.

### 📊 Data fields

Each record includes: `credential`, `enumeration_date`, `enumeration_type`, `first_name`, `full_name`, `last_name`, `last_updated`, `location_address_1`, `location_address_2`, `location_city`, `location_country_code`, `location_country_name`, `location_fax`, `location_phone`, `location_postal_code`, `location_state`, `mailing_address_1`, `mailing_address_2`, `mailing_city`, `mailing_country_code`, `mailing_country_name`, `mailing_fax`, `mailing_phone`, `mailing_postal_code`, `mailing_state`, `middle_name`, `npi`, `organization_name`, `other_identifier_issuers`, `other_identifier_states`, `other_identifier_types`, `other_identifiers`, `prefix`, `primary_taxonomy_code`, `primary_taxonomy_description`, `primary_taxonomy_license`, `primary_taxonomy_state`, `provider_type`, `scrapedTimestamp`, `secondary_taxonomy_codes`. All 40 field names come from a real production run, so what you see here is what lands in your dataset.

> ⚠️ **Good to Know:** the NPPES registry is maintained by CMS (Centers for Medicare & Medicaid Services). Data comes from the official NPPES API and reflects the current state of provider enrollments.

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the NPI/NPPES Healthcare Provider Scraper page on the Apify Store.
3. 🎯 **Set input.** Enter a specialty, state, or NPI number. Set maxItems.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

### 🔗 Recommended Actors

- [**🏦 FINRA BrokerCheck Scraper**](https://apify.com/parseforge/finra-brokercheck-scraper) - Broker and firm regulatory data
- [**🔧 CSLB California Contractor Scraper**](https://apify.com/parseforge/cslb-california-scraper) - California contractor licenses
- [**📋 TDLR Texas License Scraper**](https://apify.com/parseforge/tdlr-texas-scraper) - Texas licensed professionals
- [**📊 RateMDs Scraper**](https://apify.com/parseforge/ratemds-scraper) - Doctor ratings and reviews
- [**📋 Wyoming Business Scraper**](https://apify.com/parseforge/wyoming-business-scraper) - Business entity filings

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more healthcare and regulatory data scrapers.

> **⚠️ Disclaimer:** this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by CMS (Centers for Medicare & Medicaid Services) or the U.S. Department of Health and Human Services. All trademarks mentioned are the property of their respective owners. Only publicly available NPPES registry data is collected.

### 🆘 Need Help?

If you hit a bug, have questions about setup, or need a scraper we haven't built yet, open our [contact form](https://tally.so/r/BzdKgA) or write to parseforge@protonmail.com. We also take on paid custom data projects.

For faster answers, join our [Discord](https://parseforge.co/discord). It's the best place to get support and suggest new actors.

# Actor input Schema

## `startUrl` (type: `string`):

Direct NPPES API URL to scrape. Use this OR search filters below, not both. Example: https://npiregistry.cms.hhs.gov/api/?version=2.1\&first\_name=John\&state=NY

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

Maximum number of healthcare providers to collect per run.

## `npi` (type: `string`):

10-digit National Provider Identifier number to search for

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

Provider's first name (for individual providers)

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

Provider's last name (for individual providers)

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

City name where provider is located

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

2-letter state code (e.g., NY, CA, TX)

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

5 or 9 digit ZIP code

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

Provider taxonomy/specialty description (e.g., Family Medicine, Cardiology)

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

Provider type: NPI-1 for Individual, NPI-2 for Organization

## Actor input object example

```json
{
  "maxItems": 10,
  "lastName": "Smith",
  "state": "NY"
}
```

# Actor output Schema

## `providers` (type: `string`):

Complete provider dataset with all fields including NPI number, provider name, addresses, taxonomy codes, and contact information

## `overview` (type: `string`):

Overview view of providers with key fields displayed in a table format

# 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,
    "lastName": "Smith",
    "state": "NY"
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/npi-nppes-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,
    "lastName": "Smith",
    "state": "NY",
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/npi-nppes-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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,
  "lastName": "Smith",
  "state": "NY"
}' |
apify call parseforge/npi-nppes-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/npi-nppes-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/9iscpWXCBEa6TYNiE/builds/8kaDeoCSyDPZBkjrZ/openapi.json
