# NPI Registry Scraper: NPPES Provider Search & NPI Lookup (`steadyscrape/npi-registry-scraper`) Actor

NPI Registry scraper and NPI lookup API: search the NPPES registry of US healthcare providers by specialty, state, city or ZIP past the 1,200-row limit, bulk NPI number lookup with deactivated status, and new providers each week. Phone, address, taxonomy. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/npi-registry-scraper.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 providers

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: NPPES provider search, NPI lookup and new providers

**NPI Registry Scraper** searches the **NPI Registry** (NPPES), CMS's public register of every US healthcare provider
and organization with a National Provider Identifier, and exports it to JSON, CSV or Excel, or through the API. Search
by **specialty (taxonomy), state, city, ZIP code or name** and get the whole result, past the registry's limit of 1,200
rows a search; **look up NPI numbers** in bulk, with a clear answer when an NPI is deactivated; or get the **new
providers enumerated this week** from CMS's weekly NPPES file — new practices and newly licensed clinicians.

Each provider comes with its taxonomies and licences, practice and mailing addresses with phone and fax, other practice
locations, other names, and for an organization its **authorized official with title and phone**. US$1 per 1,000
providers; NPIs not found, deactivated NPIs and searches without results are free.

### What you can do with NPI Registry data

- **Healthcare lead lists**: every dentist, chiropractor, physical therapist or pharmacy in a state, city or ZIP code,
  with the practice phone and address. Organizations carry the person who signs for them (owner, CEO, office manager)
  and that person's direct phone.
- **New practice leads every week**: the providers CMS enumerated in the latest week (12,114 in the week of
  2026-11-02, 2,630 of them organizations). A new practice needs billing, insurance, software, supplies and staff.
- **NPI lookup and credentialing**: check a list of NPIs at once — name, taxonomy, licence number and state, status, and
  for an NPI the registry no longer shows, the day CMS deactivated it.
- **Data enrichment and cleanup**: add specialty, address and phone to a list of NPIs from claims or a CRM.
- **Market research**: count providers by specialty, city or ZIP prefix.

### How to search the NPI Registry

1. **What to get**: "Search the NPI Registry", or "New providers this week".
2. **Specialties**: words of the taxonomy as the registry describes it — `Dentist`, `Family Medicine`,
   `Nurse Practitioner`, `Physical Therapist`, `Counselor`, `Pharmacy`. A word finds every taxonomy that contains it.
3. **Places**: states, cities (`Austin, TX`) and ZIP codes (`78701`, or `787` for the area). Each specialty is searched in
   each place; a provider found twice is delivered and charged once.
4. Narrow it by **first name, last name or organization name** (`Smi*` for names starting with it), **individuals or
   organizations**, **which address** must match, and **primary specialty only**.
5. **NPI numbers**: paste NPIs or registry links to look them up instead of searching.

#### Past the 1,200-row limit

The registry's API answers at most 1,200 rows to one question (200 a page, and a page past 1,000 returns the page of
1,000 again). This Actor notices a search that hits the limit and splits it by ZIP prefix — 00 to 99, then a digit more
where one prefix still holds more — down to the five-digit ZIP, then by individuals and organizations. Every prefix is
asked, so providers whose state and ZIP disagree are still found (Texas dentists with Louisiana ZIPs; a Vermont
hospital with a New Hampshire ZIP). Vermont's 2,664 counselors came back in 143 requests and 16 seconds on Apify. A state alone,
with no specialty or name, lists every provider there.

#### New providers this week

CMS publishes an incremental NPPES file each week (the week of 2026-11-02 to 2026-11-08 came out on Monday
2026-11-09). This mode reads the newest one, keeps the providers enumerated in that week (not the older NPIs that only
changed something), filters them by your places, type, names and specialties, and delivers each as the registry's
current record. Turn on **Skip providers delivered before** and schedule it to get each new provider once.

#### Input example

```json
{
    "mode": "search",
    "specialties": ["Dentist", "Orthodontics"],
    "states": ["TX"],
    "cities": ["Denver, CO"],
    "providerType": "organization",
    "maxResults": 5000
}
```

New organizations of the week in two states:

```json
{
    "mode": "newProviders",
    "states": ["FL", "GA"],
    "providerType": "organization",
    "skipAlreadyDelivered": true,
    "maxResults": 1000
}
```

Bulk NPI lookup:

```json
{
    "npiNumbers": ["1043458821", "1003000126", "https://npiregistry.cms.hhs.gov/provider-view/1306722293"]
}
```

#### Output example

```json
{
    "rowType": "provider",
    "status": "ok",
    "npi": "1043458821",
    "providerType": "organization",
    "name": "1-800-GO-DENTIST",
    "organizationName": "1-800-GO-DENTIST",
    "organizationalSubpart": false,
    "npiStatus": "active",
    "enumerationDate": "2009-02-01",
    "lastUpdated": "2009-02-01",
    "primaryTaxonomyCode": "1223G0001X",
    "primaryTaxonomyDescription": "Dentist, General Practice",
    "primaryTaxonomyLicense": "22773",
    "primaryTaxonomyState": "TX",
    "taxonomies": [
        { "code": "1223G0001X", "description": "Dentist, General Practice", "license": "22773", "state": "TX", "primary": true, "group": "193400000X - Single Specialty Group" }
    ],
    "practiceAddressLine1": "6262 WEBER RD",
    "practiceAddressLine2": "SUITE 120",
    "practiceCity": "CORPUS CHRISTI",
    "practiceState": "TX",
    "practiceZip": "78413-4006",
    "practicePhone": "361-851-2828",
    "practiceFax": "361-851-2830",
    "practiceAddress": "6262 WEBER RD, SUITE 120, CORPUS CHRISTI, TX 78413-4006",
    "mailingAddress": "6262 WEBER RD, SUITE 120, CORPUS CHRISTI, TX 78413-4006",
    "authorizedOfficialName": "BRADLEY K BARTELLI",
    "authorizedOfficialTitle": "President",
    "authorizedOfficialCredential": "D.M.D",
    "authorizedOfficialPhone": "361-851-2828",
    "otherPracticeLocations": [],
    "otherNames": [],
    "endpoints": [],
    "registryUrl": "https://npiregistry.cms.hhs.gov/provider-view/1043458821",
    "source": "search",
    "query": "Dentist in TX",
    "scrapedAt": "2026-11-14T06:43:57.500Z"
}
```

A deactivated NPI is a free row:

```json
{
    "rowType": "status",
    "status": "deactivated",
    "npi": "1306722293",
    "deactivationDate": "2026-11-02",
    "query": "1306722293",
    "reason": "NPI 1306722293 was deactivated on 2026-11-02: CMS's deactivation report of 2026-11-09 lists it, and the registry no longer shows it."
}
```

### NPI Registry data fields

| field | what it holds |
|---|---|
| `rowType`, `status` | `provider` and `ok` for a provider; `status` and the reason's code for a free status row (below) |
| `npi` | The 10-digit National Provider Identifier |
| `providerType` | `individual` (NPI-1) or `organization` (NPI-2) |
| `name`, `organizationName`, `firstName`, `middleName`, `lastName`, `namePrefix`, `nameSuffix`, `credential` | Legal name; `name` is the organization's, or the person's with credential ("ARDALAN ENKESHAFI, M.D.") |
| `sex`, `soleProprietor` | For individuals, as the registry publishes them |
| `organizationalSubpart`, `parentOrganizationName` | For organizations that are a subpart of another |
| `npiStatus`, `enumerationDate`, `lastUpdated`, `certificationDate` | Status and days, `YYYY-MM-DD` |
| `primaryTaxonomyCode`, `primaryTaxonomyDescription`, `primaryTaxonomyLicense`, `primaryTaxonomyState` | The primary specialty and its licence |
| `taxonomies` | Every taxonomy: code, description, licence, licence state, primary, group |
| `practice…` / `mailing…` | Address lines, city, state, ZIP (`78413-4006`), country, phone and fax (`361-851-2828`), and the whole address in one line |
| `authorizedOfficial…` | For organizations: name, first and last name, title, credential and phone of the authorized official |
| `otherPracticeLocations` | Secondary practice locations with phone and fax |
| `otherNames` | Former legal names, doing-business-as names, other names |
| `identifiers` | Other provider identifiers, when the registry lists them |
| `endpoints` | Direct messaging addresses and FHIR or other exchange endpoints |
| `registryUrl` | The provider's page on npiregistry.cms.hhs.gov |
| `source`, `query` | Which search, NPI or weekly file found it |
| `scrapedAt` | When the row was read, ISO 8601 UTC |

Status rows (`rowType: "status"`, never charged): `not_found`, `deactivated` (with `deactivationDate`), `invalid_npi`,
`no_results`, `no_new`, `capped`, `blocked`, `unreadable`, `invalid_input`, each with a `reason`.

### NPI Registry scraper pricing

- **US$0.001 per provider** (US$1 per 1,000), the same from a search, an NPI lookup or the weekly new providers.
- Free: NPIs not found or deactivated, mistyped NPIs, searches without results, rows read twice while splitting, and
  records left out by "primary specialty only". No start fee.
- Set a maximum cost per run in Apify and the run stops at it.

### Limits

- A single ZIP code with more than 1,200 providers of one type for one search (a hospital's ZIP and "Nurse", say) cannot
  be split further: its first 1,200 come back with a free `capped` row naming the ZIP.
- "New providers this week" reads only CMS's newest weekly file: CMS keeps no older weekly files online. A whole week is
  about 12,000 providers, one registry request each; narrow it by state or type for a faster run.
- Taxonomy descriptions come from the registry itself; the Actor searches by the words of a description, not by code.
- The registry lists active NPIs only. "Deactivated" is read from CMS's monthly deactivation report, so an NPI deactivated
  after the newest report reads as not found.
- A nationwide search past 1,200 rows is split by US ZIP prefix, so a provider with only a foreign address is left
  out of that search (a search under 1,200 rows, or by name, still finds it).

### Is it legal to scrape the NPI Registry?

The NPI Registry is public by design: CMS publishes NPPES data under the Freedom of Information Act through its own
free API and downloadable files, without a login, a key or a robots.txt. This Actor reads only that API
(`npiregistry.cms.hhs.gov/api`) and the files on `download.cms.gov`, at a polite pace, and never solves or bypasses
anything. It is not affiliated with CMS or HHS. The registry holds business information about providers (practice
addresses and phones), not patient data, so HIPAA does not apply to it; contact rules still do (TCPA for calls and
texts, CAN-SPAM for email), and an NPI does not prove that a provider is licensed or credentialed (CMS's own note).

### Your feedback

Something missing or wrong? Open an issue on the Actor's page: it is answered within days.

# Actor input Schema

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

<b>Search</b>: providers by specialty, state, city, ZIP code or name, past the registry's 1,200-row limit. <b>New providers this week</b>: the providers CMS enumerated in the week of its newest weekly NPPES file (new practices and newly licensed clinicians), narrowed by the same fields. NPI numbers below are looked up instead of either.

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

Words of the specialty as the registry describes it: <code>Dentist</code>, <code>Family Medicine</code>, <code>Nurse Practitioner</code>, <code>Physical Therapist</code>, <code>Counselor</code>. A word matches every taxonomy that contains it (<code>Pediatric</code> finds Pediatrics and Nurse Practitioner, Pediatrics). Each specialty is searched in each place.

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

Each state is its own search, read whole: the Actor splits it by ZIP code past the registry's 1,200 rows. A state alone (no specialty or name) lists every provider there.

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

Each city is its own search. Write <code>Austin, TX</code> for one state, or <code>Springfield</code> for every city of that name.

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

A ZIP (<code>78701</code>, matching its ZIP+4s too), a ZIP+4 (<code>78701-1234</code>) or the first 2 to 4 digits for an area (<code>787</code>). Each is its own search.

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

10-digit NPIs or registry links (<code>https://npiregistry.cms.hhs.gov/provider-view/1043458821</code>), for bulk lookup and credentialing. A run with NPIs reads only them: an NPI the registry no longer lists comes back as a free row saying whether CMS deactivated it and when; a mistyped NPI (wrong check digit) is a free row too.

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

An individual's first name; end with <code>\*</code> for names that start with it (at least 2 letters before it).

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

An individual's last name, or its start with <code>*</code> (<code>Smi*</code>). The registry also matches former and other names.

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

An organization's legal or other name, or its start with <code>*</code> (<code>Smile*</code>).

## `providerType` (type: `string`):

Individuals (NPI-1: physicians, dentists, nurses, therapists) or organizations (NPI-2: practices, clinics, hospitals, pharmacies, labs).

## `addressPurpose` (type: `string`):

The registry's own choice: by default a state, city or ZIP matches the practice location or the mailing address.

## `primarySpecialtyOnly` (type: `boolean`):

Keep only providers whose primary taxonomy matches the specialty, not a secondary one. Left-out records are not charged.

## `skipAlreadyDelivered` (type: `boolean`):

For a schedule: skip providers an earlier run of this same input already delivered, so each run delivers (and charges) only new ones.

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

The most providers one run delivers, across all searches.

## Actor input object example

```json
{
  "mode": "search",
  "specialties": [
    "Dentist"
  ],
  "states": [
    "TX"
  ],
  "cities": [],
  "postalCodes": [],
  "npiNumbers": [],
  "firstName": "",
  "lastName": "",
  "organizationName": "",
  "providerType": "any",
  "addressPurpose": "any",
  "primarySpecialtyOnly": false,
  "skipAlreadyDelivered": false,
  "maxResults": 20
}
```

# Actor output Schema

## `providers` (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 = {
    "mode": "search",
    "specialties": [
        "Dentist"
    ],
    "states": [
        "TX"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/npi-registry-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 = {
    "mode": "search",
    "specialties": ["Dentist"],
    "states": ["TX"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/npi-registry-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 '{
  "mode": "search",
  "specialties": [
    "Dentist"
  ],
  "states": [
    "TX"
  ],
  "maxResults": 20
}' |
apify call steadyscrape/npi-registry-scraper --silent --output-dataset

```

## MCP server setup

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