# NPI Registry Provider Lookup — US Practices & Taxonomies (`cliqtomedia/npi-registry-provider-lookup`) Actor

Search CMS NPPES by specialty and practice location, or look up up to 200 NPI numbers. Export taxonomies, published licence details and addresses. Individual contact fields are omitted. Optional only-new NPI results.

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

## Pricing

from $1.40 / 1,000 provider records

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

Search the CMS NPPES NPI Registry for US providers by taxonomy and practice location, or look up NPI numbers in a batch. Get provider names, taxonomies, published licence details and practice addresses in an Apify Dataset.

Use it to prepare a provider directory, match NPI numbers or review organization records. The ready-to-use example searches for dentists in Providence, Rhode Island. On the Free tier, 25 delivered providers cost $0.07, including the $0.02 start fee.

![NPI Registry Provider Lookup: batch NPI lookup, taxonomy and practice location search, and Dataset export](https://api.apify.com/v2/key-value-stores/J25x9Q60dqwgMYHrc/records/HERO.png)

### Contents

- [What it does](#what-it-does)
- [Quick start](#quick-start)
- [Input](#input)
- [Output](#output)
- [Pricing](#pricing)
- [Use cases](#use-cases)
- [Only new results](#only-new-results)
- [API and integrations](#api-and-integrations)
- [Limits and partial results](#limits-and-partial-results)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Support](#support)

### What it does

- Search by taxonomy description, state, city, ZIP code, provider type or provider name.
- Look up up to 200 NPI numbers in one input. Duplicate inputs are removed.
- Read pages from NPPES and remove duplicate provider records.
- Save a row for each returned NPI, with the primary taxonomy and all published taxonomies.
- With `onlyNew`, save only NPI numbers that are new to your baseline.

Individual phone numbers, e-mail addresses, fax numbers, authorized official details and digital endpoints are omitted. Organization rows may contain the published practice telephone number. No other data source is used for contact enrichment.

### Quick start

1. Open **Input**.
2. Keep `taxonomyDescription: Dentist`, `state: RI`, `city: Providence` and `maxResults: 25`.
3. Click **Start**.
4. Open the **Providers** output and export the Dataset as JSON, CSV or Excel.
5. Read **Run summary** for the completion status, saved count and missing NPI numbers.

The API returns active registry records. A reached result limit is reported as `partial` even when the requested rows were saved.

### Input

Use `npis` OR search fields. Combining them is an input error. Empty input, a state alone or a provider type alone is also an input error.

| Field                 | Type             | Default / prefill                                       | Limits and effect                                                                              | Recommendation                                       |
| --------------------- | ---------------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| `npis`                | array of strings | Empty                                                   | Up to 200 inputs; 10 digits and a valid NPI checksum. Duplicates are removed.                  | Use quoted strings to preserve the exact identifier. |
| `taxonomyDescription` | string           | No runtime default; form prefill `Dentist`              | Up to 100 characters; searches a description, not a taxonomy code.                             | Use NPPES taxonomy wording.                          |
| `state`               | string           | No runtime default; form prefill `RI`                   | US state/territory abbreviation. Requires another meaningful filter.                           | Add taxonomy, city, ZIP or name.                     |
| `city`                | string           | No runtime default; form prefill `Providence`           | Up to 100 characters; practice location city.                                                  | Combine with state.                                  |
| `postalCode`          | string           | Empty                                                   | Exactly 5 or 9 digits; practice location ZIP.                                                  | Keep leading zeros.                                  |
| `enumerationType`     | string           | Both types                                              | `NPI-1` individual or `NPI-2` organization. Requires another filter.                           | Choose NPI-2 for an organization directory.          |
| `organizationName`    | string           | Empty                                                   | Up to 100 characters; organization name as published.                                          | Combine with NPI-2.                                  |
| `lastName`            | string           | Empty                                                   | Up to 100 characters; a trailing `*` is allowed after at least two characters.                 | Combine with NPI-1 and a location.                   |
| `maxResults`          | integer          | Search: 25; lookup: 1000 when omitted; form prefill: 25 | 1–1000 saved rows per run; source window is bounded to the first 1000 candidates.              | Start small and narrow the search.                   |
| `onlyNew`             | boolean          | `false`                                                 | Save previously unseen NPI numbers within the same search scope.                               | Use only when a persistent baseline is useful.       |
| `stateKey`            | string           | `npi-provider-baseline`                                 | 1–64 letters, digits, `_` or `-`; must start with a letter or digit. Used only with `onlyNew`. | Use a separate namespace for a separate project.     |

Searches use practice locations (`address_purpose=LOCATION`), rather than mailing addresses. The output contains the primary practice address; a match may come from another practice location in the source record.

#### Dentists in Providence

```json
{
  "taxonomyDescription": "Dentist",
  "state": "RI",
  "city": "Providence",
  "maxResults": 25
}
```

#### Organization lookup

Clear the prefilled search fields before switching to lookup.

```json
{
  "npis": ["1225787708"],
  "maxResults": 10
}
```

### Output

The Dataset contains provider rows. `RUN_SUMMARY` in the default key-value store records the outcome. Missing NPI numbers do not create provider rows.

#### Example

This is a trimmed real organization record from the Providence dentist search. Null means that the source did not publish a value in the selected field, or the contact policy omits it.

```json
{
  "npi": "1225787708",
  "type": "NPI-2",
  "name": "31 ELMGROVE DENTAL LLC",
  "organization": "31 ELMGROVE DENTAL LLC",
  "credential": null,
  "primaryTaxonomy": {
    "code": "1223G0001X",
    "description": "Dentist, General Practice",
    "primary": true,
    "licenseNumber": null,
    "licenseState": null
  },
  "practiceAddress": {
    "address1": "31 ELMGROVE AVE",
    "address2": null,
    "city": "PROVIDENCE",
    "state": "RI",
    "postalCode": "029064103",
    "countryCode": "US"
  },
  "phone": "401-421-9350",
  "status": "A",
  "enumerationDate": "2022-03-22",
  "lastUpdated": "2022-03-22"
}
```

#### Provider fields

| Field                                                           | Type / can be null           | Meaning / example                                                      |
| --------------------------------------------------------------- | ---------------------------- | ---------------------------------------------------------------------- |
| `npi`                                                           | string / no                  | Unique 10-digit NPI, such as `1225787708`.                             |
| `type`                                                          | string / no                  | `NPI-1` or `NPI-2`.                                                    |
| `name`                                                          | string / no                  | Published organization name, or joined individual name parts.          |
| `organization`                                                  | string / yes                 | Organization name for NPI-2; null for NPI-1.                           |
| `credential`                                                    | string / yes                 | Published credential, such as `DDS`; not verification.                 |
| `primaryTaxonomy`                                               | object / yes                 | First taxonomy marked primary; null if none is marked.                 |
| `taxonomies`                                                    | array / no                   | All taxonomies returned by NPPES; may be empty.                        |
| `primaryTaxonomy.code`, `taxonomies[].code`                     | string / no within an object | Published taxonomy code, such as `1223G0001X`.                         |
| `primaryTaxonomy.description`, `taxonomies[].description`       | string / no within an object | Published taxonomy description.                                        |
| `primaryTaxonomy.primary`, `taxonomies[].primary`               | boolean / no                 | Whether NPPES marks the taxonomy as primary.                           |
| `primaryTaxonomy.licenseNumber`, `taxonomies[].licenseNumber`   | string / yes                 | Licence number exactly as published; no current licence check.         |
| `primaryTaxonomy.licenseState`, `taxonomies[].licenseState`     | string / yes                 | State for the published licence.                                       |
| `practiceAddress`                                               | object / yes                 | First address marked LOCATION; mailing addresses are omitted.          |
| `practiceAddress.address1`, `.address2`                         | string / yes                 | Published address lines.                                               |
| `practiceAddress.city`, `.state`, `.postalCode`, `.countryCode` | string / yes                 | Published location fields; ZIP remains a string.                       |
| `phone`                                                         | string / yes                 | Organization practice phone only; always null for individuals.         |
| `contactPolicy`                                                 | string / no                  | `individual_contacts_omitted` or `registry_practice_phone_only`.       |
| `enumerationDate`                                               | string / yes                 | NPI enumeration date, usually YYYY-MM-DD.                              |
| `lastUpdated`, `sourceUpdatedAt`                                | string / yes                 | Last source record update date; not the fetch time.                    |
| `status`                                                        | string / no                  | Source registry status, usually `A`.                                   |
| `provider`                                                      | string / no                  | `CMS NPPES NPI Registry`.                                              |
| `sourceUrl`                                                     | string / no                  | Public provider record URL.                                            |
| `fetchedAt`                                                     | string / no                  | ISO time when the record was processed in this run.                    |
| `dataLicense`                                                   | string / no                  | Public NPPES dissemination under FOIA; no separate API licence stated. |

#### Run summary

| Field                                  | Meaning                                                                           |
| -------------------------------------- | --------------------------------------------------------------------------------- |
| `status`                               | `complete`, `partial`, `not_found` or `error`.                                    |
| `reason`                               | Null for normal completion, otherwise a safe reason code.                         |
| `found`, `saved`, `unchanged`          | Unique providers seen, delivered rows and baseline matches.                       |
| `requests`, `retries`, `responseBytes` | Actual source attempts, retries and received bytes.                               |
| `notFoundNpis`                         | Looked-up NPI numbers with no active registry result.                             |
| `unprocessedNpis`                      | Inputs not completed before a limit or failure.                                   |
| `startedAt`, `finishedAt`              | Run processing timestamps.                                                        |
| `datasetId`                            | Default Dataset identifier.                                                       |
| `chargedProviders`                     | Provider-result events reported by Apify; zero during local unpriced development. |

### Pricing

Pay per delivered provider, plus **$0.02 per run** for the automatic start event at the supported 256 MB memory. The start fee also applies to valid empty searches, missing NPI batches and unchanged onlyNew runs. There is no per-request charge from NPPES.

| Apify tier              | Per provider | Per 1000 providers, before start fee |
| ----------------------- | -----------: | -----------------------------------: |
| Free                    |      $0.0020 |                                $2.00 |
| Bronze                  |      $0.0018 |                                $1.80 |
| Silver                  |      $0.0016 |                                $1.60 |
| Gold, Platinum, Diamond |      $0.0014 |                                $1.40 |

| Delivered providers                 | Free total | Gold+ total |
| ----------------------------------- | ---------: | ----------: |
| 0, including up to 200 missing NPIs |     $0.020 |      $0.020 |
| 1                                   |     $0.022 |     $0.0214 |
| 10                                  |     $0.040 |      $0.034 |
| 25                                  |     $0.070 |      $0.055 |
| 100                                 |     $0.220 |      $0.160 |
| 1000                                |     $2.020 |      $1.420 |

These are event charges before any tax or separately retained storage. The developer pays the run's platform compute and standard run storage/traffic under this pay-per-event model. A persistent onlyNew baseline in your account may have storage costs outside the run.

Missing NPI numbers and baseline matches do not create provider-result events. Delivered rows remain billable if a later source request fails. A customer charge limit stops delivery with `partial` and `CHARGE_LIMIT`; that run succeeds. Set a budget that covers the start fee and the number of providers you need. At the Free tier, a $2.00 cap can deliver at most 990 providers after the $0.02 start fee.

### Use cases

| Task                              | Input                   | Useful output                                                     |
| --------------------------------- | ----------------------- | ----------------------------------------------------------------- |
| Build a practice directory        | Taxonomy + state + city | NPI, organization, taxonomy, practice address                     |
| Match an existing NPI list        | `npis`                  | NPI, name, type, source dates and missing-number summary          |
| Review published taxonomy details | Name or NPI             | Primary taxonomy, all taxonomy codes and published licence fields |

### Only new results

Set `onlyNew: true` and keep the same `stateKey` and filters between runs. Your baseline lives in the named key-value store `npi-provider-baselines` in your Apify account. The first run saves all returned providers; later runs omit NPIs already delivered. This mode tracks new identifiers, rather than edits to existing records.

Search filters are part of the baseline scope. `maxResults` is not, so increasing it can discover additional NPIs. Lookup lists are sorted for scope identity. Unseen baseline entries remain in history; only delivered rows are added. The baseline supports up to 100,000 identifiers per scope. Do not run the same scope concurrently: storage writes are not a transactional lock. Named storage may have storage costs. Use your own retention policy when the baseline is no longer needed.

Scheduling is optional and must be set up in your own account. No schedule is created by this Actor.

### API and integrations

Run the Actor through the Apify API or SDK using the same JSON input. Read the default Dataset and `RUN_SUMMARY`; join records by `npi`. Dataset exports support JSON, CSV and Excel through Apify.

#### Use with AI agents (MCP)

After the Actor is available to your account, use [Apify MCP](https://mcp.apify.com?tools=cliqtomedia/npi-registry-provider-lookup) with this input:

```json
{ "taxonomyDescription": "Dentist", "state": "RI", "city": "Providence", "maxResults": 25 }
```

Key fields are `npi` (identifier), `name` (provider name), `primaryTaxonomy` (specialty), `practiceAddress` (location) and `sourceUpdatedAt` (source record date). The 25-record example costs $0.07 on the Free tier and usually finishes in a few seconds. Time depends on the registry. Search source work is limited to two minutes; lookup source work is limited to four minutes, plus time to save the output.

### Limits and partial results

- Up to 200 NPI inputs and 1000 saved providers. NPPES returns at most 200 records per request. This Actor scans the first 1000 candidates, rather than the whole national registry.
- Search results are a bounded live sample. They are not a snapshot of a fixed total, and source records can change between pages.
- Up to 220 source attempts, 4 MiB per response and 8 MiB across a run. Requests are serial with at least 1.1 seconds between attempts. Retries respect Retry-After within the shared deadline.
- Search source work stops after 120 seconds; lookup source work stops after 240 seconds. Both stop before the platform timeout. A large batch may therefore stop before all NPIs are processed.
- `MAX_RESULTS` means the saved-row cap was reached; narrow filters or raise the cap within the allowed range. `SOURCE_WINDOW_LIMIT` means the scanned source window ended.
- A source error fails the run and writes `error`, or `partial` if rows were already saved. Existing Dataset rows remain available. An input error also fails the run.
- [NPI Registry](https://npiregistry.cms.hhs.gov/api-page) provides active records. A missing result may be unknown, unavailable or deactivated; the API alone cannot tell which. [CMS publishes deactivation information separately](https://www.cms.gov/medicare/regulations-guidance/administrative-simplification/data-dissemination).
- NPI issuance does not prove a current licence, credential, quality, insurance participation or Medicare enrolment. Data may contain outdated information supplied by providers.

### Troubleshooting

| Symptom                                                       | Likely cause                                           | Action                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------- |
| Input error before source requests                            | Bad checksum, mixed modes or unsupported filter        | Review the input fields. Clear search prefills for lookup.           |
| Empty Dataset with `not_found`                                | No active record matches                               | Check spelling, taxonomy wording and filters; review `notFoundNpis`. |
| Empty Dataset with `complete` and `unchanged > 0`             | All returned NPIs were already in the onlyNew baseline | Use `onlyNew: false` for a full export.                              |
| `partial` and `CHARGE_LIMIT`                                  | Customer budget reached                                | Increase the permitted charge or request fewer providers.            |
| `SOURCE_RATE_LIMIT`, `SOURCE_TIMEOUT` or `SOURCE_UNAVAILABLE` | Registry throttling or an outage                       | Wait and retry a small request. Preserve the existing Dataset.       |
| `BASELINE_INVALID` or `BASELINE_SAVE_ERROR`                   | Invalid baseline or a storage problem                  | Check your named KVS; use a new stateKey for a fresh history.        |

### FAQ

#### Is an NPPES API key needed?

No. The source endpoint is public. Apify API or MCP access still uses your Apify account permissions.

#### Does this verify a medical licence?

No. It returns published taxonomy and licence fields. Check the relevant licensing authority when verification is needed.

#### Can I get doctors' e-mail addresses or personal phone numbers?

No. Individual contact fields are omitted, and no contact enrichment is performed.

#### Does onlyNew detect changed addresses?

No. It tracks previously unseen NPI numbers. Use a full export and compare records in your own system for edits.

#### Can I export the whole US registry?

No. Use the CMS downloadable files for national bulk coverage. This Actor supports bounded searches and lookup batches.

### Support

Use the Actor's Apify Issues tab for a bug or question. Include the run ID, input mode and safe error code. Do not send API tokens or private contact lists.

# Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/npi-registry-provider-lookup/changelog.md

# Actor input Schema

## `npis` (type: `array`):

Up to 200 distinct 10-digit NPI numbers with valid checksums. Use numbers OR search filters. Duplicate numbers are removed. Missing records are listed in RUN_SUMMARY.

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

Maximum saved providers, 1–1000. Search default is 25; lookup default is 1000 when omitted. A reached maximum is reported as partial. Narrow search filters for useful results.

## `onlyNew` (type: `boolean`):

Compare with your named KVS baseline and save previously unseen NPI numbers only. Does not detect changes to existing providers. Do not run the same stateKey and search concurrently.

## `stateKey` (type: `string`):

Baseline namespace, 1–64 letters, numbers, underscores or hyphens, starting with a letter or number. Used only with onlyNew; distinct search scopes get separate keys.

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

Taxonomy description, not a taxonomy code. Example: Dentist. Use the source taxonomy wording.

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

US state or territory abbreviation. Must be combined with taxonomy, city, postal code or name. Searches practice locations.

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

Practice location city, up to 100 characters. Combine with state for a narrow search.

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

Practice location ZIP code: exactly 5 or 9 digits. Preserve leading zeros.

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

Empty selects both types; NPI-1 selects individuals and NPI-2 organizations. Cannot be the only search criterion.

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

Published organization name, up to 100 characters. Use with NPI-2 for organizations.

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

Published individual last name, up to 100 characters. A trailing \* is allowed after at least two characters. Use with NPI-1.

## Actor input object example

```json
{
  "maxResults": 25,
  "onlyNew": false,
  "stateKey": "npi-provider-baseline",
  "taxonomyDescription": "Dentist",
  "state": "RI",
  "city": "Providence",
  "enumerationType": ""
}
```

# 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 = {
    "maxResults": 25,
    "taxonomyDescription": "Dentist",
    "state": "RI",
    "city": "Providence"
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/npi-registry-provider-lookup").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 = {
    "maxResults": 25,
    "taxonomyDescription": "Dentist",
    "state": "RI",
    "city": "Providence",
}

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/npi-registry-provider-lookup").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 '{
  "maxResults": 25,
  "taxonomyDescription": "Dentist",
  "state": "RI",
  "city": "Providence"
}' |
apify call cliqtomedia/npi-registry-provider-lookup --silent --output-dataset

```

## MCP server setup

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

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/LsEMTEcvXRfnxvWJN/builds/Q3fKLgVcPKfZ2f7d8/openapi.json
