{"uid":"cap_YcfHvu2BgtVfh5UzuuQxK","slug":"u-s-hospital-rankings-by-state-or-city-cms-care-compare-84a02e03","name":"U.S. Hospital Rankings by State or City (CMS Care Compare)","description":"Best hospitals ranking for a U.S. state or city from Centers for Medicare & Medicaid Services (CMS) Care Compare data: ranked by CMS star rating, then net score (quality measures better than national minus worse across mortality, safety and readmissions). Filter by city, minimum stars, emergency services and hospital type (acute, critical access, children's, psychiatric). Not medical advice.","url":"https://www.x402pulse.dev/v1/health/hospitals?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"city":{"type":"string"},"type":{"enum":["acute","critical","childrens","psychiatric"],"type":"string"},"limit":{"type":"string","description":"1 to 50"},"state":{"type":"string","description":"Two-letter state code"},"minStars":{"enum":["1","2","3","4","5"],"type":"string"},"emergency":{"enum":["true","false"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"filters":{"city":"Phoenix","state":"AZ"},"hospitals":[{"id":"030103","name":"Mayo Clinic Hospital","rank":1,"netScore":9,"starRating":5,"measuresWorse":0,"measuresBetter":9}],"hospitalsMatching":18},"cached":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0525","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0525/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0525","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0525","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HV7TC5rDtj1nHIVeJ4zuH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0525","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a ranked list of the best U.S. hospitals in a given state or city, sorted by CMS star rating and net quality score across mortality, safety, and readmissions measures.","exampleAgentPrompt":"Can you show me the top 10 best acute care hospitals in Texas with at least 4 CMS stars that have emergency services, ranked by their quality scores?","exampleUseCases":[{"title":"Relocating family seeking top hospital","prompt":"We're moving to Denver, Colorado — can you find the best hospitals there, showing only those with 4 or 5 CMS stars and emergency services, so we know where to go if something comes up?"},{"title":"Researching pediatric care options","prompt":"I need to find the top children's hospitals in California — list up to 10, ranked by CMS rating and quality scores."},{"title":"Comparing rural critical access hospitals","prompt":"What are the highest-rated critical access hospitals in Montana? Show me up to 20, sorted by CMS star rating."}],"resultDescription":"A ranked list of hospitals matching the specified filters, ordered by CMS star rating (descending) then net quality score. Each entry includes hospital name, city, state, star rating, hospital type, emergency services availability, and net quality score derived from mortality, safety, and readmissions measures relative to national benchmarks.","failureModes":["Invalid state code returns an error or empty results","No hospitals match the filter combination (e.g. psychiatric + 5 stars in a small state) returns empty list","limit parameter out of range (must be 1–50) may return an error","Data reflects CMS Care Compare snapshot and may not reflect the most current hospital status"],"whenToPreferThis":"Use this endpoint when you need a ranked, filtered view of the best hospitals in a U.S. state or city based on official CMS quality data. Prefer it over general web searches for authoritative, data-driven hospital rankings. Use the sibling hospital scorecard endpoint when you need detailed metrics for a specific known hospital rather than a ranked list.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:39:19.461Z","isFirstParty":false,"canonicalSlug":"u-s-hospital-rankings-by-state-or-city-cms-care-compare-84a02e03"}