{"uid":"cap_PuxwXG2ppDZoBAp8yYAvS","slug":"agentbodega-hospital-quality-rating-d07b2bbf","name":"AgentBodega Hospital Quality Rating","description":"Small x402-payable utility APIs for agents: endpoint inspection, launch checks, and hosted artifacts.","url":"https://agentbodega.store/api/public-data/hospital-quality-rating","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"body":{"fields":[{"name":"ccn","type":"string","required":false},{"name":"careCompareUrl","type":"string","required":false},{"name":"hospitalName","type":"string","required":false},{"name":"city","type":"string","required":false},{"name":"state","type":"string","required":false},{"name":"includeMeasures","type":"boolean","required":false},{"name":"compareTo","type":"array","required":false},{"name":"proxiesSx","type":"boolean | object","required":false}],"required":[],"fieldCount":8,"contentType":"application/json","optionalPreview":["ccn","careCompareUrl","hospitalName","city","state","includeMeasures","compareTo","proxiesSx"],"omittedFieldCount":0},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"tool":{"id":"hospital-quality-rating","name":"Hospital Quality Rating","department":"Public Data"},"result":{"ccn":"240010","state":"MN","measures":{"hcahps":[],"complications_and_deaths":[]},"facility_name":"MAYO CLINIC HOSPITAL ROCHESTER","overall_rating":"5"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_25WbFXXTIaugwMfJwiVw7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up CMS hospital quality ratings and HCAHPS/complication measures for a given US hospital by name, CCN, city, state, or Care Compare URL.","exampleAgentPrompt":"What's the CMS overall star rating for Mayo Clinic Hospital in Rochester, MN? Include the HCAHPS and complication measures too.","exampleUseCases":[{"title":"Pre-surgery hospital quality check","prompt":"I'm having surgery next month at UCSF Medical Center in San Francisco, CA — can you pull its CMS star rating and any complication or death measures so I know what to expect?"},{"title":"Compare two hospitals by quality","prompt":"Can you look up the overall CMS ratings for both Cleveland Clinic in Cleveland OH and Johns Hopkins Hospital in Baltimore MD so I can compare them side by side?"},{"title":"Research best-rated hospitals in a state","prompt":"What's the overall CMS quality rating for Cedars-Sinai Medical Center in Los Angeles, CA? Include the full HCAHPS data if you can."}],"resultDescription":"Returns a JSON object with the hospital's facility name, CCN, state, overall CMS star rating (1–5), and optionally arrays of HCAHPS patient experience scores and complications/deaths measures. Includes a success boolean and tool metadata.","failureModes":["Hospital not found by name/city/state — ambiguous or misspelled input returns empty result","CCN not recognized — invalid or outdated CMS identifier","Missing required identifiers — no ccn, hospitalName, or careCompareUrl provided","CMS data unavailable for the requested facility — some hospitals not rated","Rate limit or payment failure — x402 payment not accepted or insufficient USDC balance"],"whenToPreferThis":"Use this endpoint when you need official CMS hospital star ratings or HCAHPS patient experience data for a specific US hospital. It's particularly useful for patient decision support, healthcare research, or quality benchmarking tasks. Prefer this over general web search when you need structured, machine-readable CMS quality data rather than narrative descriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:49:22.724Z","isFirstParty":false}