US Hospitals & Star Ratings

Every hospital registered with Medicare, from CMS Care Compare: CCN, name, address, phone, type, ownership, emergency services, overall star rating from 1 to 5 and how many mortality, safety and readmission measures beat, match or trail the national rate.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usPlaces, 30 fieldsv1.0

Data from data.cms.gov/provider-data/dataset/xubh-q36u

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Stateoptional
Only hospitals in this state or territory, as a two-letter code such as TN. Leave empty for the whole country.
Example: TN
Cityoptional
Only hospitals in this city, spelled as CMS lists it, such as Nashville.
Example: Nashville
Hospital typeoptional
Only this kind of hospital.
Ownershipoptional
Only hospitals with this kind of owner.
Minimum star ratingoptional
Only hospitals with at least this overall star rating, from 1 to 5. Hospitals CMS does not rate are left out when this is set.
Example: 4

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/cms-hospitals/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/cms-hospitals/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"state":"TN"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

statetext
Only hospitals in this state or territory, as a two-letter code such as TN. Leave empty for the whole country.
example: TN
citytext
Only hospitals in this city, spelled as CMS lists it, such as Nashville.
example: Nashville
hospital_typetext
Only this kind of hospital.
one of: Acute Care Hospitals, Critical Access Hospitals, Childrens, Psychiatric, Long-term, Dedicated Cancer Care, Rural…
ownershiptext
Only hospitals with this kind of owner.
one of: Proprietary, Voluntary non-profit - Private, Voluntary non-profit - Church, Voluntary non-profit - Other, Government…
min_star_ratingnumber
Only hospitals with at least this overall star rating, from 1 to 5. Hospitals CMS does not rate are left out when this is set.
example: 4

What's in each record

30 fields: 29 here, 1 technical one under Technical details.

Basics

  • Facility name

    Hospital name as registered with Medicare.

    Example BAPTIST MEMORIAL HOSPITAL

  • County or parish

    Example SHELBY

  • Hospital type

    Kind of hospital, such as Acute Care Hospitals or Critical Access Hospitals.

    Example Acute Care Hospitals

  • Ownership

    Kind of owner, such as Proprietary or Voluntary non-profit - Private.

    Example Voluntary non-profit - Private

  • Has emergency services

    Whether the hospital provides emergency services.

    Example Yes

  • Birthing friendly

    Whether the hospital meets CMS's criteria for the birthing-friendly designation.

    Example Yes

  • Overall star rating

    CMS overall hospital star rating from 1 to 5; null when CMS does not rate the hospital.

    Example 3

  • Rating note

    CMS's footnote on the rating, such as why there is none.

    Example The data are based on claims that the hospital or facility submitted to CMS. The hospital or facility has reported…

  • Mortality measures count

    Mortality measures reported for this hospital.

    Example 8

  • Mortality better count

    Mortality measures better than the national rate.

    Example 0

  • Mortality no different count

    Mortality measures no different from the national rate.

    Example 8

  • Mortality worse count

    Mortality measures worse than the national rate.

    Example 0

  • Safety measures count

    Safety of care measures reported for this hospital.

    Example 8

  • Safety better count

    Safety measures better than the national rate.

    Example 3

  • Safety no different count

    Safety measures no different from the national rate.

    Example 3

  • Safety worse count

    Safety measures worse than the national rate.

    Example 2

  • Readmission measures count

    Readmission measures reported for this hospital.

    Example 11

  • Readmission better count

    Readmission measures better than the national rate.

    Example 0

  • Readmission no different count

    Readmission measures no different from the national rate.

    Example 9

  • Readmission worse count

    Readmission measures worse than the national rate.

    Example 2

  • Patient experience measures count

    Patient experience (survey) measures reported for this hospital.

    Example 15

  • Timely effective care measures count

    Timely and effective care measures reported for this hospital.

    Example 9

Location

  • Street address

    Example 6019 WALNUT GROVE ROAD

  • City or town

    Example MEMPHIS

  • State

    Two-letter state or territory code.

    Example TN

  • Five-digit ZIP code

    Example 38120

Dates

  • Data updated date

    The day CMS released the current version of this data.

    Example Nov 12, 2026

Contact details

  • Phone

    The hospital's main phone number.

    Example (901) 226-••••

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • Facility ID facility_idThe hospital's CMS Certification Number (CCN), six characters; the key to join other CMS data.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
facility_idtextFacility ID (hidden)3 of 3
urllinkLink3 of 3
facility_nametextFacility name3 of 3
addresstextStreet address3 of 3
citytextCity or town3 of 3
statetextState3 of 3
zip_codetextFive-digit ZIP code3 of 3
countytextCounty or parish3 of 3
phonetextPhone3 of 3
hospital_typetextHospital type3 of 3
ownershiptextOwnership3 of 3
has_emergency_servicesyes or noHas emergency services3 of 3
is_birthing_friendlyyes or noBirthing friendly3 of 3
overall_star_ratingnumberOverall star rating3 of 3
rating_notetextRating note1 of 3
mortality_measures_countnumberMortality measures count3 of 3
mortality_better_countnumberMortality better count3 of 3
mortality_no_different_countnumberMortality no different count3 of 3
mortality_worse_countnumberMortality worse count3 of 3
safety_measures_countnumberSafety measures count3 of 3
safety_better_countnumberSafety better count3 of 3
safety_no_different_countnumberSafety no different count3 of 3
safety_worse_countnumberSafety worse count3 of 3
readmission_measures_countnumberReadmission measures count3 of 3
readmission_better_countnumberReadmission better count3 of 3
readmission_no_different_countnumberReadmission no different count3 of 3
readmission_worse_countnumberReadmission worse count3 of 3
patient_experience_measures_countnumberPatient experience measures count3 of 3
timely_effective_care_measures_countnumberTimely effective care measures count3 of 3
data_updated_datedateData updated date3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordFacility nameCounty or parishHospital typeOwnershipHas emergency servicesBirthing friendlyOverall star ratingRating noteMortality measures countMortality better countMortality no different countMortality worse countSafety measures countSafety better countSafety no different countSafety worse countReadmission measures countReadmission better countReadmission no different countReadmission worse countPatient experience measures countTimely effective care measures countStreet addressCity or townStateFive-digit ZIP codeData updated dateLinkPhone
1BAPTIST MEMORIAL HOSPITALSHELBYAcute Care HospitalsVoluntary non-profit - PrivateYesYes3The data are based on claims that the hospital or facility submitted to CMS. The hospital or facility has reported discrepancies in their claims data.80808332110921596019 WALNUT GROVE ROADMEMPHISTN38120Nov 12, 2026medicare.gov/care-compare/details/hospital/440048(901) 226-••••
2METHODIST HOSPITALS OF MEMPHISSHELBYAcute Care HospitalsVoluntary non-profit - ChurchYesYes3—8080853011010115101265 UNION AVE SUITE 700MEMPHISTN38104Nov 12, 2026medicare.gov/care-compare/details/hospital/440049(901) 516-••••
3MEMPHIS VA MEDICAL CENTERSHELBYAcute Care - Veterans AdministrationVeterans Health AdministrationYesNo3—532030305032105116 N PAULINE STMEMPHISTN38105Nov 12, 2026medicare.gov/care-compare/details/hospital/44013F(901) 523-••••

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Data as the Centers for Medicare & Medicaid Services publishes it in Hospital General Information, refreshed about every three months; data_updated_date shows the current release. CMS does not endorse this API.
  • CMS rates only some hospitals: about 2 in 5 (including children's, psychiatric, long-term, cancer, military and most critical access hospitals) have no overall_star_rating, and rating_note gives CMS's reason.
  • Measure columns are counts of quality measures compared with the national rate, not the measure values themselves.
  • Names, addresses, cities and counties are in capital letters as CMS publishes them.
  • At most 6,000 hospitals per run, enough for the whole country (about 5,400 hospitals).
  • url opens the hospital's page on Medicare Care Compare, built from its CCN.
  • Public domain U.S. government data.

Version history

A run uses the live version unless the request names another one with version.