# NPI Registry Provider Search (`recorddesk/npi-registry-provider-search`) Actor

Search public NPPES provider registrations by location, taxonomy and organization.

- **URL**: https://apify.com/recorddesk/npi-registry-provider-search.md
- **Developed by:** [Record Desk](https://apify.com/recorddesk) (community)
- **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 results

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

### What does NPI Registry Provider Search do?

**NPI Registry Provider Search** searches the public US **NPPES NPI Registry** for **healthcare providers and organizations** by city, postal code, specialty (taxonomy) or organization name. Each record includes the **NPI number**, provider or organization name, credential, specialties with taxonomy codes, practice and mailing addresses, phone numbers, the authorized official for organizations, and enumeration and update dates.

Use it to build a provider list for a market, enrich your own records with NPI data, or keep a directory up to date with scheduled runs.

### Who uses it

- **Healthcare sales and marketing teams** (medical devices, pharma, clinic software) building target lists by city and specialty.
- **Medical billing, revenue cycle and credentialing companies** looking up providers and organizations.
- **Healthcare recruiters and staffing agencies** mapping practices in a region.
- **Directory and data teams** refreshing provider listings.
- **Researchers and analysts** studying provider supply by location or specialty.

### Features

- Search by **city, postal code, specialty description or organization name**, optionally narrowed by state and provider type (individual `NPI-1` or organization `NPI-2`).
- Up to **1,200 records per search**, with every specialty and address normalized into consistent fields.
- **Only new since last run**: skip NPI numbers already delivered for the same search.
- Export as **CSV, Excel, JSON, XML or HTML**, or read results through the Apify API.
- Schedule runs, connect webhooks, or use integrations such as Zapier, Make and n8n.
- No login, browser or proxy needed: data comes from the official CMS NPI Registry API.

### How to use

1. Open the Actor in Apify Console and sign in (a free account works).
2. Enter at least one of `city`, `postalCode`, `taxonomyDescription` (for example `Dentist`) or `organizationName`. Add `state` and `enumerationType` to narrow the search.
3. Set `maxItems` to cap the number of records (and the cost).
4. Click **Start** and wait a few seconds.
5. Download the results from the **Output** tab, or connect them to your tools.
6. To track newly registered providers, create a **schedule** with the same search and `onlyNew` set to `true`.

### How much does it cost?

You pay **$0.002 per provider record** ($2.00 per 1,000), plus $0.00005 per run start. Platform compute is included in that price. A search that finds nothing costs only the start fee.

| What you collect | Approximate cost |
| --- | --- |
| The 25-record sample from the prefilled input | $0.05 |
| 500 providers | $1.00 |
| 1,200 providers (the maximum for one search) | $2.40 |

Apify's free plan includes $5 of monthly platform credit, which covers about 2,500 records at this price. Set `maxItems` to control spend; a run also stops when it reaches the charge limit you set.

### Input

Supply at least one of `city`, `postalCode`, `taxonomyDescription` or `organizationName`. The API does not accept state-only searches, even with a provider type.

| Field | Meaning | Default |
| --- | --- | --- |
| enumerationType | `NPI-1` individual or `NPI-2` organization | Unset |
| state | Two uppercase letter state code | Unset |
| city | City name | Unset |
| postalCode | Postal code | Unset |
| taxonomyDescription | Specialty description | Unset |
| organizationName | Registered organization name | Unset |
| maxItems | Integer from 1 to 1200; limits collected records | 200 |
| onlyNew | Skip previously seen NPI identifiers | false |

The Store prefill searches for NPI-2 organizations in Seattle, WA, with maxItems 25 and onlyNew false. An empty input requires a search condition.

### Example output

This normalized record comes from the repository fixture. REDACTED placeholders are preserved. Fields missing from source records are null.

```json
{
  "organization_name": "118CLINIC INC.",
  "first_name": null,
  "last_name": null,
  "credential": null,
  "status": "A",
  "enumeration_date": "2014-01-18",
  "last_updated": "2014-01-18",
  "npi": "1093137432",
  "enumeration_type": "NPI-2",
  "taxonomies": [
    {
      "code": "171100000X",
      "description": "Acupuncturist",
      "state": null,
      "license": null
    }
  ],
  "primary_taxonomy": {
    "code": "171100000X",
    "description": "Acupuncturist",
    "state": null,
    "license": null
  },
  "practice_address": {
    "line1": "REDACTED",
    "line2": "REDACTED",
    "city": "SEATTLE",
    "state": "WA",
    "postal_code": "981181759",
    "country_code": "US",
    "phone": "REDACTED",
    "fax": null
  },
  "mailing_address": {
    "line1": "REDACTED",
    "line2": null,
    "city": "SEATTLE",
    "state": "WA",
    "postal_code": "981036431",
    "country_code": "US",
    "phone": "REDACTED",
    "fax": null
  },
  "authorized_official": {
    "first_name": "REDACTED",
    "last_name": "REDACTED",
    "title": "Owner/Practitioner",
    "phone": "REDACTED"
  },
  "other_names": [
    "3RD SPACE COMMUNITY ACUPUNCTURE"
  ],
  "source": "nppes_npi_registry",
  "source_url": "https://npiregistry.cms.hhs.gov/api/?city=Seattle&enumeration_type=NPI-2&limit=200&skip=0&state=WA&version=2.1"
}
```

### Only new since last run

Set `onlyNew` to true for scheduled runs. Successful pushes remember NPI identifiers in persistent state scoped to all six search filters. Repeat runs with identical filters skip those identifiers; different filters use separate state. This detects unseen identifiers, not changes to existing registrations. With `onlyNew` false, each run returns matching records without consulting persistent seen state. Keep it false for the daily Store sample run.

### FAQ

#### Why not use the NPI Registry website?

The registry website is built for looking up providers one search at a time, and the full NPPES download file is very large. This Actor gives you just the slice you need, as clean rows you can open in a spreadsheet, and can repeat the search on a schedule.

#### Can I get every provider in a state?

Not in one search. The registry API requires a city, postal code, specialty or organization name, and returns at most 1,200 records per search. Combine `state` with a specialty, or run one search per city or postal code.

#### Can I use it from code or an AI agent?

Yes. Start runs and read results through the Apify API and its Python and JavaScript clients, or let AI agents call it through the Apify MCP server.

#### Is it legal to use this data?

The Actor reads only records CMS publishes through its public NPI Registry API, with no login or access-control bypass. How you use the records is your responsibility; see the section below.

#### I need another field or filter

Open an issue in the **Issues** tab and describe what you need.

### Source and permitted use

Data comes from the CMS NPPES public NPI Registry API, version 2.1. These are public professional registration records and include individual practitioners. Users are responsible for lawful and compliant use, including privacy obligations and applicable source terms. Public availability does not grant permission for every downstream use; no additional license to source data is granted by this actor.

This actor is not affiliated with or endorsed by CMS, NPPES, or the NPI Registry.

### Limitations

The API pagination ceiling limits a search to 1200 records. Narrow filters when a query is too broad; this actor does not guarantee exhaustive coverage. Registration information may be incomplete or outdated and does not establish current licensure or credential verification. Source errors and changed response formats fail with context. Runs stop when their item or charging limit is reached. Availability and response times depend on the public API.

### More public records Actors

- [FMCSA New Carrier Registrations](https://apify.com/recorddesk/fmcsa-new-carrier-registrations): newly registered US trucking companies with USDOT numbers.
- [UK Contracts Finder Notices](https://apify.com/recorddesk/uk-contracts-finder-notices): UK government tender and award notices.
- [Hacker News Who Is Hiring Postings](https://apify.com/recorddesk/hn-who-is-hiring-postings): job postings from the monthly Hacker News hiring thread.

# Actor input Schema

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

Optional NPI-1 individual or NPI-2 organization.

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

Optional two uppercase letter state code. State alone is not a valid search.

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

City name. Supply at least one of city, postalCode, taxonomyDescription or organizationName.

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

Optional postal code filter.

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

Optional provider specialty or taxonomy description.

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

Optional registered organization name.

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

Maximum records to push; API pagination allows at most 1200.

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

Skip previously seen NPI identifiers for the same filters.

## Actor input object example

```json
{
  "enumerationType": "NPI-2",
  "state": "WA",
  "city": "Seattle",
  "maxItems": 25,
  "onlyNew": false
}
```

# Actor output Schema

## `results` (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 = {
    "enumerationType": "NPI-2",
    "state": "WA",
    "city": "Seattle",
    "maxItems": 25,
    "onlyNew": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("recorddesk/npi-registry-provider-search").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 = {
    "enumerationType": "NPI-2",
    "state": "WA",
    "city": "Seattle",
    "maxItems": 25,
    "onlyNew": False,
}

# Run the Actor and wait for it to finish
run = client.actor("recorddesk/npi-registry-provider-search").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 '{
  "enumerationType": "NPI-2",
  "state": "WA",
  "city": "Seattle",
  "maxItems": 25,
  "onlyNew": false
}' |
apify call recorddesk/npi-registry-provider-search --silent --output-dataset

```

## MCP server setup

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

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/ipZRCRira4TZXPtwN/builds/XEcnLxUAamXWQGoGG/openapi.json
