Skip to content

Identifiers

Look up an NPI number

Check the check digit of a National Provider Identifier, then read the provider's record from the CMS NPPES registry: name, credential, specialty, license, practice address and status.

Try an example
FoundExample
Check digit
Valid (Luhn with prefix 80840)
NPI
1003000126
Provider name
ARDALAN ENKESHAFI, M.D.
Provider type
Individual (NPI-1)
NPI status
Active
Specialty
Hospitalist (208M00000X)
License
MD600003480, DC
Practice address
6410 ROCKLEDGE DR STE 304, BETHESDA, MD, 20817-1841
Phone
443-602-6207
Enumeration date
2007-08-31
Last updated
2026-11-17
Other specialties
Internal Medicine
API access
Unlock with a free account

Unlock with a free account

These fields need an API key. The free plan includes 100 credits every month, no card required.

Unlock these fields

How to read the result

Field What it tells you
Check digit Whether the tenth digit matches the Luhn check digit computed with the 80840 prefix
NPI The 10-digit number
Provider name The person's name with credential, such as M.D., or the organization name
Provider type Individual (type 1) or organization (type 2)
NPI status Active: the registry only publishes active numbers
Specialty The primary Health Care Provider Taxonomy code and what it stands for
License The license number and issuing state reported with the primary taxonomy
Practice address and phone The primary practice location
Enumeration date When the NPI was assigned
Last updated When the provider last changed the record
Other specialties The other taxonomies the provider reported
Authorized official For an organization, the person who signed its NPI application

The status is found when the registry has the record, not found when the number is well formed but unknown, and invalid when the format or the check digit is wrong.

How the check works

  1. Spaces and dashes are removed. The NPI must have 10 digits and start with 1 or 2.
  2. The Luhn check digit is computed over 80840 followed by the first nine digits, and compared with the tenth. A number that fails is invalid, and the registry is not asked.
  3. A well-formed number is read from the NPI Registry API of CMS, with its addresses, taxonomies and licenses.

Limits

The lookup takes one NPI at a time and reads only what NPPES publishes: no Medicare enrollment, no board certification, no disciplinary history. To screen a provider against the federal exclusion list, use the OIG exclusion check.

Look up NPIs from your code

The NPI registry API returns the full record in JSON for 1 credit, cached 7 days, and searches by name and state too. See the API reference.

Same check through the API

One HTTPS call, one credit. The response below is the real schema returned by the API.

cURL
curl https://api.qelka.com/v1/npi \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"npi":"1003000126"}'
JavaScript
const response = await fetch("https://api.qelka.com/v1/npi", {
  method: "POST",
  headers: {
    Authorization: "Bearer sk_test_your_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    npi: "1003000126",
  }),
});
const result = await response.json();
{
  "id": "lkp_01M8CFQ9KB0CNKCG2MQB3RDZ6N",
  "object": "npi",
  "input": "1003000126",
  "query": "npi",
  "valid": true,
  "status": "found",
  "reason": null,
  "provider": {
    "npi": "1003000126",
    "type": "individual",
    "name": "ARDALAN ENKESHAFI, M.D.",
    "first_name": "ARDALAN",
    "middle_name": null,
    "last_name": "ENKESHAFI",
    "credential": "M.D.",
    "organization_name": null,
    "sole_proprietor": false,
    "status": "active",
    "enumeration_date": "2007-08-31",
    "last_updated": "2026-11-17",
    "certification_date": "2026-11-17",
    "primary_taxonomy": {
      "code": "208M00000X",
      "description": "Hospitalist",
      "primary": true,
      "state": "DC",
      "license": "MD600003480"
    },
    "taxonomies": [
      {
        "code": "207R00000X",
        "description": "Internal Medicine",
        "primary": false,
        "state": "VA",
        "license": "0101254037"
      },
      {
        "code": "207R00000X",
        "description": "Internal Medicine",
        "primary": false,
        "state": "MD",
        "license": "D0000290"
      },
      {
        "code": "207R00000X",
        "description": "Internal Medicine",
        "primary": false,
        "state": "MD",
        "license": "D0068455"
      },
      {
        "code": "207R00000X",
        "description": "Internal Medicine",
        "primary": false,
        "state": "PA",
        "license": "MD455607"
      },
      {
        "code": "208M00000X",
        "description": "Hospitalist",
        "primary": true,
        "state": "DC",
        "license": "MD600003480"
      }
    ],
    "location_address": {
      "lines": [
        "6410 ROCKLEDGE DR STE 304"
      ],
      "city": "BETHESDA",
      "state": "MD",
      "postal_code": "20817-1841",
      "country": "US",
      "phone": "443-602-6207",
      "fax": null
    },
    "mailing_address": {
      "lines": [
        "601 MEMORY LN"
      ],
      "city": "YORK",
      "state": "PA",
      "postal_code": "17402-2231",
      "country": "US",
      "phone": "717-851-1405",
      "fax": "717-851-6969"
    },
    "practice_locations": 4,
    "other_names": [],
    "authorized_official": null
  },
  "matches": null,
  "credits_used": 1,
  "cached": false
}

Frequently asked questions

What is an NPI?
The National Provider Identifier is the 10-digit number that identifies a health care provider in US health care transactions, as HIPAA requires. CMS assigns it through NPPES, the National Plan and Provider Enumeration System. A type 1 NPI belongs to a person, such as a physician or a nurse; a type 2 NPI belongs to an organization, such as a hospital, a clinic or a pharmacy.
How is the NPI check digit computed?
The tenth digit is a Luhn check digit, the algorithm credit card numbers use, computed over the first nine digits with the prefix 80840 in front of them (80 for health, 840 for the United States). A single mistyped digit always fails the check, and so do most swaps of two neighboring digits.
Why does a valid NPI come back as not found?
The number passes the check digit test but the NPI Registry returns no record for it. The NPI may have been mistyped into another valid number, or deactivated: the registry does not publish deactivated numbers.
Does the record prove that the provider is licensed?
No. Providers enter and update their own NPPES records, so the license number, specialty and address are what the provider reported. Confirm a license with the state board that issued it.
Can I look up an NPI by the provider's name?
Yes, with the NPI registry search: type a name, and add a state as in "Mayo Clinic, MN" to narrow it down.
Is NPI data free to use?
Yes. CMS makes the NPI Registry and its API available to anyone, free of charge and without a key. The lookup reads that public API.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time