{"uid":"cap_vWCdtExHkFqZBExSTRMC_","slug":"cms-medicare-inpatient-drg-hospital-averages-8afeccc0","name":"CMS Medicare Inpatient DRG Hospital Averages","description":"CMS Medicare inpatient hospital averages per MS-DRG (data.cms.gov, fee-for-service Part A): hospital name, state, DRG code and description, discharges, average submitted charge, average total payment and average Medicare payment. Hospital-level averages, not the IPPS national rate table. Filter by 3-digit DRG code and optional state; up to 20 rows.","url":"https://api.healthtravel-api.workers.dev/api/health/medicare-inpatient-drg?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":["drg"],"properties":{"drg":{"type":"string","description":"3-digit MS-DRG code, e.g. 871"},"max":{"type":"string","description":"How many rows, 1 to 20 (default 5)"},"state":{"type":"string","description":"Two-letter state code, optional"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2wo0gAELKWg-sOMIw3pds","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns CMS Medicare fee-for-service Part A inpatient hospital-level averages (discharges, submitted charges, total payments, Medicare payments) for a given MS-DRG code, optionally filtered by state.","exampleAgentPrompt":"Pull CMS Medicare inpatient hospital averages for MS-DRG code 871 in Florida — show me up to 10 hospitals with their average submitted charges and Medicare payments.","exampleUseCases":[{"title":"Hospital billing comparison by DRG","prompt":"Show me CMS Medicare hospital averages for DRG 470 (major joint replacement) in Ohio — I want to see which hospitals have the highest average submitted charges versus what Medicare actually pays, up to 15 results."},{"title":"State-level septicemia cost research","prompt":"What do hospitals in Texas typically charge and receive from Medicare for septicemia admissions? Use DRG 871 and give me up to 20 hospitals."},{"title":"National DRG payment benchmarking","prompt":"I need CMS inpatient Medicare averages for DRG 247 (perc cardiovascular procedure) across all states — just give me 5 representative hospitals so I can benchmark payment levels."}],"resultDescription":"Returns up to 20 rows of hospital-level data including: hospital name, state, MS-DRG code and description, number of discharges, average submitted charge, average total payment, and average Medicare payment — sourced from CMS fee-for-service Part A data on data.cms.gov.","failureModes":["Invalid or non-existent DRG code returns empty results or an error","Invalid state code (not a 2-letter US abbreviation) may return an error or no results","DRG codes with very few hospital submissions may return fewer rows than requested","max parameter outside 1–20 range may be clamped or rejected","Network or upstream CMS data availability issues causing a 500 error"],"whenToPreferThis":"Use this endpoint when you need hospital-level Medicare inpatient billing and payment averages for a specific MS-DRG code — ideal for healthcare cost research, price transparency analysis, hospital benchmarking, or policy work. Prefer this over IPPS national rate tables when you need actual per-hospital averages rather than CMS-set rates, and over general hospital lookup endpoints when you need DRG-specific financial data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:12.048Z","isFirstParty":false,"canonicalSlug":"cms-medicare-inpatient-drg-hospital-averages-8afeccc0"}