Medicare Hospital Outpatient Services

Medicare outpatient volumes and payments for each U.S. hospital and comprehensive outpatient service group (APC): patients, services, average charges, allowed amounts and Medicare payments, with the hospital's CMS number, address and rural-urban class, for 2015 to the latest year.

$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, 21 fieldsv1.0

Data from data.cms.gov/provider-summary-by-type-of-service/medicare-outpatient-hospitals/medicare-outpatient-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
Apc codeoptional
Only this comprehensive APC code, such as 5072, or several separated by commas.
Example: 5072
Service wordsoptional
Words that must all appear in the service group's name, such as pacemaker, endoscopy, urology or observation.
Example: pacemaker
Hospitaloptional
Words that must all appear in the hospital name, such as Erlanger.
Example: Erlanger
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
Yearoptional
Data year, from 2015 to 2024. Leave empty for the newest year CMS has published.
Include suppressedoptional
Also return rows where CMS hides the figures because fewer than 11 patients or services were involved.
Sortoptional
Order of the rows: by hospital CMS number (the default), most services, most patients, 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-outpatient-services/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-outpatient-services/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
apc_codetext
Only this comprehensive APC code, such as 5072, or several separated by commas.
example: 5072
service_wordstext
Words that must all appear in the service group's name, such as pacemaker, endoscopy, urology or observation.
example: pacemaker
hospitaltext
Words that must all appear in the hospital name, such as Erlanger.
example: Erlanger
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
yearnumber
Data year, from 2015 to 2024. Leave empty for the newest year CMS has published.
one of: 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
include_suppressedyes/no
Also return rows where CMS hides the figures because fewer than 11 patients or services were involved.
default: false
sorttext
Order of the rows: by hospital CMS number (the default), most services, most patients, highest average Medicare payment or highest average charges first.
default: hospitalexample: most_servicesone of: hospital, most_services, most_beneficiaries, highest_medicare_payment, highest_charges

What's in each record

21 fields.

Basics

  • Ccn

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

    Example 440082

  • Hospital name

    The hospital's name as CMS lists it.

    Example Ascension Saint Thomas Hospital

  • Ruca code

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

    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

  • Apc code

    The comprehensive Ambulatory Payment Classification (APC) code, four digits such as 5072.

    Example 5223

  • Apc description

    What the service group covers, as CMS names it, such as Level 2 Excision/ Biopsy/ Incision and Drainage.

    Example Level 3 Pacemaker and Similar Procedures

  • Beneficiaries

    Number of distinct Medicare patients who received services in this group at the hospital in the year.

    Example 245

  • Services

    Number of comprehensive APC services Medicare paid the hospital for in the year.

    Example 245

  • Outlier services

    Number of services costly enough to qualify for an extra outlier payment.

    Example 0

Prices

  • Average submitted charges

    Average amount the hospital billed Medicare per service (its list charges).

    Example $56,332.06

  • Average allowed amount

    Average Medicare allowed amount per service: Medicare's payment plus the patient's deductible and coinsurance.

    Example $9,164.25

  • Average medicare payment

    Average amount Medicare itself paid per service, after the patient's deductible and coinsurance.

    Example $7,530.53

  • Total medicare payment

    Services times the average Medicare payment: about what Medicare paid the hospital for this group in the year.

    Example $1,844,979.20

  • Average outlier payment

    Average outlier payment per service that qualified for one.

    Example $0.00

  • Currency

    Currency of the money figures: USD.

    Example USD

Location

  • Street

    Street address of the hospital.

    Example 4220 Harding Rd, Po Box 380

  • City

    City of the hospital.

    Example Nashville

  • State

    Two-letter state code of the hospital.

    Example TN

  • Zip

    Five-digit ZIP code of the hospital.

    Example 37205

Dates

  • Data year

    Calendar year the services 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
apc_codetextApc code3 of 3
apc_descriptiontextApc description3 of 3
beneficiariesnumberBeneficiaries3 of 3
servicesnumberServices3 of 3
avg_submitted_chargesmoneyAverage submitted charges3 of 3
avg_allowed_amountmoneyAverage allowed amount3 of 3
avg_medicare_paymentmoneyAverage medicare payment3 of 3
total_medicare_paymentmoneyTotal medicare payment3 of 3
outlier_servicesnumberOutlier services2 of 3
avg_outlier_paymentmoneyAverage outlier payment2 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 descriptionApc codeApc descriptionBeneficiariesServicesOutlier servicesAverage submitted chargesAverage allowed amountAverage medicare paymentTotal medicare paymentAverage outlier paymentCurrencyStreetCityStateZipData yearLink
1440082Ascension Saint Thomas Hospital1Metropolitan area core: primary flow within an urbanized area of 50,000 and greater5223Level 3 Pacemaker and Similar Procedures245245—$56,332.06$9,164.25$7,530.53$1,844,979.20—USD4220 Harding Rd, Po Box 380NashvilleTN372052024data.cms.gov/data-api/v1/dataset/771e94a2-cd8f-4702-a9d7-8f777f363938/data?filter%5BRndrng_Prvdr_CCN%5D=440082&filter%5BAPC_Cd%5D=5223
2440048Baptist Memorial Hospital1Metropolitan area core: primary flow within an urbanized area of 50,000 and greater5223Level 3 Pacemaker and Similar Procedures1821830$63,071.61$8,935.93$7,302.01$1,336,267.47$0.00USD6019 Walnut Grove RoadMemphisTN381202024data.cms.gov/data-api/v1/dataset/771e94a2-cd8f-4702-a9d7-8f777f363938/data?filter%5BRndrng_Prvdr_CCN%5D=440048&filter%5BAPC_Cd%5D=5223
3440091Memorial Healthcare System, Inc1Metropolitan area core: primary flow within an urbanized area of 50,000 and greater5223Level 3 Pacemaker and Similar Procedures1641640$39,607.99$9,095.79$7,463.79$1,224,061.56$0.00USD2525 Desales AveChattanoogaTN374042024data.cms.gov/data-api/v1/dataset/771e94a2-cd8f-4702-a9d7-8f777f363938/data?filter%5BRndrng_Prvdr_CCN%5D=440091&filter%5BAPC_Cd%5D=5223

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
  • Covers Original Medicare (fee-for-service) Part B outpatient services at hospitals paid under Medicare's outpatient prospective payment system, as CMS publishes them. Medicare Advantage and other payers are not included. CMS does not endorse this API.
  • Only comprehensive APCs are in this data: about 70 service groups now (about 25 in 2015) such as surgery, endoscopy, device implants and observation stays, not every outpatient visit, test or scan. CMS renumbered the groups in 2016.
  • By default only rows with published figures come back. CMS hides any figure under 11, so beneficiaries and the outlier figures are sometimes empty on their own; include_suppressed adds the rows (about 45 in 100) whose figures are all hidden.
  • The newest year is calendar 2024, published June 2026; CMS adds a year about once a year. Leave year empty for the newest; data_year names the year of each row.
  • Submitted charges are what the hospital billed, not what it was paid. Money figures are averages per service in U.S. dollars, rounded to cents; total_medicare_payment is services times the average Medicare payment.
  • At most 10,000 rows per run. Narrow by state, service, city or hospital for larger pulls.
  • Public domain U.S. government data.

Version history

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