# NPI Registry: US Doctors & Dentists Leads, Practices, New NPIs (`pikoulas/npi-registry`) Actor

US doctors, dentists, nurses, therapists and clinics from CMS's NPI Registry, by specialty, credential, state, city, ZIP or name: NPI, licence, practice address, phone and fax, past the API's 1,200 limit. Free practice summaries, and new and moved providers on a schedule.

- **URL**: https://apify.com/pikoulas/npi-registry.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (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

from $2.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.
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

## NPI Registry: US Doctors & Dentists Leads, Practices, New NPIs

US healthcare providers from CMS's NPI Registry, the national list every provider who bills
health insurance is in, without an API key: doctors, dentists, nurse practitioners, therapists,
chiropractors, pharmacists, and the practices, clinics, hospitals and pharmacies they work in.

Search them by:

- **Specialties:** CMS's provider types: `Dentist`, `Family Medicine`, `Nurse Practitioner`,
  `Physical Therapist`, `Chiropractor`, `Pharmacy`.
- **Locations:** a state (`TX`), a city (`Austin, TX`), a ZIP (`78701`) or its first digits (`787`).
- **Provider type:** individuals, organizations, or both.
- **Names:** last names or organization names, with `*` for every name that starts with them.
- **NPI numbers:** to look up the providers you have.
- **Registered within days:** providers new to the registry.
- **Credentials:** only MDs and DOs, or NPs and PAs, or DDSs and DMDs.
- **Primary specialty only:** the providers whose main specialty is the one searched, not those that
  list it second.

Each provider comes with its NPI, name and credential, specialty and taxonomy code, licence number
and state, practice address, phone and fax, its other practice locations, every taxonomy it lists,
an organization's other names (doing business as), the date its NPI was issued and last updated,
and a link to its page in the registry. Mailing addresses are left out, and so are organizations'
authorized officials and individuals' sex and former names.

CMS's API gives at most 1,200 providers a search; this Actor splits a larger search by provider type
and ZIP code until it has them all. It costs **$2 per 1,000 providers**.

And two things the registry doesn't do:

- **Practices:** a free item per practice address the providers share, largest first: its phones and
  fax, the organizations there, how many providers, and their specialties and credentials. Medical
  and dental sales sell to practices; this is the list of them.
- **New and moved providers:** with a **Memory name** on a schedule, each provider says whether it's
  new since the last run, and the address, phone or specialty it had before if they changed;
  **New and changed providers only** gives just those. A provider who moves into your territory
  shows up, which **Registered within days** can't tell.

### What people use it for

- **Healthcare sales and marketing:** dentists, chiropractors or clinics in your territory, with
  their practice phone and address, for medical, dental and software sales.
- **Credentialing and verification:** check NPIs, specialties and licence numbers in bulk.
- **Network and market research:** how many providers of a specialty practise in a city or ZIP.
- **New practices:** providers whose NPI was issued in the last weeks, and those who moved in.
- **Account lists:** the group practices in a city, with how many dentists or physicians each has.

### How to get US healthcare providers

1. Click **Try for free**; Apify's free plan covers a first run.
2. Enter **Specialties** and **Locations**, or **Names** or **NPI numbers**.
3. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through
   the API.

An input with more options:

```json
{
  "specialties": ["Chiropractor", "Physical Therapist"],
  "locations": ["TX", "OK"],
  "providerType": "individual",
  "registeredWithinDays": 90,
  "maxResults": 0
}
```

Every week, the dentists new to Austin or moved within it, and the practices of a first run:

```json
{
  "specialties": ["Dentist"],
  "locations": ["Austin, TX"],
  "credentials": ["DDS", "DMD"],
  "primarySpecialtyOnly": true,
  "practiceSummaries": true,
  "memory": "austin-dentists",
  "onlyChanges": true,
  "maxResults": 0
}
```

The first run gave all 895 of Austin's dentists with DDS or DMD, primary specialty dentistry, and 701
practices, in 10 seconds; the next, the same day, none. The memory is kept in your account's key-value
store `npi-registry-memory`, one record per **Memory name**; a provider not seen for a year is forgotten.

Each specialty is searched in each location, and a provider found by more than one search comes
once. A specialty matches CMS's taxonomy descriptions that contain it: `Dentist` finds general
dentists, pediatric dentists and orthodontists. A location matches any of a provider's practice
locations, so a few come with a main address elsewhere.

### Output

```json
{
  "npi": "1639597222",
  "type": "Organization",
  "name": "AUSTIN CENTRAL PARK PEDIATRIC DENTISTRY",
  "credential": null,
  "firstName": null,
  "lastName": null,
  "specialty": "Dentist, Pediatric Dentistry",
  "taxonomyCode": "1223P0221X",
  "licenseNumber": "28784",
  "licenseState": "TX",
  "address": "1005 W 38TH ST STE 200",
  "address2": null,
  "city": "AUSTIN",
  "state": "TX",
  "zip": "78705-1042",
  "country": "US",
  "phone": "512-330-4624",
  "fax": null,
  "otherLocations": [
    {
      "address": "4308 N QUINLAN PARK RD STE 201",
      "address2": null,
      "city": "AUSTIN",
      "state": "TX",
      "zip": "78732-6071",
      "country": "US",
      "phone": "512-330-4624",
      "fax": "512-583-4653"
    },
    {
      "address": "13341 W US 290",
      "address2": "BUILDING 1-106",
      "city": "AUSTIN",
      "state": "TX",
      "zip": "78737",
      "country": "US",
      "phone": "512-330-4624",
      "fax": "512-330-4653"
    }
  ],
  "taxonomies": [
    {
      "code": "1223P0221X",
      "description": "Dentist, Pediatric Dentistry",
      "primary": true,
      "license": "28784",
      "state": "TX"
    }
  ],
  "otherNames": [
    {
      "type": "Doing Business As",
      "name": "CENTRAL PARK PEDIATRIC DENTISTRY"
    }
  ],
  "parentOrganization": null,
  "soleProprietor": null,
  "registered": "2014-04-01",
  "lastUpdated": "2024-10-21",
  "url": "https://npiregistry.cms.hhs.gov/provider-view/1639597222",
  "searchSpecialty": "Pediatric Dentistry",
  "searchLocation": "Austin, TX"
}
```

A practice, from that run:

```json
{
  "type": "practice",
  "address": "1210 W BRAKER LN",
  "address2": null,
  "city": "AUSTIN",
  "state": "TX",
  "zip": "78758",
  "phones": ["512-978-9880"],
  "fax": "512-279-2556",
  "providers": 8,
  "individuals": 8,
  "organizations": [],
  "specialties": {"Dentist": 4, "Dentist, General Practice": 2, "Dentist, Dental Public Health": 2},
  "credentials": {"DDS": 6, "DMD": 2},
  "npis": ["1750497210", "1487819074", "1154437606", "1023217346", "1720372725", "1396816492", "1104155647", "1801906391"]
}
```

A practice is one practice address (street, suite and ZIP); its counts cover the providers the run
gave. With a **Memory name**, each provider also has `isNew`, and `previousAddress`, `previousPhone`
and `previousSpecialty` where they changed.

`registered` is the date the NPI was issued. The licence is the one listed with the main specialty;
`taxonomies` lists every specialty with its own. An individual's `name` is as the registry gives it,
with `firstName` and `lastName` apart.

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a
run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n
integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~npi-registry/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN"   -H "Content-Type: application/json"   -d '{"specialties": ["Dentist"], "locations": ["Austin, TX"], "maxResults": 0}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/npi-registry`.

### How much does it cost to get NPI Registry data?

You pay **$0.002 per provider**, which is $2 per 1,000, on Apify's paid plans, and $3 per 1,000 on
the free plan. There are no monthly fees, and a search that finds nothing costs nothing. Practice
items are free, and so are the providers **New and changed providers only** leaves out. Set a
spending limit on a run and it stops there with what it has.

### Good to know

- The registry is updated daily. Issuance of an NPI doesn't mean a provider is licensed or
  credentialed, as CMS notes.
- Speed: all 1,480 dentists in Austin take about 10 seconds; all of Texas's (30,514) about 5
  minutes.
- A single ZIP with more than 1,200 providers of one search and type gives its first 1,200, and the
  log says which; add a specialty to narrow it.
- **Registered within days** filters what the search finds, so the whole search is read: a state
  with no specialty takes long; add one.
- It reads CMS's NPI Registry API as a guest: it names itself in its User-Agent (`NPIRegistryActor`),
  keeps half a second between requests, from one address and without a proxy. If CMS refuses, the
  run stops there with what it has, and the log says so.

### FAQ

#### Where does the data come from?

From the [NPI Registry](https://npiregistry.cms.hhs.gov/) of the Centers for Medicare & Medicaid
Services, which publishes the providers' data that the Freedom of Information Act makes public, free
and without an account. Providers report it to CMS, which doesn't check it; a provider can't opt
out of it while the NPI is active. Your use of the data is your own responsibility, including the
rules on marketing to healthcare providers where you are; if you're unsure, ask a lawyer.

This Actor isn't affiliated with or endorsed by CMS or the US Department of Health and Human
Services.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

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

Words from CMS's taxonomy of provider types: Dentist, Family Medicine, Nurse Practitioner, Physical Therapist, Chiropractor, Pharmacy. Each is searched on its own.

## `locations` (type: `array`):

Where they practise: a state (TX), a city and its state (Austin, TX), a ZIP (78701) or its first digits (787).

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

Individual providers, organizations, or both.

## `names` (type: `array`):

Individuals' last names or organizations' names; end one with \* for every name that starts with it (smi\*).

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

Look up these 10-digit NPIs.

## `registeredWithinDays` (type: `integer`):

Only providers whose NPI was issued in the last this many days. The search is read whole and filtered, so narrow it with a specialty and location.

## `credentials` (type: `array`):

Only individuals holding one of these, as they write them after their name: MD, DO, NP, PA, DDS, DMD, PT. Dots and case don't matter.

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

Only providers whose primary specialty is the one searched; the registry also finds those that list it second.

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

For the whole run; 0 for all.

## `practiceSummaries` (type: `boolean`):

A free item per practice address the providers given share, most providers first: its phones and fax, the organizations there, how many providers, and their specialties and credentials.

## `memory` (type: `string`):

Keeps each provider's practice address, phone and specialty, in your account's key-value store npi-registry-memory, for the next run with the same name: each provider then has isNew, and previousAddress, previousPhone and previousSpecialty where they changed. One per schedule; a provider not seen for a year is forgotten.

## `onlyChanges` (type: `boolean`):

With a memory, gives only the providers new to it or that moved, changed their phone or their specialty: new providers in your territory, run after run. Only those given are charged.

## Actor input object example

```json
{
  "specialties": [
    "Dentist"
  ],
  "locations": [
    "Austin, TX"
  ],
  "providerType": "all",
  "primarySpecialtyOnly": false,
  "maxResults": 20,
  "practiceSummaries": false,
  "onlyChanges": false
}
```

# Actor output Schema

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

No description

## `practices` (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 = {
    "specialties": [
        "Dentist"
    ],
    "locations": [
        "Austin, TX"
    ],
    "maxResults": 20
};

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

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

```

## MCP server setup

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

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/OQR9CwJeGo9WvLpXR/builds/cIWOlblIMPpAbPPCS/openapi.json
