Access the U.S. National Provider Identifier Registry API
Overview
Access the United States National Provider Identifier Registry API https://npiregistry.cms.hhs.gov/api/. Obtain and transform administrative data linked to a specific individual or organizational healthcare provider, or perform advanced searches based on provider name, location, type of service, credentials, and other attributes exposed by the API.
BUG FIXES
npi_search()retains previously retrieved records when a later page is empty.npi_flatten()preserves all input keys when selected nested data is empty, regardless of column order.npi_summarize()formats complete addresses when an optional second address line is absent or missing.- Result validation now checks each column's expected type and requires
POSIXcttimestamps.
MINOR IMPROVEMENTS
- Tests no longer require live API connectivity or pagination delays.
- Summary column selection no longer triggers tidyselect deprecation warnings.
DOCUMENTATION FIXES
- Vignettes build without API access and clearly distinguish live search examples from executable examples using bundled data.
- Documented flattening behavior for empty nested data and the existing result type contract.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-17
- ERROR12 OK, 1 ERROR2026-08-16
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-19
Show 2 earlier changesHide 2 earlier changes
- ERROR10 OK, 1 NOTE, 2 ERROR2026-06-27
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 11 (4 internal)includes a package overview page
- Examples that run
- 83%5 run in a plain check · 1 never run
- Exported functions with examples
- 80%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 9%
Downloads
Repository
- PRs merged (all time)
- 81%
- Median days to close, 50 most recently updated closed issues
- 219
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
18 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/ropensci/npi on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-24 · The repository has a site deploy workflow
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- Codexfirst seen 2025-11-03Pull request it wrote: opened by a project member
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.3.1Latest
- 0.3.02026-07-12 · diff ↗
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.2.02022-11-14
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-11-14
- Total releases
- 3 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.1
- Bundled data
- 3.0 KB / 1 file
- Download size
- 109 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("npi")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.5281/zenodo.6326729.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.