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.txt at 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).

  1. 1Hospital websitehospital.example
  2. 2/cms-hpt.txtOne block per location, each with an mrf-url
  3. 3Price fileTall CSV, wide CSV or JSON, often zipped
  4. 4Rows you needFiltered by billing code, payer and plan
From a hospital's website to price rows: the text file every US hospital must publish points to its machine-readable price file.

An example of the text file:

textcms-hpt.txt
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.example

Some sites redirect, block automated access or list files that have moved; expect a share of addresses to fail.

2. The three layouts

LayoutShapeHow to recognise it
Tall CSVOne row per item, payer and planA payer_name column, with standard_charge|negotiated_dollar and similar
Wide CSVOne row per item, one column group per payer and planColumns such as standard_charge|PAYER|PLAN|negotiated_dollar
JSONItems with nested charges and payersA 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|grossThe hospital's list price.
standard_charge|discounted_cashThe price for patients paying cash.
standard_charge|negotiated_dollarThe negotiated rate as an amount.
standard_charge|negotiated_percentageThe rate as a percentage, usually of charges.
standard_charge|negotiated_algorithmThe rate as a formula in words.
standard_charge|min, |maxThe lowest and highest negotiated rate across payers.
median_amount, 10th_percentile, 90th_percentile, countAllowed-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.

bashAetna rates for a knee replacement at up to five Ohio hospitals
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}'
jsonExample record
{
  "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.