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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
npi | string | yes | 10-digit National Provider Identifier | 1881018208 |
Query parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
view | "compact" | "full" | no | compact returns only the fields an agent usually needs (fewer tokens); full (default) returns every field | compact |
fields | string | no | Comma-separated record fields to return, e.g. code,display,billable | code,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
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
| Field | Type | Always present | Description |
|---|---|---|---|
npi | string | yes | |
entity_type | "individual" | "organization" | null | yes | null for deactivated NPIs: CMS publishes only the NPI and its dates |
name | object | yes | |
status | "active" | "deactivated" | yes | |
enumeration_date | string | null (date) | yes | |
last_updated | string | null (date) | yes | |
deactivation_date | string | null (date) | yes | |
reactivation_date | string | null (date) | yes | |
addresses | Address[] | yes | |
taxonomies | ProviderTaxonomy[] | yes |
Errors
Errors are application/problem+json (RFC 9457). Branch on type, not on title. See Errors.
| Status | type | When |
|---|---|---|
| 400 | invalid-request | A parameter or the body failed validation; errors lists each field. |
| 401 | unauthorized | Missing, malformed or revoked API key. |
| 404 | not-found | No record with that id (retired records are still returned). |
| 429 | rate-limited / quota-exceeded | Too many requests per second (retry after Retry-After), or the monthly quota is used up. |
| 503 | dataset-unavailable / unavailable | The dataset has no published version yet, or the service is degraded. |