Query the NPPES NPI registry API to validate provider identities, retrieve taxonomy codes, and build a provider directory

domain: npiregistry.cms.hhs.gov · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Access the NPPES NPI Registry API (no authentication required for public data): GET requests to the registry API endpoint with query parameters such as number (NPI), name (first_name, last_name or organization_name), taxonomy description, city, state, and postal_code
  2. Parse the response JSON: results array contains provider objects with 'number' (NPI), 'enumeration_type' (NPI-1 individual, NPI-2 organizational), 'basic' object (name, status, certification date), 'addresses' array (practice and mailing locations), and 'taxonomies' array
  3. From 'taxonomies': extract 'code' (10-character NUCC taxonomy code), 'desc' (taxonomy description), 'primary' boolean flag (true for the primary specialty), and 'state'/'license' for state license numbers when present
  4. Validate provider identity by matching the returned NPI status field to 'A' (active) — an 'D' (deactivated) or missing NPI indicates the provider is not eligible for billing; also check the enumeration date to confirm the NPI predates the claim service date
  5. For building a provider directory, perform bulk download via the NPPES NPI data dissemination file (full replacement or weekly incremental) rather than individual API calls; the dissemination file is available as a CSV download from the CMS website
  6. Cache NPI lookup results with a weekly refresh cycle aligned with the NPPES weekly update cycle; implement a staleness check so that provider records older than 7 days are re-queried before being used for claim submission

Known gotchas

Related routes

look up provider NPIs via the NPPES NPI Registry API
nppes-npi · 6 steps · unrated
NPPES NPI Registry API lookup and validation
npiregistry.cms.hhs.gov · 6 steps · unrated
NUCC taxonomy code selection and mapping for providers
nucc.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans