Skip to main content
Piloterr
Back to library

NPI Provider API

Fetch one NPPES provider or organization by 10-digit NPI or provider-view URL, including addresses and taxonomies.

Active1 credit = 1 requestGET/v2/npi/provider

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

Fetch one NPPES record by its 10-digit NPI or by a provider-view URL. The response is a flat object, the same card fields as search, plus addresses, taxonomies, other names, and identifiers.

GET https://api.piloterr.com/v2/npi/provider?query=1972813608

Header: x-api-key.

query is required. Example: 1972813608. A provider-view URL also works: https://npiregistry.cms.hhs.gov/provider-view/1972813608. A search URL, a name, or any other text returns 400.

The NPI in the response matches the NPI you asked for. Open this endpoint with results[].npi or results[].url from search.

ParametersLink to Parameters

query is required. Example: 1972813608, or https://npiregistry.cms.hhs.gov/provider-view/1972813608.

Response fieldsLink to Response fields

The card fields are the same as search: npi, url, name, first_name, middle_name, last_name, organization_name, credential, status, taxonomy, taxonomy_code, address, city, state, postal_code, phone, enumeration_date, enumeration_type.

Extra fields:

name_prefix and name_suffix are separate from name. sex is a short code such as M when the registry sends it. sole_proprietor is a registry flag such as YES. organizational_subpart is set on organization records. certification_date and last_updated are dates or null.

authorized_official_name, authorized_official_title, and authorized_official_phone are filled for an organization when the registry has an authorized official. On a person they are null.

addresses is a list. Each item has purpose (LOCATION or MAILING), type, line1, city, state, postal_code, country_code, country, and phone.

taxonomies is a list. Each item has code, description, license, state, primary (boolean), and group. The primary row matches taxonomy and taxonomy_code on the card. For NPI 1972813608 the primary license is D0004034 in state MD.

other_names lists alternate names with name, type, code, and credential. identifiers lists other ids with identifier, code, description, state, and issuer. Either list can be empty.

Use casesLink to Use cases

  • A hospital privileging office opens the practice address and the state license number on a known NPI.
  • A payer reads authorized_official_name on an organization NPI before it pays a group.
  • A compliance file compares sole_proprietor and the taxonomy license state for one clinician, for example NPI 1972813608.

Error codesLink to Error codes

  • 400: query is missing, or it is not a 10-digit NPI or a provider-view URL.
  • 404: that NPI is not in the registry.
  • 401: missing API key.

Related APIs

Expand your data capabilities with these complementary tools.

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included