US Hospital Price Transparency Scraper: Cash & Negotiated
Pricing
from $0.01 / 1,000 hospital price file scanneds
US Hospital Price Transparency Scraper: Cash & Negotiated
What do US hospitals charge for a procedure? Hospital standard charges from CMS price files: gross charge, cash price and payer-negotiated rates by CPT, HCPCS or DRG code, plus 2026 allowed-amount percentiles. By state, hospital name or website. Trial: 0.01 USD per 1,000 rows until 31 Dec 2026.
Pricing
from $0.01 / 1,000 hospital price file scanneds
Rating
0.0
(0)
Developer
Cozybit
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
Share
US Hospital Price Transparency Scraper: cash, gross and negotiated prices
Find out what US hospitals charge for a procedure. Give billing codes (CPT, HCPCS, MS-DRG, NDC) and a state, hospital names or hospital websites; get one clean row per hospital, procedure and insurance plan:
- Gross charge and discounted cash price for each matching procedure, drug or supply.
- Payer-specific negotiated rates: dollar amounts, percentages or formulas, per insurer and plan (Aetna, Anthem, Cigna, UnitedHealthcare, Medicaid plans and more).
- 2026 allowed-amount statistics (median, 10th and 90th percentile, count) where the hospital already publishes them under the CMS 2026 rule.
- Whole states at once: a bundled directory of 2,442 hospital price files from 787 hospital websites in all 50 states, DC and Puerto Rico, searchable by state and hospital name.
- Any hospital website: paste a domain and the actor finds its price files through the
cms-hpt.txtfile every US hospital must publish. - One schema for every file: CMS tall CSV, wide CSV and JSON files, plain, zipped or gzipped, all come out in the same columns.
Prices include all platform costs: you pay per hospital file and per price row, nothing for compute.
Use cases
- Employers and benefits brokers compare what hospitals near their staff charge each insurer for common procedures.
- Health-tech and price-comparison tools feed normalised cash and negotiated prices into their products.
- Patients and patient advocates check cash prices before a planned procedure.
- Journalists and researchers compare prices across a state or a hospital system.
- AI agents answer "what does hospital X charge for Y" with the hospital's own published figures (see AI agents).
Input
| Field | What it does | Default |
|---|---|---|
Billing codes (codes) | Codes to look for, for example 27447 (CPT, total knee replacement) and 470 (MS-DRG, major joint replacement) | 27447, 470 |
Hospitals (hospitals) | Hospital websites or domains, cms-hpt.txt links, direct price-file links, or parts of hospital names from the directory | none |
States (states) | Two-letter state codes; picks hospitals from the bundled directory | OH |
Payers (payers) | Optional parts of insurer names, for example Aetna | all payers |
Maximum price files (maxFiles) | Files to scan per run, 1 to 200 | 5 |
Maximum price rows per file (maxRowsPerFile) | Rows to return from each file; scanning stops early when reached | 1,000 |
Give at least one hospital or state. With both, only those hospitals in those states are scanned.
Example: knee replacement prices at Ohio hospitals:
{ "codes": ["27447", "470"], "states": ["OH"], "maxFiles": 10 }
Example: what one hospital charges Aetna and Cigna for an MRI of the brain and an office visit:
{ "codes": ["70553", "99213"], "hospitals": ["www.childrensmercy.org"], "payers": ["Aetna", "Cigna"] }
Output
One row per hospital, procedure and payer plan:
{"status": "ok","hospital_name": "AKRON GENERAL MEDICAL CENTER","location_name": "Akron General","hospital_address": "1 Akron General Avenue, Akron, OH 44307","state": "OH","last_updated_on": "2026-06-15","cms_version": "3.0.0","mrf_url": "https://clevelandclinic.pt.panaceainc.com/MRFDownload/clevelandclinic/akron-general","description": "TOTAL KNEE ARTHROPLASTY","code": "27447","code_type": "HCPCS","other_codes": [],"setting": "Outpatient","billing_class": "Facility","gross_charge": null,"discounted_cash": null,"deidentified_min": 6256.68,"deidentified_max": 35984.87,"payer_name": "AETNA","plan_name": "MEDICARE ADVANTAGE","negotiated_dollar": 12146.38,"negotiated_percentage": null,"negotiated_algorithm": null,"methodology": "Fee Schedule","median_amount": null,"percentile_10th": null,"percentile_90th": null,"count": null,"additional_notes": null}
This hospital publishes no gross or cash price for this item and no 2026 statistics yet, so those fields are null. deidentified_min and deidentified_max are the lowest and highest rate it negotiated with any payer.
negotiated_dollar,negotiated_percentageandnegotiated_algorithm: hospitals publish a negotiated rate as a dollar amount, a percentage of charges or a formula; the other two fields are thennull.median_amount,percentile_10th,percentile_90th,count: the 2026 CMS allowed-amount statistics.countstays text because CMS allows the value1 through 10.- A matched procedure without any payer rates gives one row with
payer_name: null, carrying its gross and cash prices. - Every value is copied from the hospital's own file; nothing is estimated. Also returned:
modifiers,drug_unit_of_measurement,drug_type_of_measurement, andestimated_amount(older CMS files).
A price file that yields no prices gets one status row instead:
| status | Meaning | Charged |
|---|---|---|
no_match | File scanned completely, none of your codes (or payers) found | yes, as a hospital file |
not_found | No cms-hpt.txt or file at that address, or no directory hospital matches the name and state | no |
blocked | The hospital's site refused automated access | no |
unsupported | The file is not a CMS CSV or JSON file (for example a spreadsheet or web page) | no |
error | The download or file broke off; rows delivered before the break are kept | no |
RUN_SUMMARY in the key-value store lists each file with its status, size, rows scanned, matches and seconds.
Use it from code
Python (pip install apify-client):
from apify_client import ApifyClientclient = ApifyClient("<YOUR_API_TOKEN>")run = client.actor("cozybit/hospital-price-transparency").call(run_input={"codes": ["27447", "470"], "states": ["OH"], "maxFiles": 10,})for row in client.dataset(run["defaultDatasetId"]).iterate_items():if row["status"] == "ok":print(row["hospital_name"], row["code"], row["payer_name"], row["negotiated_dollar"], row["discounted_cash"])
HTTP API, results in one call:
curl -X POST "https://api.apify.com/v2/acts/cozybit~hospital-price-transparency/run-sync-get-dataset-items" \-H "Authorization: Bearer <YOUR_API_TOKEN>" -H "Content-Type: application/json" \-d '{"codes": ["70553"], "hospitals": ["James Cancer"]}'
Use with AI agents and automation
AI agents (MCP): Claude, ChatGPT, Cursor and other MCP clients can run this actor through Apify's MCP server:
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=cozybit/hospital-price-transparency" } } }
Then ask, for example: "What do hospitals in Ohio charge Aetna for a total knee replacement (CPT 27447)? Show the cash price too." The agent fills in codes, state and payer from the field descriptions and reads the rows from the dataset.
n8n and Make: use Apify's n8n node or Make module to send prices to a sheet or database on a schedule.
Pricing
Trial price until 31 December 2026: 0.00001 USD per hospital file and per price row (the lowest price Apify allows): 1,000 price rows cost 0.01 USD. From 1 January 2027:
| Event | Price |
|---|---|
| Hospital file scanned (prices found, or scanned without a match) | 0.02 USD |
| Price row delivered | 2.00 USD per 1,000 (0.002 USD each) |
Blocked, missing, unsupported and broken files are free. Apify notifies all users before a price change.
Worked examples (2027 prices):
- One hospital, one procedure, 25 payer plans: 0.02 + 25 x 0.002 = 0.07 USD.
- 10 Ohio hospitals, knee replacement, 40 rows each: 10 x 0.02 + 400 x 0.002 = 1.00 USD.
- Only Aetna rates for 3 codes at 50 hospitals, about 6 rows each: 50 x 0.02 + 300 x 0.002 = 1.60 USD.
Use payers and maxRowsPerFile to keep row counts down, and set a maximum cost per run in the run options; the actor stops cleanly when it is reached.
Free Apify plan
On the free Apify plan a run scans 1 price file and returns at most 100 price rows. The run then finishes successfully with the status message "Free Apify plan limit reached"; everything collected is in the dataset. Any paid Apify plan removes the limit.
Reliability
In 29 test runs on the Apify platform, the actor scanned 56 price files picked at random from the directory: tall CSV, wide CSV and JSON files, plain and zipped, up to 1 GB. 54 of the 56 files (96%) were scanned successfully and returned 6,204 price rows. In the other two, one hospital site refused access and one file server dropped the connection; neither was charged. The median file finished in about 20 seconds, and no run used more than 200 MB of memory.
Of the rows returned, 86% carry a gross charge, 77% a negotiated dollar rate and 74% a cash price, because hospitals fill in different fields.
How it stays fast and cheap: files are streamed, never stored, so memory stays low however large the file is. Only the lines that contain one of your codes are fully parsed, which makes a scan many times faster than reading every row. Prices are read live from each hospital's current file on every run.
Limits
- Only what hospitals publish. Files differ in completeness; many do not fill in every field, and most did not yet publish the 2026 allowed-amount statistics when we tested.
- Some hospital sites block automated access or have moved; those files return
blockedornot_foundand are free. - The bundled directory covers hospitals whose websites are listed on Wikidata, 787 sites today. For other hospitals, paste the website or price-file link.
- A hospital system often publishes one file per hospital on a shared website; a name search returns every file whose hospital name matches.
- Spreadsheet (XLSX) files are not supported. Single CSV records or JSON items over 32 MB are reported as
unsupported. - Very large files (several GB) take minutes to scan.
- Hospitals can change file addresses at any time; the directory is refreshed monthly.
FAQ
Which codes work? Any code the hospital lists: CPT, HCPCS, MS-DRG, APR-DRG, NDC, revenue codes and others. CPT 27447 (knee replacement), 70553 (brain MRI), 45378 (colonoscopy), 59400 (vaginal delivery) and 99213 (office visit) are common examples.
Why are the 2026 statistics empty? The hospital has not published them in its file yet. The actor returns them as soon as the hospital does.
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? Yes: list the codes you need and raise maxRowsPerFile. The actor is built for filtered lookups, not for copying whole files.
Support
Report problems and feature requests on the actor's Issues tab, ideally with the run link.