Skip to content

Medicare API: Search hospitals

Finds U.S. hospitals by name, city and state, or ZIP code, with Medicare overall and patient survey star ratings, contact details, and Care Compare links. Ratings may be unavailable for some hospitals.

medicare.gov (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Medicare.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

State optionalstate

Optional state name or two-letter code to narrow a name search, such as California or CA.

Not set

Search, requiredsearch

Hospital name, city and state, or ZIP code, such as Cedars-Sinai, Phoenix, AZ, or 90048.

Phoenix, AZ

Max Results optionalmax_results

Maximum number of hospitals to return, such as 20 (up to 100).

5

Whole number from 1 to 100. Default 20.

Output

From a run on Oct 31, 2026, shortened for this page.
{  "hospitals": [    {      "city": "PHOENIX",      "phone": "(602) 839-2000",      "state": "AZ",      "address": "1111 EAST MCDOWELL ROAD",      "zip_code": "85006",      "ownership": "Voluntary non-profit - Other",      "hospital_name": "BANNER - UNIVERSITY MEDICAL CENTER PHOENIX",      "hospital_type": "Acute Care Hospitals",      "care_compare_link": "https://www.medicare.gov/care-compare/details/hospital/030002/view-all/",      "emergency_services": "Yes",      "overall_star_rating": 3,      "cms_certification_number": "030002",      "patient_survey_star_rating": 2    },    {      "city": "PHOENIX",      "phone": "(602) 943-2381",      "state": "AZ",      "address": "250 EAST DUNLAP AVENUE",      "zip_code": "85020",      "ownership": "Voluntary non-profit - Private",      "hospital_name": "HONOR HEALTH JOHN C. LINCOLN MEDICAL CENTER",      "hospital_type": "Acute Care Hospitals",      "care_compare_link": "https://www.medicare.gov/care-compare/details/hospital/030014/view-all/",      "emergency_services": "Yes",      "overall_star_rating": 3,      "cms_certification_number": "030014",      "patient_survey_star_rating": 3    },    {      "city": "PHOENIX",      "phone": "(602) 344-5011",      "state": "AZ",      "address": "2601 EAST ROOSEVELT STREET",      "zip_code": "85008",      "ownership": "Government - Local",      "hospital_name": "VALLEYWISE HEALTH MEDICAL CENTER",      "hospital_type": "Acute Care Hospitals",      "care_compare_link": "https://www.medicare.gov/care-compare/details/hospital/030022/view-all/",      "emergency_services": "No",      "overall_star_rating": 1,      "cms_certification_number": "030022",      "patient_survey_star_rating": 3    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
medicare.gov/search_hospitals
Returns
hospital name, overall and patient survey star ratings, type, ownership, emergency services, address, phone, Care Compare link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method medicare.gov/search_hospitals with the inputs above.

Ask your agent

  • What are the Medicare star ratings for hospitals near ZIP code 60614? Show me the top 10.
  • Find Mayo Clinic hospitals in Minnesota and give me their overall and patient survey star ratings plus phone numbers.
  • List hospitals in Boise, ID with emergency services, ownership type, and addresses.
  • On medicare.gov, look up Johns Hopkins Hospital and tell me its patient survey rating and Care Compare link.
  • Pull up to 50 hospitals in Houston, TX from Medicare's Care Compare with their overall star ratings so I can compare them.
  • Finds U.S. nursing homes on Medicare Care Compare by name, city and state, or ZIP code. Results include star ratings, ownership, fines from the last three years, and Care Compare links.

    medicare.gov/search_nursing_homes
  • Finds US healthcare providers by name, place, specialty and provider type in the NPI Registry, with practice contact details and primary taxonomy. Results may include providers with similar names.

    npiregistry.cms.hhs.gov/search_providers
  • Looks up a provider in the NPI Registry by 10-digit NPI number and returns the public name, specialties, addresses, contact details and registry dates.

    npiregistry.cms.hhs.gov/get_provider
  • Find nearby NHS service listings from a UK postcode or town, nearest first. NHS service search covers England; urgent_care returns A&E listings. Hours, patient availability and websites are null when not shown.

    nhs.uk/search_nearby_services
  • Finds places to stay in a city or area for given dates on Google Hotels, with nightly and total prices, hotel class, guest ratings, amenities, address and cheapest booking site. Optional filters for price, stars and rating; vacation rentals are left out. Prices and availability can change.

    google.com/search_hotels
  • Finds ClinicalTrials.gov studies for a condition or medicine. You can filter by location, distance, recruitment status and phase. With a location, results are ordered by distance to the closest eligible site.

    clinicaltrials.gov/search_trials
  • Finds a hotel on Google Hotels by name and city and returns its guest reviews in the chosen order, its Google rating and review count, and topic ratings averaged from the returned reviews that rate each topic.

    google.com/get_hotel_reviews
  • Finds U.S. nonprofits by organization name, optionally filtered by state and city, with the latest reported revenue and assets.

    projects.propublica.org/search_nonprofits