# US hospital price transparency data: cash, gross and negotiated rates

> What US hospitals charge per procedure: gross charge, cash price and payer-negotiated rates by CPT, HCPCS, DRG or NDC code, from the hospitals' own CMS price files.

Source: https://cozybit.dev/tools/hospital-prices/

Give billing codes and a state, hospital names or hospital websites, and get one clean row per hospital, procedure and insurance plan: gross charge, discounted cash price, payer-negotiated rates and the 2026 allowed-amount statistics where hospitals publish them.

[Try it in Apify Console](https://apify.com/cozybit/hospital-price-transparency)

- [0.00001 USD per event](https://apify.com/cozybit/hospital-price-transparency/pricing), trial price until 31 Dec 2026
- Errors are never charged
- Free Apify plan: 1 price file and 100 price rows per run

## What you get

- **Gross and cash prices:** for each matching procedure, drug or supply.
- **Negotiated rates:** dollar amounts, percentages or formulas, per insurer and plan.
- **2026 statistics:** median, 10th and 90th percentile and count, where already published.
- **Whole states at once:** a bundled directory of 2,442 price files from 787 hospital websites.
- **Any hospital website:** found through the `cms-hpt.txt` file every US hospital must publish.

## Who uses it

- **Employers and benefits brokers**: Compare what nearby hospitals charge each insurer.
- **Health-tech and price tools**: Feed normalised cash and negotiated prices into products.
- **Patients and advocates**: Check cash prices before a planned procedure.
- **Journalists and researchers**: Compare prices across a state or hospital system.

## Input

| Field | Key | What it does | Default |
|---|---|---|---|
| Billing codes | `codes` | CPT, HCPCS, MS-DRG, NDC and others, for example `27447` | required |
| Hospitals | `hospitals` | Websites or domains, `cms-hpt.txt` links, price-file links or parts of names | none |
| States | `states` | Two-letter codes; picks hospitals from the bundled directory | none |
| Payers | `payers` | Parts of insurer names | all |
| Maximum price files | `maxFiles` | 1-200 files per run | 5 |
| Maximum rows per file | `maxRowsPerFile` | Scanning stops early when reached | 1,000 |

### Two insurers' rates for a brain MRI and an office visit at one hospital

**Input**

```json
{
  "codes": ["70553", "99213"],
  "hospitals": ["www.childrensmercy.org"],
  "payers": ["Aetna", "Cigna"]
}
```

Example input from the actor's README.

#### Knee replacement prices at Ohio hospitals

**Input**

```json
{
  "codes": ["27447", "470"],
  "states": ["OH"],
  "maxFiles": 10
}
```

## Output

One record per item in the run's dataset, exportable as JSON, CSV or Excel.

**Example record**

```json
{
  "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
}
```

| Field | What it means |
|---|---|
| `negotiated_dollar / _percentage / _algorithm` | Hospitals publish a rate as a dollar amount, a percentage of charges or a formula; the other two are then `null`. |
| `deidentified_min / _max` | The lowest and highest rate the hospital negotiated with any payer. |
| `median_amount, percentile_10th/90th, count` | The 2026 CMS allowed-amount statistics; `count` stays text because CMS allows `1 through 10`. |
| `status` | `no_match` (charged as a file), `not_found`, `blocked`, `unsupported` and `error` (all free). |

## Use it from your code, agent or workflow

Every example runs the same input. Get your API token in Apify Console under *Settings, API & Integrations*, and keep it in the `APIFY_TOKEN` environment variable.

**curl**

**Synchronous run (token in APIFY_TOKEN)**

```bash
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": ["70553", "99213"], "hospitals": ["www.childrensmercy.org"], "payers": ["Aetna", "Cigna"]}'
```

**Python**

**apify-client 3.x**

```python
# pip install apify-client
import os
from decimal import Decimal

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("UOauyR6iKMKP6ZCa2").call(
    run_input={
        "codes": ["70553", "99213"],
        "hospitals": ["www.childrensmercy.org"],
        "payers": ["Aetna", "Cigna"],
    },
    max_total_charge_usd=Decimal("0.10"),  # spend cap for this run
)
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item.get("payer_name"), item.get("plan_name"), item.get("negotiated_dollar"))
```

**JavaScript**

**apify-client 2.x, Node 18+**

```javascript
// npm install apify-client
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('UOauyR6iKMKP6ZCa2').call(
  {
    codes: ['70553', '99213'],
    hospitals: ['www.childrensmercy.org'],
    payers: ['Aetna', 'Cigna'],
  },
  { maxTotalChargeUsd: 0.1 }, // spend cap for this run
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.payer_name, item.plan_name, item.negotiated_dollar);
```

**AI agents (MCP)**

**MCP client configuration**

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=cozybit/hospital-price-transparency"
    }
  }
}
```

Works in any MCP client that accepts a remote server URL ([Apify's MCP docs](https://docs.apify.com/platform/integrations/mcp)). Clients with OAuth sign you in to Apify on first use; others send `"headers": {"Authorization": "Bearer <APIFY_TOKEN>"}`. The tool is called `cozybit--hospital-price-transparency`. Try a prompt such as: What do hospitals in Ohio charge Aetna for a total knee replacement (CPT 27447)? Show the cash price too. More in [AI agents and MCP](https://cozybit.dev/integrations/ai-agents/).

**n8n, Make, Zapier**

Apify has its own apps for the main automation platforms. Point them at this actor's ID `UOauyR6iKMKP6ZCa2` and paste the input JSON.

- **n8n:** the Apify node, operation *Run an Actor and get dataset*.
- **Make:** the Apify module *Run an Actor*, then *Get Dataset Items*.
- **Zapier:** the Apify action *Run Actor*, or the trigger *Finished Actor run* for scheduled runs.

Step-by-step setup: [n8n, Make and Zapier](https://cozybit.dev/integrations/no-code/).

**Apify Console**

1. **Open the [Store page](https://apify.com/cozybit/hospital-price-transparency)** and choose *Try for free*. Apify asks you to sign in or create a free account.
2. **Paste the input** into the JSON tab of the input form, or fill in the fields.
3. **Start the run**, then open the dataset and export it as JSON, CSV or Excel. Save the input as a task to schedule it.

- `run-sync-get-dataset-items` waits at most 300 seconds, then answers HTTP 408. Keep synchronous calls small and start an asynchronous run for batches (below).
- `maxTotalChargeUsd` caps what one run may charge; the run stops cleanly when it is reached.
- Send the token in the `Authorization` header, never as `?token=` in the URL, where it ends up in logs.
- The ID `UOauyR6iKMKP6ZCa2` never changes; the name `cozybit/hospital-price-transparency` works too.

**Batches and schedules: start a run, wait, read the results**

**Asynchronous run, results as CSV**

```bash
# 1. Start a run; the answer comes back at once
curl -sS -X POST "https://api.apify.com/v2/acts/UOauyR6iKMKP6ZCa2/runs?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d @input.json
# The answer's data.id is RUN_ID and data.defaultDatasetId is DATASET_ID.

# 2. Wait up to 60 s per call until data.status is SUCCEEDED
curl -sS "https://api.apify.com/v2/actor-runs/RUN_ID?waitForFinish=60" \
  -H "Authorization: Bearer $APIFY_TOKEN"

# 3. Read the records as JSON, CSV or Excel (format=json, csv or xlsx)
curl -sS "https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv" \
  -H "Authorization: Bearer $APIFY_TOKEN" -o results.csv
```

Hospitals update files at least yearly; a monthly schedule keeps a price table current. Schedules live in Apify Console under *Schedules*; a webhook or the no-code apps can pick up each finished run.

## Price

You pay per event, through your Apify account, with platform costs included. The live price is on the [Store page](https://apify.com/cozybit/hospital-price-transparency/pricing): **0.00001 USD per event, a trial price until 31 Dec 2026**.

| Event | What counts | Trial price until 31 Dec 2026 | Planned post-trial rate |
|---|---|---|---|
| `hospital-file` | Hospital file scanned (prices found, or no match) | 0.00001 USD (0.01 USD per 1,000) | 0.02 USD each |
| `price-row` | Price row delivered | 0.00001 USD (0.01 USD per 1,000) | 2.00 USD per 1,000 |

### What each outcome costs

| Outcome | What it is | Charged? |
|---|---|---|
| `ok` | A price row delivered, plus one `hospital-file` event per scanned file | Charged |
| `no_match` | A file scanned without matching rows, charged as one `hospital-file` | Charged |
| `not_found`, `blocked`, `unsupported`, `error` | Files that are missing, refused, in an unsupported format or broken | Free |

**Not charged:** Blocked, missing, unsupported and broken files.

**Apify's free plan** (no card) returns up to 1 price file and 100 price rows per run. You can cap any run's cost with `maxTotalChargeUsd`.

### What typical jobs cost

| Example | Charged events | At the trial price | At the planned rate |
|---|---|---|---|
| One hospital, one procedure, 25 payer plans | 1 × `hospital-file`, 25 × `price-row` | 0.00026 USD | 0.07 USD |
| 10 hospitals, knee replacement, 40 rows each | 10 × `hospital-file`, 400 × `price-row` | 0.0041 USD | 1.00 USD |
| Aetna rates for 3 codes at 50 hospitals, about 6 rows each | 50 × `hospital-file`, 300 × `price-row` | 0.0035 USD | 1.60 USD |

The post-trial rate is planned, not scheduled: the trial may be extended, Apify notifies users before any price increase, and the Store page always shows the price that applies. See [how pricing works](https://cozybit.dev/pricing/) and the [cost estimator](https://cozybit.dev/pricing/#estimate).

## Reliability

54 / 56 random price files scanned

54 of the 56 price files (96%) were scanned and returned 6,204 price rows. The files were picked at random from the directory and scanned in 29 runs on the Apify platform: tall CSV, wide CSV and JSON, plain and zipped, up to 1 GB. One hospital site refused access and one server dropped the connection; neither was charged. The median file took about 20 seconds, and no run used more than 200 MB of memory.

Problems and questions go to the actor's Issues tab on Apify.

## Limits

- Only what hospitals publish; many files leave fields empty, and most had not yet published the 2026 statistics when we checked.
- Some hospital sites block automated access or have moved; those files return `blocked` or `not_found` and are free.
- The bundled directory covers hospitals whose websites are listed on Wikidata (787 sites); paste other websites directly.
- Spreadsheet (XLSX) files are not supported. Very large files (several GB) take minutes.

## Questions

**Which codes work?**

Any code the hospital lists: CPT, HCPCS, MS-DRG, APR-DRG, NDC, revenue codes and others.

**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). The actor reads only those public files.

**Can I get every price in a file?**

List the codes you need and raise `maxRowsPerFile`. The actor is built to look up codes and payers, so it does not copy whole files.

## Related

[Guide How to find and read a US hospital's price transparency file](https://cozybit.dev/guides/hospital-price-transparency-files/)

### [UK Gambling Licence Register](https://cozybit.dev/tools/uk-gambling-licences/)

Registers and public files

Is this website licensed in Great Britain, by whom, since when?

- Official files or APIs
- Change alerts

per check, operator or change

### [Peppol Directory Lookup](https://cozybit.dev/tools/peppol-directory/)

Registers and public files

Who can receive Peppol e-invoices, through which provider, and who joined today.

- Official files or APIs
- Change alerts

per lookup, participant or change

## Try US Hospital Price Transparency on the free Apify plan

No card needed. Errors are never charged, and every run can carry a spend cap.

[Try it in Apify Console](https://apify.com/cozybit/hospital-price-transparency)
