# NPI Registry Healthcare Organizations Scraper (US) (`oddsdesk/npi-healthcare-organizations`) Actor

US healthcare organizations from the official CMS NPPES NPI Registry: clinics, pharmacies, hospitals, labs, home health, DME suppliers and more, with NPI, specialty (taxonomy), practice address, phone and fax. Search by state, city, ZIP, specialty or name. Organizations only, no individuals.

- **URL**: https://apify.com/oddsdesk/npi-healthcare-organizations.md
- **Developed by:** [Jakob](https://apify.com/oddsdesk) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 result rows

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 Healthcare Organizations Scraper

**NPI Registry Healthcare Organizations Scraper** searches the official **CMS NPPES NPI Registry** for US healthcare organizations (NPI type 2): pharmacies, clinics, hospitals, labs, home health agencies, DME suppliers, ambulance services, dental groups and more. Each row has the NPI, legal name and other names, primary and other specialties, practice address, business phone and fax, status and dates.

### What you can do with it

- **Healthcare B2B sales:** build target lists of pharmacies, clinics or labs in a territory.
- **Data enrichment and verification:** check NPIs, names and practice addresses.
- **Market mapping:** count providers of a type by state, city or ZIP.

### How to use it

1. Add **States** and, optionally, **Specialties**, **Cities**, **ZIP codes** or **Organization names**.
2. Click **Start**. Each combination of inputs is searched separately (the registry returns up to 1,200 results per search), so narrow by city or ZIP for big states.

**Example input**

```json
{
  "states": [
    "VT"
  ],
  "taxonomies": [
    "Pharmacy"
  ],
  "maxItems": 30
}
```

### What you get

| Field | Meaning |
|---|---|
| `npi` | National Provider Identifier |
| `organizationName` | Legal organization name |
| `otherNames` | Other and previous names |
| `primaryTaxonomy` | Primary specialty (taxonomy) |
| `primaryTaxonomyCode` | Taxonomy code |
| `taxonomies` | All specialties |
| `licenseState` | State of the primary license |
| `address` | Address |
| `city` | City |
| `state` | State |
| `zip` | ZIP code |
| `country` | Country |
| `phone` | Business phone on file |
| `fax` | Business fax |
| `mailingCity` | Mailing city |
| `mailingState` | Mailing state |
| `isSubpart` | true when it is a subpart of a larger organization |
| `status` | Status |
| `enumerationDate` | Date the NPI was issued |
| `lastUpdated` | Last update |
| `practiceLocations` | Number of extra practice locations |
| `query` | The search term that found it |
| `url` | Link to the record on the official site |
| `fetchedAt` | When this Actor fetched the row |

**Example row (real output)**

```json
{
  "npi": "1730583931",
  "organizationName": "BARRE PHARMACY LLC",
  "otherNames": [
    "THE MEDICINE SHOPPE PHARMACY"
  ],
  "primaryTaxonomy": "Pharmacy, Community/Retail Pharmacy",
  "primaryTaxonomyCode": "3336C0003X",
  "taxonomies": [
    "Pharmacy",
    "Pharmacy, Community/Retail Pharmacy"
  ],
  "licenseState": "VT",
  "address": "20 S MAIN ST",
  "city": "BARRE",
  "state": "VT",
  "zip": "05641-4826",
  "country": "United States",
  "phone": "802-479-3381",
  "fax": "802-479-0640",
  "mailingCity": "BARRE",
  "mailingState": "VT",
  "isSubpart": false,
  "status": "Active",
  "enumerationDate": "2014-10-16",
  "lastUpdated": "2016-07-05",
  "practiceLocations": null,
  "url": "https://npiregistry.cms.hhs.gov/provider-view/1730583931",
  "fetchedAt": "2026-11-24T23:56:59Z",
  "query": "state=VT, taxonomy_description=Pharmacy"
}
```

### Pricing

You pay per result: **$1.00 per 1,000 rows** ($0.001 per row), plus a small Apify start fee per run. Set **Max results** to cap the cost of any run. There's no monthly rental.

### Run it on a schedule

Most people use this Actor as a feed. In Apify Console, open **Schedules**, pick this Actor and a time (daily is typical), and connect an integration to send new rows to **Google Sheets, Slack, email, Zapier, Make, n8n or a webhook**. You can also call it from your own code with the [Apify API](https://docs.apify.com/api/v2) or the Apify Python and JavaScript clients, or let an AI agent call it through the Apify MCP server.

### Is this allowed?

This Actor only reads **public data from the CMS NPPES NPI Registry API. Only organizations are returned: no individual practitioners and no authorized-official names**. It does not log in anywhere or bypass any access control, and it is built to return business data, not personal data about individuals. You are responsible for using the data in line with the source's terms and the laws that apply to you (for example GDPR and anti-spam rules if you use company contact data for outreach).

*Not affiliated with or endorsed by CMS or HHS. Data is provided as-is from the official source.*

### Questions, bugs, ideas

Open an issue on the **Issues** tab and I'll look into it. If a source changes and something breaks, I fix it; Apify also tests this Actor automatically every day. Feature requests (a new field, a new filter, another source) are welcome.

More data tools from the same developer: [apify.com/oddsdesk](https://apify.com/oddsdesk).

# Actor input Schema

## `states` (type: `array`):

2-letter US states, e.g. TX, FL.

## `taxonomies` (type: `array`):

Taxonomy description to match, e.g. Pharmacy, Clinic/Center, Home Health, Dental, Laboratory, Durable Medical Equipment.

## `cities` (type: `array`):

City names, e.g. Houston.

## `postalCodes` (type: `array`):

5-digit ZIP codes.

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

Organization name to search (the registry matches the start of the name; add \* for wildcards, e.g. CVS\*).

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

Maximum number of rows to return. You pay per row, so this also caps your cost.

## Actor input object example

```json
{
  "states": [
    "TX"
  ],
  "taxonomies": [
    "Pharmacy"
  ],
  "maxItems": 500
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, as described in the README.

# 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 = {
    "states": [
        "TX"
    ],
    "taxonomies": [
        "Pharmacy"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("oddsdesk/npi-healthcare-organizations").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 = {
    "states": ["TX"],
    "taxonomies": ["Pharmacy"],
}

# Run the Actor and wait for it to finish
run = client.actor("oddsdesk/npi-healthcare-organizations").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 '{
  "states": [
    "TX"
  ],
  "taxonomies": [
    "Pharmacy"
  ]
}' |
apify call oddsdesk/npi-healthcare-organizations --silent --output-dataset

```

## MCP server setup

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

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/hkgyoF0qSHE07UbHM/builds/cQ9u3JVaN41QT5brV/openapi.json
