{"uid":"cap_0YuoYYHvjjLJH6Wx6nQOX","slug":"cms-hospital-quality-ratings-lookup-7dbfdfad","name":"CMS Hospital Quality Ratings Lookup","description":"CMS Care Compare hospital quality ratings — the data behind medicare.gov hospital ratings, for all ~5,300 Medicare-certified US hospitals. Look up by facilityId (CMS certification number), or filter by state, city, and name (partial match). Each row: facility id/name/address/phone, hospital type + ownership, emergency services, overall star rating (1-5), and per-domain measure summaries (mortality, safety of care, readmission, patient experience, timeliness, effectiveness) showing whether the hospital performs better/same/worse than the national average. Rows returned with CMS's documented column names. Public-domain federal data.","url":"https://2s.io/api/health/hospital-quality","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"properties":{"city":{"type":"string"},"name":{"type":"string","description":"Hospital name, partial match."},"limit":{"type":"integer","default":10,"maximum":100,"minimum":1},"state":{"type":"string","description":"2-letter state code."},"offset":{"type":"integer","default":0,"minimum":0},"facilityId":{"type":"string","description":"CMS certification number, e.g. \"030103\"."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"city":"Boston","limit":10,"state":"MA","offset":0}}},"response":{"_truncated":true,"_originalSize":14001}},"exampleRequest":{"city":"Boston","limit":10,"state":"MA","offset":0},"tags":["x402"],"displayCostAmount":"0.00288","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.00288/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0072","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0072","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7RKZu1mZeo9LDfhnVkYh9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0072","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up CMS Care Compare hospital quality ratings (star ratings and domain scores) for Medicare-certified US hospitals by facility ID, state, city, or name","exampleAgentPrompt":"Can you pull up the CMS hospital quality ratings for hospitals in Boston, MA — I want to see their overall star ratings and how they compare to the national average on safety of care and patient experience?","exampleUseCases":null,"resultDescription":"Returns rows of Medicare-certified hospital records with facility ID, name, address, phone, hospital type, ownership, emergency services flag, overall 1-5 star rating, and per-domain measure summaries (mortality, safety of care, readmission, patient experience, timeliness, effectiveness) each showing better/same/worse than national average, using CMS's documented column names.","failureModes":["Invalid or unknown facilityId returns empty results","Invalid state code returns empty results or error","No hospitals found matching name/city filter returns empty array","Exceeding limit=100 may return validation error","Offset beyond total record count returns empty results"],"whenToPreferThis":"Use this endpoint when you need authoritative, CMS-sourced hospital quality data for Medicare-certified US hospitals — including star ratings and domain-level performance benchmarks. Prefer this over general web searches or third-party hospital review sites when you need structured, federal public-domain data comparable across all ~5,300 hospitals, searchable by facility ID, state, city, or partial name.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-07-17T20:16:15.480Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:02:46.275Z","isFirstParty":false}