# NPI Registry API - Healthcare Provider Lookup & Enrichment (`makework36/npi-registry-api`) Actor

Search 6M+ US healthcare providers from NPI Registry. Phone, taxonomy, CEO contact + Google-enriched website, reviews, emails.

- **URL**: https://apify.com/makework36/npi-registry-api.md
- **Developed by:** [deusex machine](https://apify.com/makework36) (community)
- **Categories:** Lead generation, Business, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## NPI Registry API — Healthcare Provider Lookup & Enrichment

Search the U.S. NPI Registry (6M+ healthcare providers) and optionally enrich each provider with Google data: website, LinkedIn, social profiles, and secondary emails harvested from the provider's homepage.

### What you get per provider

- **NPI #** and enumeration type (individual / organization)
- **Provider name** (first + last + credential) or **organization name**
- **Authorized official** (CEO / Medical Director name, title, phone)
- **Primary taxonomy** (specialty code + description + license)
- **Location address** (line, city, state, ZIP, phone, fax)
- **Mailing address**
- **Status, enumeration date, last updated**
- **Google enrichment** *(optional, +2-4s/record)*: website, LinkedIn company page, Facebook page, secondary emails parsed from the website

### Input modes

1. **Free-text search** — by city, state, ZIP, name, specialty (taxonomy).
2. **By NPI #** — look up specific 10-digit NPI numbers (bulk).

### Example input — find dentists in Dallas, TX

```json
{
  "searchMode": "search",
  "state": "TX",
  "city": "Dallas",
  "taxonomyDescription": "Dentist",
  "maxResults": 100,
  "enrichWithGoogle": true,
  "enrichLimit": 25
}
````

### Example output (single record)

```json
{
  "npi": "1487344586",
  "enumerationType": "NPI-2",
  "organizationName": "1 FAMILY CLINIC INC",
  "authorizedOfficial": {
    "firstName": "MANEESH",
    "lastName": "SINGHAL",
    "title": "CEO/ Medical Director",
    "phone": "2132639095"
  },
  "primaryTaxonomy": {
    "code": "207QG0300X",
    "description": "Family Medicine, Geriatric Medicine"
  },
  "locationAddress": {
    "line1": "701 N ALVARADO ST STE B",
    "city": "LOS ANGELES",
    "state": "CA",
    "postalCode": "900264005",
    "phone": "213-263-9095"
  },
  "enrichment": {
    "website": "https://1familyclinic.com",
    "linkedinUrl": "https://www.linkedin.com/company/1-family-clinic",
    "secondaryEmails": ["info@1familyclinic.com"]
  }
}
```

### Pricing

Pay-per-result. The free NPI Registry lookup is included; the Google enrichment step is charged per enriched record (each enrichment runs one SERP search + one website fetch).

### Use cases

- MedTech and pharma B2B prospecting
- Healthcare staffing and locum tenens recruitment
- Insurance network discovery
- Telehealth platform onboarding
- Medical SaaS sales (EHR, RCM, scheduling)
- Provider directory enrichment and verification
- Local-SEO and reputation management for clinics

### Data source

This actor wraps the public **NPI Registry API** maintained by CMS (Centers for Medicare & Medicaid Services). Data is public-domain federal data. Optional enrichment uses publicly accessible search engine results and the provider's own public website.

# Actor input Schema

## `searchMode` (type: `string`):

How to query NPI Registry: by free-text search, or by specific NPI numbers.

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

List of 10-digit NPI numbers to look up. Used only when searchMode = byNpi.

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

Partial match on organization name. Used in search mode.

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

Provider first name (individual NPIs). Used in search mode.

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

Provider last name (individual NPIs). Used in search mode.

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

City of the provider's practice location.

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

US state abbreviation, e.g. CA, TX, NY.

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

US ZIP code of the provider's practice location.

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

Specialty keyword (e.g. "Dentist", "Family Medicine", "Pediatric").

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

NPI-1 = individual, NPI-2 = organization.

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

Hard cap on records to return (API pages 200 at a time).

## `enrichWithGoogle` (type: `boolean`):

For each provider, find website, LinkedIn, Facebook page, and secondary emails using a web search powered by an internal SERP fetcher. No API key required. Adds ~2-4s per provider.

## `enrichLimit` (type: `integer`):

Max number of providers to enrich. Capped to keep runtime bounded.

## `proxyConfig` (type: `object`):

Apify proxy for Google enrichment requests.

## Actor input object example

```json
{
  "searchMode": "search",
  "npiNumbers": [],
  "enumerationType": "",
  "maxResults": 200,
  "enrichWithGoogle": false,
  "enrichLimit": 50,
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `providers` (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 = {
    "npiNumbers": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("makework36/npi-registry-api").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 = { "npiNumbers": [] }

# Run the Actor and wait for it to finish
run = client.actor("makework36/npi-registry-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "npiNumbers": []
}' |
apify call makework36/npi-registry-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=makework36/npi-registry-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "NPI Registry API - Healthcare Provider Lookup & Enrichment",
        "description": "Search 6M+ US healthcare providers from NPI Registry. Phone, taxonomy, CEO contact + Google-enriched website, reviews, emails.",
        "version": "1.0",
        "x-build-id": "PID1fjy6JJUbqgHAy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/makework36~npi-registry-api/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-makework36-npi-registry-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/makework36~npi-registry-api/runs": {
            "post": {
                "operationId": "runs-sync-makework36-npi-registry-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/makework36~npi-registry-api/run-sync": {
            "post": {
                "operationId": "run-sync-makework36-npi-registry-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchMode": {
                        "title": "Search mode",
                        "enum": [
                            "search",
                            "byNpi"
                        ],
                        "type": "string",
                        "description": "How to query NPI Registry: by free-text search, or by specific NPI numbers.",
                        "default": "search"
                    },
                    "npiNumbers": {
                        "title": "NPI numbers (one per line)",
                        "type": "array",
                        "description": "List of 10-digit NPI numbers to look up. Used only when searchMode = byNpi.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "organizationName": {
                        "title": "Organization name (contains)",
                        "type": "string",
                        "description": "Partial match on organization name. Used in search mode."
                    },
                    "firstName": {
                        "title": "Provider first name",
                        "type": "string",
                        "description": "Provider first name (individual NPIs). Used in search mode."
                    },
                    "lastName": {
                        "title": "Provider last name",
                        "type": "string",
                        "description": "Provider last name (individual NPIs). Used in search mode."
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "City of the provider's practice location."
                    },
                    "state": {
                        "title": "State (2-letter code)",
                        "pattern": "^[A-Za-z]{2}$",
                        "type": "string",
                        "description": "US state abbreviation, e.g. CA, TX, NY."
                    },
                    "postalCode": {
                        "title": "Postal code (ZIP)",
                        "type": "string",
                        "description": "US ZIP code of the provider's practice location."
                    },
                    "taxonomyDescription": {
                        "title": "Taxonomy / specialty",
                        "type": "string",
                        "description": "Specialty keyword (e.g. \"Dentist\", \"Family Medicine\", \"Pediatric\")."
                    },
                    "enumerationType": {
                        "title": "Provider type",
                        "enum": [
                            "",
                            "NPI-1",
                            "NPI-2"
                        ],
                        "type": "string",
                        "description": "NPI-1 = individual, NPI-2 = organization.",
                        "default": ""
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Hard cap on records to return (API pages 200 at a time).",
                        "default": 200
                    },
                    "enrichWithGoogle": {
                        "title": "Enrich with web search",
                        "type": "boolean",
                        "description": "For each provider, find website, LinkedIn, Facebook page, and secondary emails using a web search powered by an internal SERP fetcher. No API key required. Adds ~2-4s per provider.",
                        "default": false
                    },
                    "enrichLimit": {
                        "title": "Enrich limit",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Max number of providers to enrich. Capped to keep runtime bounded.",
                        "default": 50
                    },
                    "proxyConfig": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Apify proxy for Google enrichment requests.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
