CMS Hospitals, Clinicians & Nursing Homes is a no-code web scraper that collects public open data data: ccn / npi, name, type, address and city and more. Enter provider type, state and cities, start a run and download the results as Excel, CSV or JSON. It costs 1 credit per run plus 0.02 credits per result, so 100 results cost about 3 credits.
Category: Open data · Price: 1 credits per run + 0.02 per result.
CMS Hospitals, Clinicians & Nursing Homes (Care Compare data)
Pull Medicare-enrolled hospitals, nursing homes, home health agencies, hospices, dialysis facilities and doctors and clinicians from the CMS Provider Data Catalog, the official data behind Medicare's Care Compare website. Each row is one provider with its CMS Certification Number (CCN) or NPI, name, address, phone, ownership and type. Rows also carry the dataset's own details: overall star ratings, quality-measure counts, beds, staffing and fines for nursing homes, services offered, dialysis stations, or a clinician's specialty and group practice.
Typical uses
- Facility lead lists: every 4- and 5-star nursing home in Texas, every hospital with an emergency department in a set of cities, every dialysis center in a ZIP area.
- Sales territory planning for medical devices, staffing agencies, pharmacies and healthcare software.
- Quality and competitor research: compare star ratings, fines and staffing across a chain or a region.
- Physician lists by specialty and city, with group practice and Medicare assignment.
Input
| Field |
What to enter |
| Provider type |
Hospitals (general information and star ratings), nursing homes (provider information and ratings), home health care agencies, hospices, dialysis facilities, or doctors and clinicians (the National Downloadable File). |
| State |
Optional two-letter code. |
| Cities |
Optional, one per line, the city name as CMS writes it (any case). |
| ZIP codes or prefixes |
Optional, one per line: a five-digit ZIP or its first 3–4 digits. |
| Name contains |
Optional text found in the facility name (also the legal business name or chain name). For clinicians it matches the last name or the group practice name. |
| Specialty contains (clinicians) |
Doctors and clinicians only: text in the primary specialty, e.g. CARDIOLOGY, NURSE PRACTITIONER, PHYSICAL THERAPIST. |
| Minimum overall star rating |
Hospitals, nursing homes, home health and dialysis. Providers without a rating are left out when this is set. |
| Maximum results for the run |
The run stops once this many rows are saved. |
Output example (nursing home)
{
"providerId": "475003",
"idType": "CCN",
"name": "Birchwood Example Rehab",
"address": "43 Example Farm Rd",
"city": "Lakeside",
"state": "VT",
"zip": "05408",
"county": "Chittenden",
"phone": "(802) 555-0163",
"ownership": "For profit - Individual",
"type": "Medicare and Medicaid",
"overallRating": 3,
"legalBusinessName": "EXAMPLE OPERATIONS LLC",
"certifiedBeds": 160,
"averageResidentsPerDay": 144.7,
"healthInspectionRating": 3,
"staffingRating": 2,
"qualityMeasureRating": 3,
"nurseStaffingHoursPerResidentDay": 4.01237,
"chainName": "EXAMPLE HEALTH GROUP",
"abuseIcon": false,
"finesCount": 1,
"finesTotalUsd": 127834,
"latitude": 44.5162,
"longitude": -73.26,
"careCompareUrl": "https://www.medicare.gov/care-compare/details/nursing-home/475003",
"dataset": "nursing-homes",
"datasetTitle": "Provider Information",
"datasetUpdated": "2026-09-30"
}
Output example (clinician)
{
"providerId": "1000000012",
"idType": "NPI",
"name": "CASEY E SAMPLE JR.",
"address": "111 EXAMPLE AVE, SUITE 4",
"city": "LAKESIDE",
"state": "VT",
"zip": "05401",
"phone": "(802) 555-0100",
"type": "Clinician",
"credential": "MD",
"primarySpecialty": "CARDIOVASCULAR DISEASE (CARDIOLOGY)",
"secondarySpecialties": ["INTERNAL MEDICINE", "INTERVENTIONAL CARDIOLOGY"],
"graduationYear": 2005,
"groupPractice": "LAKESIDE MEDICAL CENTER INC",
"groupMembers": 1208,
"acceptsMedicareAssignment": "may accept",
"careCompareUrl": "https://www.medicare.gov/care-compare/details/doctor/1000000012",
"dataset": "clinicians",
"datasetTitle": "National Downloadable File",
"datasetUpdated": "2026-10-02"
}
Output fields
Every row starts with the same columns: providerId (the CCN for facilities, the NPI for clinicians), idType, name, address, city, state, zip, county, phone, ownership, type, overallRating (1–5 stars, half stars for home health, or null when CMS shows no rating). It ends with careCompareUrl (the provider's Care Compare page), dataset, datasetTitle and datasetUpdated (the date CMS last updated the dataset). In between come the dataset's own columns:
- Hospitals:
emergencyServices, birthingFriendly, ratingFootnote, and measure counts: mortalityMeasures, mortalityBetter, mortalityWorse, safetyMeasures, safetyBetter, safetyWorse, readmissionMeasures, readmissionBetter, readmissionWorse, patientExperienceMeasures, timelyCareMeasures.
- Nursing homes:
legalBusinessName, certifiedBeds, averageResidentsPerDay, healthInspectionRating, staffingRating, qualityMeasureRating, longStayQualityRating, shortStayQualityRating, nurseStaffingHoursPerResidentDay, nursingStaffTurnoverPercent, chainName, chainFacilities, specialFocusStatus, abuseIcon, ownershipChangedLast12Months, continuingCareRetirementCommunity, finesCount, finesTotalUsd, penaltiesCount, firstApproved, latitude, longitude.
- Home health agencies:
certificationDate and the services offered: offersNursing, offersPhysicalTherapy, offersOccupationalTherapy, offersSpeechPathology, offersMedicalSocialServices, offersHomeHealthAide. overallRating is the quality of patient care star rating, which CMS publishes in half stars (e.g. 3.5).
- Hospices:
cmsRegion, certificationDate.
- Dialysis facilities:
network, dialysisStations, chainOwned, chainOrganization, lateShift, offersInCenterHemodialysis, offersPeritonealDialysis, offersHomeHemodialysisTraining, certificationDate, survivalCategory, hospitalizationCategory, readmissionCategory. overallRating is the facility's five-star rating.
- Doctors and clinicians:
firstName, lastName, credential, gender, primarySpecialty, secondarySpecialties, medicalSchool, graduationYear, telehealth, groupPractice, groupPacId, groupMembers, acceptsMedicareAssignment (yes or may accept), pacId, enrollmentId, addressId.
Dates are calendar dates (YYYY-MM-DD). Yes/no columns are true/false, or null when CMS left them blank.
How it fetches data
The crawler looks the dataset up in the catalogue's metastore (data.cms.gov/provider-data/api/1/metastore) to get its title, update date and current file. If CMS ever retires the dataset id the crawler knows, it finds the dataset again by title and remembers the new id for a week.
- Facilities (hospitals, nursing homes, home health, hospices, dialysis): CMS publishes each list as one CSV of 1–13 MB. The crawler downloads it once and keeps the copy on the server, shared by every run, until CMS publishes a new version (at most a week). It then filters the file locally, so state, city, ZIP, name and rating filters cost no extra requests.
- Doctors and clinicians: that file is about 900 MB, so the crawler queries CMS's datastore API instead (
/datastore/query/{dataset}/0), 500 rows at a time. Your filters are sent as conditions, and pages are walked by record number.
Good to know
- Official public data. This is US government data published by CMS for reuse; Care Compare and the Provider Data Catalog are maintained by the Centers for Medicare & Medicaid Services. Zoftnest is not affiliated with or endorsed by CMS.
- Update cadence. CMS refreshes these datasets on its own schedule, usually monthly for nursing homes and clinicians and quarterly for hospitals, home health, hospice and dialysis.
datasetUpdated tells you how fresh each row is.
- Star ratings need context. Ratings summarise a subset of quality measures, are relative to other providers, and can lag by a year or more. Small facilities often have no rating ("Not Available"), and footnotes explain why. Some special-focus or newly certified providers are rated differently. Use ratings as a starting point, not as a verdict, and read Care Compare's own explanations before making care decisions.
- Clinicians repeat. The clinicians file has one row per clinician per practice address and group, so the same NPI can appear several times. Group by
providerId for one row per person. It only covers clinicians enrolled in Medicare.
- Medicare only. Providers that do not take Medicare are not in these files.
- The datastore can be slow. CMS's query service sometimes takes 20+ seconds or briefly answers "temporarily unavailable". The crawler keeps what it has, tries again, and leaves retrying to the queue if the outage lasts. Facility runs do not depend on it once the file has been downloaded.
- City names must match CMS's spelling (any case). Use ZIP prefixes when unsure.
- Phone numbers are business numbers published by CMS. Follow the laws that apply to your outreach (for example the TCPA and Do-Not-Call rules for calls and texts).