Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Public National Provider Identifier records for building provider-directory lookups and local specialty maps.
From source to product signal
The NPPES Read API returns FOIA-disclosable National Provider Identifier records. Start with API version 2.1 and a city-plus-state query. An NPI does not mean the provider is licensed or credentialed, and older API versions are retired.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://npiregistry.cms.hhs.gov/api/",
params={
"version": "2.1",
"city": "Baltimore",
"state": "MD",
"limit": 10,
},
timeout=30,
)
response.raise_for_status()
results = pd.json_normalize(response.json().get("results", []))
results["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(results.head(10))Test a useful signal
List a bounded set of Baltimore providers and their primary taxonomies from the v2.1 registry.
Centers for Medicare & Medicaid Services is a government source. Last verified 2026-08-14. Temporal coverage: current public NPI records with daily registry updates.