healthcare.dev docs
API referenceProviders

Look up a provider by NPI

GET /v1/providers/{npi}

GET https://api.healthcare.dev/v1/providers/{npi}

Provider record from CMS NPPES: names, practice location and mailing addresses, taxonomies (with licenses) and enumeration, update and deactivation dates. Deactivated NPIs return only the NPI and dates.

Requires an API key: Authorization: Bearer hdev_live_.... See Authentication.

Path parameters

NameTypeRequiredDescriptionExample
npistringyes10-digit National Provider Identifier1881018208

Query parameters

NameTypeRequiredDescriptionExample
view"compact" | "full"nocompact returns only the fields an agent usually needs (fewer tokens); full (default) returns every fieldcompact
fieldsstringnoComma-separated record fields to return, e.g. code,display,billablecode,display,billable

Examples

curl

curl "https://api.healthcare.dev/v1/providers/1881018208" \
  -H "Authorization: Bearer $HDEV_API_KEY"

TypeScript

const res = await fetch("https://api.healthcare.dev/v1/providers/1881018208", {
  headers: { Authorization: `Bearer ${process.env.HDEV_API_KEY}` },
});
const { data, meta } = await res.json();

Python

import os
import requests

res = requests.get("https://api.healthcare.dev/v1/providers/1881018208", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"})
body = res.json()

Try it

GEThttps://api.healthcare.dev/v1/providers/1881018208?view=compact&fields=code%2Cdisplay%2Cbillable
Get a free key
Copy as curl
curl "https://api.healthcare.dev/v1/providers/1881018208?view=compact&fields=code%2Cdisplay%2Cbillable" \
  -H "Authorization: Bearer $HDEV_API_KEY"

Response

The provider

{
  "data": {
    "npi": "string",
    "entity_type": "individual",
    "name": {
      "display": "string",
      "first": "string",
      "middle": "string",
      "last": "string",
      "prefix": "string",
      "suffix": "string",
      "credential": "string",
      "organization": "string"
    },
    "status": "active",
    "enumeration_date": "2026-10-01",
    "last_updated": "2026-10-01",
    "deactivation_date": "2026-10-01",
    "reactivation_date": "2026-10-01",
    "addresses": [
      {
        "purpose": "location",
        "line1": "string",
        "line2": "string",
        "city": "string",
        "state": "string",
        "postal_code": "string",
        "country": "string",
        "phone": "string",
        "fax": "string",
        "geo": {
          "lat": null,
          "lon": null
        }
      }
    ],
    "taxonomies": [
      {
        "code": "string",
        "display": "string",
        "primary": true,
        "license": "string",
        "license_state": "string"
      }
    ]
  },
  "meta": {
    "source": "cms-icd10",
    "data_version": "2026.1",
    "retrieved_at": "2026-10-24T12:00:00Z",
    "license": "Public domain (CMS). Reference data, not medical advice."
  },
  "links": {
    "self": "/v1/providers/1881018208",
    "next": null
  }
}

Fields

FieldTypeAlways presentDescription
npistringyes
entity_type"individual" | "organization" | nullyesnull for deactivated NPIs: CMS publishes only the NPI and its dates
nameobjectyes
status"active" | "deactivated"yes
enumeration_datestring | null (date)yes
last_updatedstring | null (date)yes
deactivation_datestring | null (date)yes
reactivation_datestring | null (date)yes
addressesAddress[]yes
taxonomiesProviderTaxonomy[]yes

Errors

Errors are application/problem+json (RFC 9457). Branch on type, not on title. See Errors.

StatustypeWhen
400invalid-requestA parameter or the body failed validation; errors lists each field.
401unauthorizedMissing, malformed or revoked API key.
404not-foundNo record with that id (retired records are still returned).
429rate-limited / quota-exceededToo many requests per second (retry after Retry-After), or the monthly quota is used up.
503dataset-unavailable / unavailableThe dataset has no published version yet, or the service is degraded.

On this page