# NPI Registry Scraper: US Healthcare Providers (`nanodata/npi-registry-scraper`) Actor

Search the official US NPI Registry (NPPES) for healthcare providers and organizations: NPI number, name, specialty, license, practice and mailing address, phone, fax and authorized official. Pay per provider.

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

## Pricing

from $1.50 / 1,000 provider scrapeds

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 Healthcare Providers

Search the US National Provider Identifier (NPI) Registry and export the matching providers as a dataset. The data comes from the official public register published by the Centers for Medicare & Medicaid Services (the NPPES NPI Registry). The actor returns only what the register publishes for each record and adds nothing from other sources.

Use it to build provider lists by state, city, ZIP code or specialty, to check NPI numbers, to keep a local copy of a market segment, or to feed provider data into your own systems.

Data comes from [the NPPES NPI Registry](https://npiregistry.cms.hhs.gov/).

### What you get

For every NPI record:

- NPI number and type (NPI-1 for an individual provider, NPI-2 for an organization)
- Name, credential, name prefix and suffix, and gender when the register publishes it (individuals)
- Organization name, parent organization and sub-part flag (organizations)
- Primary specialty and all specialties, each with taxonomy code, description, license number and license state
- Practice location and mailing address, each with phone and fax when published
- Additional practice locations, other names (for example Doing Business As), other identifiers and endpoints when the register lists them
- Authorized official of an organization: name, title and phone
- Enumeration date, certification date, last update date and status
- A link to the record in the NPI Registry and the time it was read

### Input

| Field | Type | Meaning |
|---|---|---|
| `number` | list | Optional list of 10-digit NPI numbers to look up, one request per number |
| `state` | text | Two-letter state code, for example `CA` |
| `city` | text | City name |
| `postalCode` | text | 5-digit ZIP code, or the first digits such as `902` |
| `taxonomyDescription` | text | Specialty text as the register prints it, for example `Dentist` |
| `enumerationType` | text | `any` (default), `NPI-1` for individuals or `NPI-2` for organizations |
| `firstName`, `lastName` | text | Name of an individual provider, a trailing `*` works as a wildcard |
| `organizationName` | text | Name of an organization, a trailing `*` works as a wildcard |
| `maxResults` | number | Maximum number of providers in total. Default 100 |

At least one search value is needed. The register does not accept a search by state alone, so a search with only a state is read in parts by postal code prefix (see Limitations).

Example: dentists in California.

```json
{
  "state": "CA",
  "taxonomyDescription": "Dentist",
  "enumerationType": "any",
  "maxResults": 40
}
```

Example: organizations in Houston, Texas.

```json
{
  "state": "TX",
  "city": "Houston",
  "enumerationType": "NPI-2",
  "maxResults": 200
}
```

Example: look up NPI numbers.

```json
{
  "number": ["1760813802", "1134040793"]
}
```

### Output sample

```json
{
  "npi": "1760813802",
  "enumerationType": "NPI-2",
  "name": "101 DENTAL GROUP",
  "organizationName": "101 DENTAL GROUP",
  "organizationalSubpart": "NO",
  "primaryTaxonomy": {
    "code": "1223G0001X",
    "description": "Dentist, General Practice",
    "primary": true,
    "license": "54634",
    "state": "CA",
    "group": "193400000X - Single Specialty Group"
  },
  "locationAddress": {
    "line1": "7259 OWENSMOUTH AVE",
    "city": "CANOGA PARK",
    "state": "CA",
    "postalCode": "91303-1530",
    "countryCode": "US",
    "phone": "818-999-9900",
    "fax": "818-999-9978"
  },
  "mailingAddress": {
    "line1": "7259 OWENSMOUTH AVE",
    "city": "CANOGA PARK",
    "state": "CA",
    "postalCode": "91303-1530",
    "countryCode": "US",
    "phone": "818-999-9900",
    "fax": "818-999-9978"
  },
  "authorizedOfficial": {
    "name": "AMIR H CHOROOMI",
    "firstName": "AMIR",
    "middleName": "H",
    "lastName": "CHOROOMI",
    "title": "dentist",
    "phone": "8187353800"
  },
  "enumerationDate": "2013-11-27",
  "lastUpdated": "2013-11-27",
  "status": "Active",
  "sourceUrl": "https://npiregistry.cms.hhs.gov/provider-view/1760813802",
  "scrapedAt": "2026-11-12T07:23:48Z"
}
```

Fields that do not apply to a record are `null` (for example first and last name on an organization, or the authorized official on an individual). Lists that are empty are `[]`.

### Pricing

This actor uses pay per event pricing.

| Event | Name | Price |
|---|---|---|
| Run start, charged once with the first delivered record | `actor-start` | $0.001 |
| One provider record delivered | `provider-result` | $0.0015 |

You are charged only for records that were delivered to the dataset. A run that finds nothing is not charged. Set the maximum charge per run in the run options and the actor stops cleanly when it is reached.

**New to Apify?** Every account gets a $5 free monthly platform credit, enough for a first test run before you pay anything.

### Limitations

- The register returns at most 200 records per request and accepts skip values up to 1000, so one search reaches 1200 records. When a search reaches that limit, the actor splits it by postal code prefix (two digits first, then three, four and five) and reads the parts one after another. Records are delivered once even if a part overlaps another.
- A search with a full 5-digit ZIP code or a 9-digit ZIP code cannot be split further. If such a search holds more than 1200 records, the run says so in its final status. Add a city, a specialty or a provider type to narrow it.
- Reading a large area in parts takes many requests, because every postal code prefix is one request. Requests are sent one at a time with a pause between them, so a run that covers a whole state takes a while.
- The register matches a postal code against all addresses of a record, so a record can appear for a ZIP code that is its mailing address and not its practice location.
- Only active records that the public register returns are available. The actor does not add contact details, email addresses or any data from other sources.
- Names, addresses and phone numbers of individual providers are published by the register under federal rules. You are responsible for using them in line with the laws that apply to you.
- The register can change its response format. If every answer becomes unreadable the run stops with an error and nothing is charged.

### FAQ

**Where does the data come from?**
From the official public register of the US Centers for Medicare & Medicaid Services, the NPPES NPI Registry. The actor reads the register's public search interface.

**Can I search by specialty?**
Yes. Use `taxonomyDescription` with the text the register uses, for example `Dentist`, `Family Medicine` or `Pharmacy`. A trailing `*` works as a wildcard.

**How do I get only individual providers or only organizations?**
Set `enumerationType` to `NPI-1` (individuals) or `NPI-2` (organizations).

**How many records can I get in one run?**
Up to the `maxResults` you set. Searches that reach the register's limit of 1200 records are split by postal code prefix, so large areas are possible. See Limitations.

**What happens if a number is not in the register?**
It is skipped, counted in the final status message and not charged.

**Why is a field `null`?**
The register does not publish every field for every record. Individuals have no organization name, organizations have no gender, and many records have no fax number or certification date.

**Does the run resume after an interruption?**
Yes. Progress is saved after every batch, a resumed run does not repeat delivered records and does not charge them again.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=nanodata/npi-registry-scraper
```

**Example prompt once connected:**

> "Use `npi-registry-scraper` to find 20 cardiologists in Texas in the NPI Registry with their practice address. Return results as a table."

### Related Actors

- [Doctoralia Scraper: Spain Doctors and Clinics by Specialty](https://apify.com/santamaria-automations/doctoralia-scraper): Read the public doctor and clinic lists of Doctoralia Spain by specialty and city: name, specialties, address, coordinates, rating, review count, service prices, online consultation and profile link.
- [Google Maps Scraper: Leads, Emails, Phones & Reviews](https://apify.com/santamaria-automations/google-maps-scraper): Scrape Google Maps places with 30+ fields: name, address, phone, website, rating, reviews, hours, GPS.
- [Website Contact Extractor: AI Contacts, Emails, Phones](https://apify.com/santamaria-automations/website-contact-extractor): Extract structured contacts (name, position, email, phone, LinkedIn) plus emails, phones, socials and address from any company website.

### Support

Found a problem or need a field added? Open an issue on the [Issues tab](https://apify.com/nanodata/npi-registry-scraper/issues). We usually reply within one business day. You can also email contact@nanoscrape.com.

# Actor input Schema

## `number` (type: `array`):

Optional list of 10-digit NPI numbers to look up. When set, the other search values only add an NPI type filter.

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

Two-letter state code, for example CA.

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

City name, for example Houston.

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

5-digit ZIP code, or the first digits of one such as 902.

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

Specialty text as the register prints it, for example Dentist or Family Medicine.

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

any, NPI-1 (individual providers) or NPI-2 (organizations). Default: any.

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

First name of an individual provider. A trailing \* works as a wildcard.

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

Last name of an individual provider. A trailing \* works as a wildcard.

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

Name of an organization. A trailing \* works as a wildcard.

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

Maximum number of providers in total. Default 100.

## Actor input object example

```json
{
  "state": "CA",
  "taxonomyDescription": "Dentist",
  "enumerationType": "any",
  "maxResults": 40
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

One row per NPI record

# 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 = {
    "state": "CA",
    "taxonomyDescription": "Dentist",
    "maxResults": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/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 = {
    "state": "CA",
    "taxonomyDescription": "Dentist",
    "maxResults": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("nanodata/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 '{
  "state": "CA",
  "taxonomyDescription": "Dentist",
  "maxResults": 40
}' |
apify call nanodata/npi-registry-scraper --silent --output-dataset

```

## MCP server setup

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