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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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
Links
- Link
Link to this row in CMS's data API, as JSON.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
ccn | text | Ccn | 3 of 3 |
hospital_name | text | Hospital name | 3 of 3 |
street | text | Street | 3 of 3 |
city | text | City | 3 of 3 |
state | text | State | 3 of 3 |
zip | text | Zip | 3 of 3 |
ruca_code | text | Ruca code | 3 of 3 |
ruca_description | text | Ruca description | 3 of 3 |
drg_code | text | Drg code | 3 of 3 |
drg_description | text | Drg description | 3 of 3 |
discharges | number | Discharges | 3 of 3 |
avg_covered_charges | money | Average covered charges | 3 of 3 |
avg_total_payments | money | Average total payments | 3 of 3 |
avg_medicare_payments | money | Average medicare payments | 3 of 3 |
currency | text | Currency | 3 of 3 |
data_year | number | Data year | 3 of 3 |
url | link | Link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Ccn | Hospital name | Ruca code | Ruca description | Drg code | Drg description | Discharges | Average covered charges | Average total payments | Average medicare payments | Currency | Street | City | State | Zip | Data year | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 440002 | Jackson-Madison County General Hospital | 1 | Metropolitan area core: primary flow within an urbanized area of 50,000 and greater | 470 | MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC | 11 | $102,834.55 | $15,453.36 | $13,736.82 | USD | 620 Skyline Drive | Jackson | TN | 38301 | 2024 | data.cms.gov/data-api/v1/dataset/690ddc6c-2767-4618-b277-420ffb2bf27c/data?filter%5BRndrng_Prvdr_CCN%5D=440002&filter%5BDRG_Cd%5D=470 |
| 2 | 440009 | Cumberland Medical Center | 4 | Micropolitan area core: primary flow within an urban cluster of 10,000 to 49,999 | 470 | MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC | 32 | $36,075.06 | $13,385.72 | $11,753.72 | USD | 421 S Main St | Crossville | TN | 38555 | 2024 | data.cms.gov/data-api/v1/dataset/690ddc6c-2767-4618-b277-420ffb2bf27c/data?filter%5BRndrng_Prvdr_CCN%5D=440009&filter%5BDRG_Cd%5D=470 |
| 3 | 440011 | Blount Memorial Hospital | 1 | Metropolitan area core: primary flow within an urbanized area of 50,000 and greater | 470 | MAJOR HIP AND KNEE JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY WITHOUT MCC | 14 | $62,559.71 | $13,316.29 | $12,114.79 | USD | 907 E Lamar Alexander Parkway | Maryville | TN | 37804 | 2024 | data.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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.