NPI

GET/v0/us/npi

Validates a National Provider Identifier (NPI) — the 10-digit number issued by the US Centers for Medicare & Medicaid Services (CMS) to uniquely identify healthcare providers. The check digit is verified using the Luhn algorithm with the health industry prefix 80840 prepended per the CMS specification. Spaces and hyphens are stripped automatically. Optionally looks up provider details from the NPPES registry.

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesThe 10-digit NPI number (e.g. 1003000126)
lookupstringNoSet to true or 1 to look up provider details from the NPPES registry

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/us/npi?value=1003000126"

Response Fields

FieldTypeDescription
validbooleanWhether the NPI passed Luhn checksum validation
npistringThe normalized 10-digit NPI
checkDigitstringThe Luhn check digit (last digit)

Additional Fields (with lookup)

FieldTypeDescription
foundbooleanWhether the NPI was found in NPPES
typestringIndividual or Organization
namestring | nullProvider name (individual or organization)
credentialstring | nullCredential (e.g. MD, DO, DDS)
statusstring | nullEnumeration status (A = Active)
taxonomyobject | nullPrimary taxonomy with code and description
addressobject | nullPractice location address
phonestring | nullPractice phone number
dataSourcestring | nullnppes when data was retrieved from the NPPES registry

Example Response

{
  "valid": true,
  "npi": "1003000126",
  "checkDigit": "6"
}

Example Response — with lookup

{
  "valid": true,
  "npi": "1003000126",
  "checkDigit": "6",
  "found": true,
  "type": "Individual",
  "name": "ARDALAN ENKESHAFI",
  "credential": "M.D.",
  "status": "A",
  "taxonomy": {
    "code": "207RG0100X",
    "description": "Internal Medicine, Gastroenterology"
  },
  "address": {
    "address": "6410 ROCKLEDGE DR STE 304",
    "city": "BETHESDA",
    "state": "MD",
    "postalCode": "208171841",
    "country": "US"
  },
  "phone": "443-602-6207",
  "dataSource": "nppes"
}

Example Response — invalid

{
  "valid": false
}