API documentation

A read-only mirror of national health care provider registries. Every read is served from the local mirror; no upstream registry is called on the request path.

Conventions

Envelope

Successful responses are { request_status, message, data, meta }. meta.sources lists only the sources that actually contributed to that response. meta.partial is true when a shard or source could not be consulted; a partial result is never reported as a complete zero-count result.

Errors

Errors are RFC 9457 problem documents that also carry the fleet envelope members, so type, title, status, detail, instance, request_status, and error_code are all present on the same body. Send Accept: application/problem+json to receive that media type.

Pagination

Collections use opaque keyset cursors. Read data.pagination.next_cursor and pass it back as cursor. Offset pagination is rejected rather than ignored.

Caching and limits

Every cacheable GET publishes Cache-Control and a strong ETag, and honours If-None-Match. Routes that fan out across every shard publish RateLimit-Policy; the single-shard registry-scoped lookup is not limited and is the path to prefer.

Use constraints

US National Plan and Provider Enumeration System

  • CMS publishes NPPES data under the Freedom of Information Act. Records describe named individuals and organizations and are mirrored here verbatim.
  • Issuance of an NPI does not establish that a provider is licensed or credentialed. Licence numbers are self-reported to CMS and are not verified by this service.
  • Deactivated records are redacted at source: CMS blanks the entity type, names, and addresses and retains only the identifier and deactivation date.
  • Employer Identification Numbers and parent organization taxpayer identifiers are excluded from ingestion and are never served.
  • This description is metadata, not a legal determination. Consult the upstream terms before redistributing.

Service

GET /api/v1/health

Check process liveness.

Returns the service banner and documentation links. Performs no dependency work, so it stays fast and cannot fail because a shard is slow. Use `/api/v1/ready` for request-serving readiness and `/api/v1/status` for coverage and freshness.

Liveness

GET /api/v1/ready

Check request-serving readiness.

Performs one cheap control-plane read. Returns 503 when the service cannot serve requests. Does not fan out across shards.

GET /api/v1/status

Get coverage, freshness, pipeline state, and shard capacity.

Deep status. Reports per-registry record counts, per-dataset freshness against each dataset's declared staleness window, recent ingest runs, outbox depth, and the platform-reported size of every D1 shard with its threshold state and projected exhaustion.

Service status

GET /api/v1/capacity

Get D1 shard capacity telemetry.

Per-shard platform-reported size, percentage of the 10 GB per-database hard cap, recent growth rate, projected rollover and exhaustion dates, threshold state, and last verified time.

GET /api/v1/sources

List upstream sources with provenance and use constraints.

Every configured registry and dataset with its authority, cadence, last discovered and promoted release, freshness classification, last error, and the licence, redistribution, and solicitation constraints that apply to the data. The constraints are descriptive metadata, not a legal determination.

Sources and provenance

Registries

GET /api/v1/registries

List supported and planned national provider registries.

Supported registries carry data and return records. Planned registries are listed with `supported: false` and a zero record count so integrators can see intended coverage without mistaking it for available data.

Supported registries

GET /api/v1/registries/{registry}

Get one registry with its datasets and coverage.

Descriptor, datasets, cadence, use policy, and current record counts for a single registry.

ParameterInRequiredDescription
registrypathYesRegistry code. Use `GET /api/v1/registries` for the supported list. Currently `us-nppes`.

Providers

GET /api/v1/providers

Search providers by name, place, or classification.

Full-text search over names, places, identifiers, and taxonomy codes, with structured filters. At least one of `q`, `subdivision`, `city`, `postal_code`, or `taxonomy` is required: an unfiltered listing of the whole corpus is not served. Place filters match practice locations, including secondary ones; mailing addresses are not matched, because a mailing address is frequently a billing office or a post box in a different place from where the provider works. Pagination is keyset-based; pass `data.pagination.next_cursor` back as `cursor`.

ParameterInRequiredDescription
qqueryNoFree-text query matched against names, places, identifiers, and taxonomy codes. The final term is prefix-matched.
registryqueryNoRestrict to one registry.
subdivisionqueryNoFirst-level subdivision code, such as a US state.
cityqueryNoCity name, matched exactly after case folding.
postal_codequeryNoPostal code. A five-character prefix also matches extended forms.
taxonomyqueryNoTaxonomy code the provider holds in any slot.
entity_typequeryNoRestrict to individuals or organizations.
statusqueryNoRestrict by record lifecycle.
include_absentqueryNoInclude records that a later full replacement no longer contained. Excluded by default.
limitqueryNoMaximum records to return, from 1 to 200.
cursorqueryNoOpaque keyset cursor from `data.pagination.next_cursor`. Offset pagination is not supported.

Cardiologists in Arizona

GET /api/v1/registries/{registry}/providers/{localId}

Get one provider by its registry-issued identifier.

Single-shard lookup by the identifier the registry issues, such as a US National Provider Identifier. This is the cheapest read in the API and the one to prefer when the identifier is known.

ParameterInRequiredDescription
registrypathYesRegistry code. Use `GET /api/v1/registries` for the supported list. Currently `us-nppes`.
localIdpathYesIdentifier issued by the registry. For `us-nppes` this is the ten-digit National Provider Identifier.

Look up an NPI

GET /api/v1/providers/{providerId}

Get one provider by its stable fleet identifier.

Lookup by the `source-` identifier. The identifier is a one-way digest of the registry and local identifier, so this read fans out across every shard and is rate limited; prefer the registry-scoped route when the local identifier is known, which resolves on one shard and is not limited.

ParameterInRequiredDescription
providerIdpathYesStable fleet identifier. Opaque: validate the syntax and otherwise do not interpret it.

GET /api/v1/providers/{providerId}/changes

Get the field-level change log for one provider.

Changes detected between promoted releases for the identity, status, place, and classification columns. The complete per-release state remains reconstructible from the immutable release manifests. Keyed by the stable identifier, so this read fans out across every shard and is rate limited.

ParameterInRequiredDescription
providerIdpathYesStable fleet identifier. Opaque: validate the syntax and otherwise do not interpret it.
limitqueryNoMaximum records to return, from 1 to 200.

GET /api/v1/registries/{registry}/providers/{localId}/changes

Get the field-level change log by registry identifier.

As `getProviderChangesByStableIdentifier`, keyed by the registry identifier.

ParameterInRequiredDescription
registrypathYesRegistry code. Use `GET /api/v1/registries` for the supported list. Currently `us-nppes`.
localIdpathYesIdentifier issued by the registry. For `us-nppes` this is the ten-digit National Provider Identifier.
limitqueryNoMaximum records to return, from 1 to 200.

Resolution

GET /api/v1/resolve/{system}/{value}

Resolve an external identifier to a provider.

Resolves an identifier in a named system, such as `us-medicaid` or `us-medicare-ppin`, to the provider that carries it. The value is normalized by scheme-specific rules rather than generic separator stripping. An identifier that matches more than one provider returns 409 with every candidate listed, rather than silently choosing one.

ParameterInRequiredDescription
systempathYesIdentifier system. Values published by `us-nppes` include `us-medicaid`, `us-medicare-ppin`, `us-medicare-oscar`, `us-medicare-upin`, `us-medicare-nsc`, `us-medicare-id`, and `us-other-provider-id`.
valuepathYesThe identifier value as issued.

Taxonomy

GET /api/v1/taxonomies

List available provider classification code sets.

Each code set with its version, the number of codes, whether it is served from the compiled copy or a KV override, and which registries use it.

Classification code sets

GET /api/v1/taxonomies/{system}

Browse or search a classification code set.

Paginated catalog with an optional `q` substring filter on code, label, or classification.

ParameterInRequiredDescription
systempathYesCode set identifier.
qqueryNoCase-insensitive substring filter.
limitqueryNoMaximum records to return, from 1 to 200.
cursorqueryNoOpaque keyset cursor from `data.pagination.next_cursor`. Offset pagination is not supported.

GET /api/v1/taxonomies/{system}/{code}

Resolve one classification code.

Grouping, classification, specialization, and display label for a single code.

ParameterInRequiredDescription
systempathYesCode set identifier.
codepathYesThe code to resolve.

Resolve a taxonomy code

Provenance

GET /api/v1/releases

List promoted data releases.

Release history served from indexed metadata. The public request path never enumerates object storage to reconstruct history.

ParameterInRequiredDescription
registryqueryNoRestrict to one registry.
limitqueryNoMaximum records to return, from 1 to 200.
cursorqueryNoOpaque keyset cursor from `data.pagination.next_cursor`. Offset pagination is not supported.

Promoted releases

GET /api/v1/releases/{registry}/{dataset}/{releaseCode}

Get one release with its provenance manifest reference.

Discovery evidence, archived artifacts with their declared and actual byte counts and SHA-256 digests, and the key and digest of the canonical provenance manifest that binds the release.

ParameterInRequiredDescription
registrypathYesRegistry code. Use `GET /api/v1/registries` for the supported list. Currently `us-nppes`.
datasetpathYesDataset code within the registry.
releaseCodepathYesRelease code, URL-encoded.