Medicare Hospital DRG Volumes & Payments

Medicare inpatient volumes and payments for each U.S. hospital and diagnosis-related group (DRG): discharges, average billed charges, average total and Medicare payments, with the hospital's CMS number, address and rural-urban class. Filter by state, DRG, city or hospital name.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 17 fieldsv1.0

Data from data.cms.gov/provider-summary-by-type-of-service/medicare-inpatient-hospitals/medicare-inpatient-hospitals-by-provider-and-service

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Stateoptional
Only hospitals in this U.S. state, as a two-letter code such as TN.
Example: TN
Drg codeoptional
Only this diagnosis-related group (MS-DRG) number, such as 470 for major hip and knee joint replacement.
Example: 470
Drg wordsoptional
Words that must all appear in the DRG description, such as knee replacement or sepsis.
Example: knee
Hospitaloptional
Words that must all appear in the hospital name, such as Vanderbilt.
Example: Vanderbilt
Ccnoptional
Only this hospital, by its six-digit CMS Certification Number (CCN), such as 440039.
Example: 440039
Cityoptional
Only hospitals in this city, such as Nashville.
Example: Nashville
Sortoptional
Order of the rows: by hospital CMS number (the default), most discharges first, highest average total payment, highest average Medicare payment or highest average charges first.

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/medicare-hospital-drg-payments/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/medicare-hospital-drg-payments/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"state":"TN"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

statetext
Only hospitals in this U.S. state, as a two-letter code such as TN.
example: TN
drg_codetext
Only this diagnosis-related group (MS-DRG) number, such as 470 for major hip and knee joint replacement.
example: 470
drg_wordstext
Words that must all appear in the DRG description, such as knee replacement or sepsis.
example: knee
hospitaltext
Words that must all appear in the hospital name, such as Vanderbilt.
example: Vanderbilt
ccntext
Only this hospital, by its six-digit CMS Certification Number (CCN), such as 440039.
example: 440039
citytext
Only hospitals in this city, such as Nashville.
example: Nashville
sorttext
Order of the rows: by hospital CMS number (the default), most discharges first, highest average total payment, highest average Medicare payment or highest average charges first.
default: hospitalone of: hospital, most_discharges, highest_total_payment, highest_medicare_payment, highest_charges

What's in each record

17 fields.

Basics

  • Ccn

    The hospital's six-digit CMS Certification Number (CCN), the key that joins other CMS hospital data.

    Example 440002

  • Hospital name

    The hospital's name as CMS lists it.

    Example Jackson-Madison County General Hospital

  • Ruca code

    Rural-Urban Commuting Area code of the hospital's ZIP code, from 1 (metropolitan core) to 10 (rural); decimals such as 1.1 mark a secondary commuting flow and 99 means unknown.

    Example 1

  • Ruca description

    What the rural-urban code means, in words.

    Example Metropolitan area core: primary flow within an urbanized area of 50,000 and greater

  • Drg code

    The Medicare Severity diagnosis-related group (MS-DRG) number, three digits such as 470.

    Example 470

  • Drg description

    What the DRG covers, as CMS names it.

    Example MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC

  • Discharges

    Number of Medicare inpatient discharges at this hospital for this DRG in the year.

    Example 11

Prices

  • Average covered charges

    Average amount the hospital billed Medicare per discharge for covered services (its list charges).

    Example $102,834.55

  • Average total payments

    Average total payment per discharge: Medicare's payment plus patient deductibles, co-payments and payments by other insurers.

    Example $15,453.36

  • Average medicare payments

    Average amount Medicare itself paid per discharge, including teaching, disproportionate-share, capital and outlier payments.

    Example $13,736.82

  • Currency

    Currency of the money figures: USD.

    Example USD

Location

  • Street

    Street address of the hospital.

    Example 620 Skyline Drive

  • City

    City of the hospital.

    Example Jackson

  • State

    Two-letter state code of the hospital.

    Example TN

  • Zip

    Five-digit ZIP code of the hospital.

    Example 38301

Dates

  • Data year

    Calendar year the discharges and payments are from.

    Example 2024

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
ccntextCcn3 of 3
hospital_nametextHospital name3 of 3
streettextStreet3 of 3
citytextCity3 of 3
statetextState3 of 3
ziptextZip3 of 3
ruca_codetextRuca code3 of 3
ruca_descriptiontextRuca description3 of 3
drg_codetextDrg code3 of 3
drg_descriptiontextDrg description3 of 3
dischargesnumberDischarges3 of 3
avg_covered_chargesmoneyAverage covered charges3 of 3
avg_total_paymentsmoneyAverage total payments3 of 3
avg_medicare_paymentsmoneyAverage medicare payments3 of 3
currencytextCurrency3 of 3
data_yearnumberData year3 of 3
urllinkLink3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordCcnHospital nameRuca codeRuca descriptionDrg codeDrg descriptionDischargesAverage covered chargesAverage total paymentsAverage medicare paymentsCurrencyStreetCityStateZipData yearLink
1440002Jackson-Madison County General Hospital1Metropolitan area core: primary flow within an urbanized area of 50,000 and greater470MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC11$102,834.55$15,453.36$13,736.82USD620 Skyline DriveJacksonTN383012024data.cms.gov/data-api/v1/dataset/690ddc6c-2767-4618-b277-420ffb2bf27c/data?filter%5BRndrng_Prvdr_CCN%5D=440002&filter%5BDRG_Cd%5D=470
2440009Cumberland Medical Center4Micropolitan area core: primary flow within an urban cluster of 10,000 to 49,999470MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC32$36,075.06$13,385.72$11,753.72USD421 S Main StCrossvilleTN385552024data.cms.gov/data-api/v1/dataset/690ddc6c-2767-4618-b277-420ffb2bf27c/data?filter%5BRndrng_Prvdr_CCN%5D=440009&filter%5BDRG_Cd%5D=470
3440011Blount Memorial Hospital1Metropolitan area core: primary flow within an urbanized area of 50,000 and greater470MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC14$62,559.71$13,316.29$12,114.79USD907 E Lamar Alexander ParkwayMaryvilleTN378042024data.cms.gov/data-api/v1/dataset/690ddc6c-2767-4618-b277-420ffb2bf27c/data?filter%5BRndrng_Prvdr_CCN%5D=440011&filter%5BDRG_Cd%5D=470

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Figures are for the latest year CMS has published in its Medicare Inpatient Hospitals by Provider and Service data (calendar 2024 as of December 2026). CMS adds a year about once a year; data_year names the year of each row.
  • Covers Original Medicare (fee-for-service) inpatient stays at hospitals paid under Medicare's inpatient prospective payment system. Medicare Advantage, other payers and hospitals outside that system, such as critical access hospitals, are not included.
  • CMS leaves out every hospital and DRG pair with fewer than 11 discharges, so small hospitals and rare DRGs are often missing.
  • Covered charges are what the hospital billed, not what it was paid. All money figures are averages per discharge in U.S. dollars, rounded to cents.
  • DRG descriptions are as CMS publishes them and are cut at about 90 characters.
  • At most 10,000 rows per run. Narrow by state, DRG, city or hospital for larger pulls.
  • CMS data is public domain. CMS does not endorse this API.

Version history

A run uses the live version unless the request names another one with version.