Skip to content

Validate

Look up US health care providers by NPI

Send a 10-digit NPI, or a name with an optional state. The API checks the NPI's Luhn check digit with the 80840 prefix before any call, then reads the provider's record from the CMS National Plan and Provider Enumeration System (NPPES): name, credential, primary and other specialties with their license numbers, practice and mailing addresses, enumeration date and, for organizations, the authorized official. A name search returns the best match with the other candidates.

What one lookup returns

The fields this product reads from the response. The full schema is in the API reference.

FieldTypeMeaning
statusstringfound, not_found or invalid.
validboolean or nullWhether the NPI passes the Luhn check with the 80840 prefix; null for a name search.
reasonstring or nullinvalid_format, invalid_check_digit, not_in_nppes or no_match.
provider.npistringThe 10-digit NPI.
provider.typestringindividual (NPI-1) or organization (NPI-2).
provider.namestringDisplay name, with the credential for a person.
provider.credentialstring or nullCredential as reported, such as M.D.
provider.statusstringactive; deactivated NPIs are not published.
provider.enumeration_datestring or nullDate the NPI was assigned.
provider.primary_taxonomyobject or nullPrimary specialty: taxonomy code, description, license and its state.
provider.taxonomiesarrayEvery specialty reported, with licenses.
provider.location_addressobject or nullPrimary practice location, with phone.
provider.mailing_addressobject or nullMailing address.
provider.authorized_officialobject or nullOrganizations: the person who signed the application, with title.
matchesarray or nullName search: candidates, best first.

Live example

The response below was returned by the API for this request.

Request
curl https://api.qelka.com/v1/npi \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"npi":"1003000126"}'
Request fields
npistring · OptionalNational Provider Identifier, 10 digits; spaces and dashes are ignored. Send npi or name.
namestring · OptionalProvider name: a person, first name then last name, or an organization.
statestring · OptionalTwo-letter US state code that narrows a name search.
provider_typestring · Default "any"Name search only: any, individual (NPI-1) or organization (NPI-2).
freshboolean · Default falsetrue skips the result cache and runs the lookup again.

Response

{
  "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
}

Use cases

Credential new providers

Confirm that the NPI a doctor, nurse or clinic gives you exists, belongs to them and lists the specialty and license you expect.

Clean claims and referrals

Catch mistyped NPIs with the check digit before a claim or a prescription is rejected, and fill in the practice address.

Build provider directories

Find the NPI of each provider of a list by name and state, then keep specialties and addresses up to date with a bulk job.

Screen before you contract

Pair the NPI with the OIG exclusion screening to see whether a provider is barred from federal health care programs.

Price

1 credit per lookup, from the same balance as every other product.

Starter
$2.90 per 1,000 lookups
Growth
$1.98 per 1,000 lookups
Scale
$1.50 per 1,000 lookups
Business
$1.07 per 1,000 lookups

The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.

See pricing

Data source and freshness

Queried live from the source at request time. Results are cached for 7 days; send "fresh": true to query again.

Data sources

Frequently asked questions

What is an NPI?
A National Provider Identifier is the 10-digit number that US health care providers use in standard transactions such as claims. CMS assigns it through NPPES: type 1 NPIs identify individuals, type 2 NPIs identify organizations such as clinics, hospitals and pharmacies.
How is the check digit verified?
The last digit of an NPI is a Luhn check digit computed over the first nine digits with the prefix 80840 in front. The API runs that check itself, so a mistyped NPI is answered as invalid without calling NPPES.
Why is an NPI not found when its check digit is valid?
NPPES only publishes active NPIs: a deactivated number, or one that was never assigned, is answered as not found. A valid check digit only proves that the number is well formed.
How fresh is the data?
Each lookup reads the NPPES registry API, which CMS updates as providers change their records. Answers are cached 7 days unless you send fresh: true.
What does a lookup cost?
1 credit per lookup or search, found or not. Requests that fail with an error, and every call with a test key, are free.

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