Guide
How to find and read a US hospital's price transparency file
Every US hospital must publish a machine-readable file with its standard charges, including the rates it negotiated with each insurer. The files are public but large and inconsistent. This guide shows how to find them and how their three layouts work.
In short
- Find the file: read
/cms-hpt.txtat the root of the hospital's website. Example - Three layouts: CMS tall CSV, wide CSV and JSON, often zipped, sometimes over 1 GB. Details
- Rates: a dollar amount, a percentage or a formula, per payer and plan. Fields
- Filtered rows: our actor returns one schema for all layouts, by code, state, hospital and payer. Example
1. Find the file with cms-hpt.txt
Hospitals publish a plain-text file named cms-hpt.txt at the root of their website, for example https://hospital.example/cms-hpt.txt. It lists one block per location, with the address of each machine-readable file (mrf-url).
- 1Hospital website
hospital.example - 2
/cms-hpt.txtOne block per location, each with anmrf-url - 3Price fileTall CSV, wide CSV or JSON, often zipped
- 4Rows you needFiltered by billing code, payer and plan
An example of the text file:
location-name: Example General Hospital
source-page-url: https://hospital.example/price-transparency
mrf-url: https://hospital.example/files/000000000_example-general_standardcharges.csv
contact-name: Pricing Office
contact-email: prices@hospital.exampleSome sites redirect, block automated access or list files that have moved; expect a share of addresses to fail.
2. The three layouts
| Layout | Shape | How to recognise it |
|---|---|---|
| Tall CSV | One row per item, payer and plan | A payer_name column, with standard_charge|negotiated_dollar and similar |
| Wide CSV | One row per item, one column group per payer and plan | Columns such as standard_charge|PAYER|PLAN|negotiated_dollar |
| JSON | Items with nested charges and payers | A standard_charge_information list; each charge has payers_information |
Both CSV layouts start with a few rows of metadata (hospital name, address, last_updated_on, template version) before the column header row. Billing codes sit in numbered pairs: code|1 with code|1|type (CPT, HCPCS, MS-DRG, NDC and others), code|2 and so on, so one item can carry several codes.
3. Reading the rates
| Column (tall CSV) | Meaning |
|---|---|
standard_charge|gross | The hospital's list price. |
standard_charge|discounted_cash | The price for patients paying cash. |
standard_charge|negotiated_dollar | The negotiated rate as an amount. |
standard_charge|negotiated_percentage | The rate as a percentage, usually of charges. |
standard_charge|negotiated_algorithm | The rate as a formula in words. |
standard_charge|min, |max | The lowest and highest negotiated rate across payers. |
median_amount, 10th_percentile, 90th_percentile, count | Allowed-amount statistics under the CMS 2026 rule, where already published. count can be text such as 1 through 10. |
Payer and plan names are free text and differ between hospitals, so match insurers by part of the name.
4. Filtered rows with our actor
US Hospital Price Transparency finds files through cms-hpt.txt or a bundled directory of 2,442 files from 787 hospital websites, streams all three layouts, and returns one row per hospital, code and plan in the same columns.
curl -sS --max-time 310 -X POST \
"https://api.apify.com/v2/acts/UOauyR6iKMKP6ZCa2/run-sync-get-dataset-items?maxTotalChargeUsd=0.10" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"codes": ["27447"], "states": ["OH"], "payers": ["Aetna"], "maxFiles": 5}'{
"status": "ok",
"hospital_name": "EXAMPLE GENERAL HOSPITAL",
"location_name": "Example General",
"hospital_address": "100 Example Street, Exampleville, OH 00000",
"state": "OH",
"last_updated_on": "2026-06-15",
"cms_version": "3.0.0",
"mrf_url": "https://hospital.example/standardcharges.csv" ,
"description": "Example: knee replacement",
"code": "27447",
"code_type": "CPT",
"other_codes": [],
"setting": "Outpatient",
"billing_class": "Facility",
"gross_charge": 42800.0,
"discounted_cash": 21400.0,
"deidentified_min": 12100.5,
"deidentified_max": 31900.0,
"payer_name": "EXAMPLE HEALTH PLAN",
"plan_name": "PPO",
"negotiated_dollar": 18250.0,
"negotiated_percentage": null,
"negotiated_algorithm": null,
"methodology": "Fee Schedule",
"median_amount": null,
"percentile_10th": null,
"percentile_90th": null,
"count": null
}A scanned file is charged once, with or without matching rows; blocked, missing and broken files are free. 54 of 56 randomly chosen files (96%) were scanned, up to 1 GB, with under 200 MB of memory per run.
Questions
Is this data allowed to be used?
Hospitals must publish these files for the public under the CMS Hospital Price Transparency rule (45 CFR 180). Our actor reads only those public files.
Are spreadsheet (XLSX) files supported?
Not by our actor; it reads the CMS CSV and JSON layouts, plain, zipped or gzipped.
Our tool for this
US Hospital Price Transparency
Cash, gross and payer-negotiated rates from hospitals' CMS price files.