API

The same data and searches as this site: profiles, lists, bulk verification, areas, companies and products, as JSON or CSV. It works without a key on the free plan. A paid plan's key raises the limits. Send it in the X-Api-Key header. See pricing.

getnpidata is not a consumer reporting agency. Don't use it to decide on employment, credit, insurance or housing. Confirm anything that matters with the original source.

Try it in the console Swagger OpenAPI document

Quick start

Every chiropractor in Suffolk County, NY (county FIPS 36103), 50 a page:

curl "https://getnpidata.com/api/v1/providers?category=Chiropractic%20%26%20complementary%20care&subcategory=Chiropractors&county=36103"

All of them as CSV, streamed:

curl -o chiropractors.csv \
  "https://getnpidata.com/api/v1/providers.csv?category=Chiropractic%20%26%20complementary%20care&subcategory=Chiropractors&county=36103"

In every CSV file, text values that start with =, +, -, @ or a tab start with an apostrophe, so spreadsheets don't run them as formulas.

Verify a list of NPIs:

curl -X POST "https://getnpidata.com/api/v1/providers/lookup" \
  -H "Content-Type: application/json" \
  -d '{"npis": ["1003000126", "1234567893"]}'

From .NET with the typed client (Npi.Client):

using var npi = new NpiClient(new Uri("https://getnpidata.com/"));
var page = await npi.SearchProvidersAsync(new ProviderSearch
{
    Category = "Chiropractic & complementary care",
    Subcategory = "Chiropractors",
    County = "36103",
});
Console.WriteLine($"{page.TotalCount} chiropractors");

Limits

Without a key: 60 requests a minute per IP address. CSV exports: up to 1,000 rows each. With a key, your plan's limits apply, counted per key (pricing).

The site's data downloads (raw.json, raw.csv, the CSV lists and exports) count toward the same limit. A CSV cut at the limit says so in the X-Row-Limit and X-Total-Count headers. A list of 200,000 providers or more can be downloaded sorted only by name, npi, enumeration or lastUpdate. Over the limit you get 429 with a Retry-After header. A key that isn't valid gets 401.

Freshness

GET /api/v1/meta gives the data's as-of date (now Nov 22, 2026) and the source files.

Full file

/export/all.csv.gz: every active provider (9,560,845 NPIs, data as of Nov 22, 2026) in the summary columns, one row per NPI, as gzipped CSV (613 MB). It is free open data with no key and no row limit, rebuilt after each data load.

The taxonomy notice and terms in NOTICE.txt apply to the file and every copy of it, and to the API's CSV files.

Errors

Every error is an RFC 7807 problem (JSON with title, detail and, for bad parameters, errors by parameter name).

Libraries

Clients for JavaScript, Python and .NET, made from the OpenAPI document: one method per endpoint, typed results, paging, and a retry after a 429 that waits as long as Retry-After says.

The JavaScript and Python packages aren't on npm and PyPI yet.

JavaScript and TypeScript

import { GetNpiData } from "getnpidata";

const npi = new GetNpiData({ apiKey: process.env.GETNPIDATA_API_KEY });
const page = await npi.searchProviders({ category: "Dentists", zip: "05401", radius: 10 });
for await (const p of npi.iterateSearchProviders({ category: "Dentists", state: "VT" })) console.log(p.npi, p.name);

Python

from getnpidata import GetNpiData

npi = GetNpiData(api_key)  # or GetNpiData() on the free plan
page = npi.search_providers(category="Dentists", zip="05401", radius=10)
rows = npi.lookup_providers(["1003000126", "1234567893"])["items"]

.NET

Npi.Client, the typed client shown in the quick start.

AI assistants (MCP)

Claude and other assistants can search the directory through our MCP server at https://getnpidata.com/mcp. It takes the same key header as the API, and each request the assistant makes counts toward the same limit. Without a key it runs on the free plan.

Claude Code

claude mcp add --transport http getnpidata https://getnpidata.com/mcp \
  --header "X-Api-Key: YOUR_KEY"

Leave out the --header line to use the free plan.

Claude desktop app and claude.ai

Settings › Connectors › Add custom connector, with the URL https://getnpidata.com/mcp. Custom connectors there can't send a key, so they use the free plan.

Other clients

Cursor, Windsurf, VS Code and most others read a JSON setting like this one (VS Code calls the list servers):

{
  "mcpServers": {
    "getnpidata": {
      "type": "http",
      "url": "https://getnpidata.com/mcp",
      "headers": { "X-Api-Key": "YOUR_KEY" }
    }
  }
}

Tools

  • find_providers
    A plain request such as "pediatric dentists near 05401": what was understood and the matches
  • search_providers
    The API's search filters: specialty, place, name, entity type and more
  • lookup_npi
    Everything on one NPI, or whether it is deactivated, unknown or mistyped
  • check_licenses_and_exclusions
    State license records, OIG exclusions, Medicare opt-out and order and referring, Medicaid
  • verify_npis
    A list of NPIs at once, optionally with what changed since a date
  • search_facilities
    Medicare-certified hospitals, nursing homes and other facilities
  • list_specialties
    The specialty categories and subcategories the searches take
  • data_version
    How current the data is

Change feed

What changed for your NPIs at each data refresh: addresses, phones, names, specialties, licenses, OIG exclusions, Medicare opt-outs, Medicaid, plan networks and deactivations. Part of the Team plan; make rosters on Monitoring or with POST /api/v1/rosters/{id}/npis.

GET /api/v1/changes?roster=12&since=2026-12-01
GET /api/v1/changes?npi=1003000126,1234567893&since=2026-12-01&groups=license,exclusion
GET /api/v1/changes?cursor=…   (the nextCursor of your last page)

Changes come in the order they went live (appliedAt). Each page has items, hasMore and nextCursor. Store nextCursor, also from the last page, and send it next time: you get only newer changes, none twice and none skipped. A change's id never changes, so it also works as a key on your side.

Fields: id, npi, kind, label, group, oldValue, newValue (as stored: NUCC codes for specialties), oldText, newText (in words), detectedAt, appliedAt (UTC), runId, source.

Libraries

// JavaScript
for await (const c of npi.iterateListChanges({ roster: 12, since: "2026-12-01" })) console.log(c.npi, c.label);
# Python
for c in npi.iter_list_changes(roster=12, since="2026-12-01"): print(c["npi"], c["label"])

Webhooks

Add a URL on Monitoring › Webhooks and we POST the changes of your rosters' NPIs to it after each refresh, as JSON: id (the event, the same on every retry), type (changes or test), run, part of parts (at most 100 changes each), and changes with the feed's fields plus rosters.

Every request carries Getnpidata-Signature: t=<unix time>,v1=<signature>. The signature is the hex HMAC-SHA256 of <t>.<raw body> with your webhook's secret. Check it on the raw bytes before parsing, compare in constant time, and refuse a t more than five minutes old.

// Node.js, or verifyWebhook(secret, header, rawBody) from the getnpidata package
import { createHmac, timingSafeEqual } from "node:crypto";
const [, t, v1] = header.match(/t=(\d+),v1=([0-9a-f]+)/);
const want = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const ok = timingSafeEqual(Buffer.from(want), Buffer.from(v1)) && Math.abs(Date.now() / 1000 - t) < 300;

# Python, or verify_webhook(secret, header, raw_body) from getnpidata
import hmac, hashlib, time
parts = dict(p.split("=", 1) for p in header.split(","))
want = hmac.new(secret.encode(), parts["t"].encode() + b"." + raw_body, hashlib.sha256).hexdigest()
ok = hmac.compare_digest(want, parts["v1"]) and abs(time.time() - int(parts["t"])) < 300

Answer with any 2xx within 10 seconds. Anything else, or no answer, is tried again after 1 and 5 minutes, then 30 minutes, 2, 6, 12 and 24 hours (8 tries); the delivery log on the page shows each try. Only https URLs on public hosts are accepted, and redirects aren't followed.

Bulk files and changelog

Once a month: every active provider, and every change applied since the previous month's files, as gzipped CSV and as Parquet. Free, with no key. The list with sizes, row counts and SHA-256 is /api/v1/bulk; the files are at /bulk/<yyyy-MM>/providers.csv.gz, providers.parquet, changes.csv.gz, changes.parquet, NOTICE.txt and manifest.json. A month's changesFrom is the previous month's changesUntil, so the changes files join without gaps, and the change feed picks up after the newest one. The changelog lists each refresh with its changes by kind (as JSON: /api/v1/refreshes).

providers

ColumnTypeWhat
npiVARCHARThe 10-digit NPI
entity_typeVARCHARIndividual or Organization
nameVARCHARThe person's name (last, first) or the organization's legal business name
credentialVARCHARThe credential as written in NPPES
primary_specialtyVARCHARThe primary taxonomy: NUCC classification and specialization
address_1VARCHARPrimary practice location, first line
address_2VARCHARSecond line
cityVARCHARCity
stateVARCHARTwo-letter state code
zipVARCHARZIP or ZIP+4
countyVARCHARCounty from the HUD ZIP crosswalk (the ZIP's largest share)
phoneVARCHARPractice phone
genderVARCHARMale, Female or empty (people only)
enumeration_dateDATEWhen the NPI was issued
last_update_dateDATEThe record's last update in NPPES
oig_excludedBOOLEANOn the HHS OIG exclusion list
medicare_opt_outBOOLEANOpted out of Medicare
medicare_order_referBOOLEANMay order and refer in Medicare
accepts_medicare_assignmentBOOLEANAccepts Medicare assignment (Care Compare)
telehealthBOOLEANOffers telehealth (Care Compare)
billed_medicareBOOLEANBilled Medicare Part B in the newest year
practice_buildingVARCHARCommercial when the practice address is a commercial building, else empty
record_qualityVARCHARCurrent, Check or Stale
quality_reasonsVARCHARWhy, separated by semicolons

changes

ColumnTypeWhat
change_idBIGINTThe change's id, stable across files, the API and webhooks
npiVARCHARThe NPI that changed
kindVARCHARWhat changed (see the kinds below)
groupVARCHARThe kind's group: status, name, specialty, location, license, exclusion, medicare, medicaid, network
labelVARCHARThe kind in words
old_valueVARCHARThe value before as stored (NUCC codes for specialty kinds); empty for a start
new_valueVARCHARThe value after; empty for an end
old_textVARCHARThe value before in words (specialties by NUCC name)
new_textVARCHARThe value after in words
detected_atTIMESTAMPWhen the loader found it (UTC)
applied_atTIMESTAMPWhen the data with it went live (UTC); files and the feed are ordered by this
run_idBIGINTThe run that recorded it
sourceVARCHARThe step: projection (NPPES), oig_exclusion, medicare_opt_out, state_medicaid, medicaid_enrollment_period, state_license:XX, network:<plan>

Kinds

status
added, reactivated, deactivated, removed
name
name, credential, other_name_added, other_name_removed
specialty
specialty, taxonomy_added, taxonomy_removed
location
address, phone, location_added, location_removed
license
license_added, license_removed, license_status, license_renewed, board_action
exclusion
excluded, exclusion_ended
medicare
opted_out, opt_out_renewed, opt_out_ended
medicaid
medicaid_added, medicaid_removed, medicaid_enrolled, medicaid_ended
network
network_added, network_removed

In the CSV files, dates are YYYY-MM-DD, times UTC YYYY-MM-DD HH:MM:SS.ffffff, and true/false columns true or false. The Health Care Provider Taxonomy code set is © American Medical Association on behalf of the National Uniform Claim Code Committee (NUCC). Used with permission. Provided as is, without warranty. API, export and bulk-file users receive the taxonomy codes and names under the same NUCC terms: for use in the United States only, with no changes to the code set (other than format) and no derivative works, keeping this notice on every copy. A changes file that contains Illinois license rows (source state_license:IL) is under the Open Database License, as its NOTICE.txt and manifest say. If you keep copies, honor address removals: when getnpidata removes an address on request, delete it from your copies within 72 hours of the notice or of the next file that omits it. See https://getnpidata.com/terms.

Endpoints by task

Look up and list

  • GET/providers/{npi}
    One provider: everything we know (404 when unknown or deactivated)
  • GET/providers?… · /providers.csv?…
    Search with any filter, paged JSON or matches as CSV, up to your plan's row limit

Verify

  • POST/providers/lookup · .csv
    Up to 1,000 NPIs per request: found, deactivated (with the date), not found or invalid, with flags

Filter values

  • GET/taxonomy/categories · /{category}/subcategories
    The plain specialty categories the category and subcategory filters take
  • GET/taxonomy/classifications · /{c}/specializations
    NUCC classifications and specializations
  • GET/credentials
    Standardized credentials, most common first
  • GET/states · /states/{st}/counties · /cities
    Place names and county FIPS codes

Areas

  • GET/counties/{fips}
    Population and health professional shortage areas of a county

Companies and products

  • GET/companies?name= · /companies/{id}
    Companies that pay providers (Open Payments), with FDA, SEC and OIG records
  • GET/companies.csv · /products.csv
    Every company or every product as CSV, with a link to each page
  • GET/products?name= · /products/{slug}
    Drugs and devices named in those payments, with FDA and Medicare data
  • GET/products/{slug}/prescribers · .csv
    Paid providers who prescribe it (Medicare Part D)

Facilities and owners

  • GET/facilities?… · /groups?… · .csv
    Medicare-certified facilities and Medicare groups, filtered and paged, or as CSV
  • GET/facilities/{ccn}/ownership
    Who owns and runs a facility, and its ownership changes since 2016
  • GET/facilities/{ccn}/inspections
    A nursing home's inspections, citations, fines and payment denials
  • GET/owners?q= · /owners/{id}
    Organizations owning facilities, by name or CMS ID, and every facility one owns or runs

Monitor changes (Team plan)

  • GET/changes?roster=&since= · ?npi=
    What changed for a roster or a list of NPIs, paged with a cursor
  • GET/rosters · /rosters/{id}
    Your rosters and their NPIs
  • POST/rosters/{id}/npis
    Add NPIs to a roster or remove them

Freshness

  • GET/meta
    The data's as-of date and the source files and versions
  • GET/refreshes · /bulk
    Each refresh with its changes by kind; the monthly bulk files

All paths are under /api/v1. The full parameter list and response shapes are in Swagger.