# NPI Provider ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/npi/provider` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/npi-provider | ## Description Fetch one NPPES provider or organization by 10-digit NPI or provider-view URL, including addresses and taxonomies. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/npi/provider' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Anthony Fauci ```json { "npi": "1972813608", "sex": "M", "url": "https://npiregistry.cms.hhs.gov/provider-view/1972813608", "city": "WASHINGTON", "name": "Dr. ANTHONY STEPHEN FAUCI", "phone": "301-496-2263", "state": "DC", "status": "A", "address": "3012 - 43RD STREET, N.W.", "taxonomy": "Internal Medicine, Infectious Disease", "addresses": [ { "city": "WASHINGTON", "type": "DOM", "line1": "3012 - 43RD STREET, N.W.", "phone": "301-496-2263", "state": "DC", "country": "United States", "purpose": "MAILING", "postal_code": "200163547", "country_code": "US" }, { "city": "WASHINGTON", "type": "DOM", "line1": "3012 - 43RD STREET, N.W.", "phone": "301-496-2263", "state": "DC", "country": "United States", "purpose": "LOCATION", "postal_code": "200163547", "country_code": "US" } ], "last_name": "FAUCI", "credential": "M.D.", "first_name": "ANTHONY", "taxonomies": [ { "code": "207RI0200X", "group": null, "state": "MD", "license": "D0004034", "primary": true, "description": "Internal Medicine, Infectious Disease" } ], "identifiers": [], "middle_name": "STEPHEN", "name_prefix": "Dr.", "name_suffix": null, "other_names": [], "postal_code": "200163547", "last_updated": "2010-10-15", "taxonomy_code": "207RI0200X", "sole_proprietor": "YES", "enumeration_date": "2010-10-15", "enumeration_type": "NPI-1", "organization_name": null, "certification_date": null, "organizational_subpart": null, "authorized_official_name": null, "authorized_official_phone": null, "authorized_official_title": null } ``` ## Documentation ## 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. ## Parameters `query` is required. Example: `1972813608`, or `https://npiregistry.cms.hhs.gov/provider-view/1972813608`. ## 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 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 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.