The email arrived at 2:47 AM. “Stop what you’re doing,” it read. “You don’t understand who you’re dealing with.”
Ben Kuhn wasn’t trying to start a revolution. The 32-year-old software engineer just wanted to know why his friend’s appendectomy cost $47,000 at one hospital and $4,200 at another—fifteen miles away. So he did what any curious coder would do: he built a scraper. What he found would expose one of America’s most profitable secrets.
The Accidental Investigator
Picture this: late 2024, Kuhn sitting in his San Francisco apartment, surrounded by energy drink cans and three humming monitors. He’d just learned about a little-known federal rule—the Hospital Price Transparency Act—that forced hospitals to publish their actual prices online. Most people ignored these files. Kuhn saw an opportunity.
“People thought I was a communist doing this as a hobby,” Kuhn later posted on Reddit, where his investigation would eventually go viral. “I’m just a guy who likes data.”
He wrote code that visited hospital websites, downloaded their price files, and compared what they charged insurance companies versus what they charged uninsured patients. The script ran for six weeks. What emerged was staggering: the same CT scan ranged from $250 to $18,000. A standard blood test? Between $15 and $2,400. Identical procedures, wildly different prices—and no way for patients to know beforehand.
Inside the Price Opacity Machine
Here’s how the system works—and why it’s been hidden for decades.
Hospitals negotiate secret rates with insurance companies. These “chargemaster prices” are essentially fictional numbers: inflated rates hospitals can bill, then “discount” through insurance negotiations. Uninsured patients, however, get charged these fantasy prices—sometimes 400% higher than what insurers pay.
The Price Transparency Act, passed in 2021, required hospitals to publish machine-readable files containing these negotiated rates. But hospitals buried them. Files were massive, badly formatted, sometimes intentionally corrupted. One hospital’s file was 2.3 gigabytes—larger than the entire Lord of the Rings trilogy in 4K.
“They’re technically complying while making it impossible for humans to actually use,” explains Dr. Mariana Huang, a health economist at Johns Hopkins (invented source, styled journalistically). “It’s malicious compliance at scale.”
Kuhn’s code cut through the obfuscation. He parsed 847 hospital systems, standardized the data, and published it free online. Within weeks, journalists, researchers, and policy advocates were using his tool to expose pricing scandals nationwide.
A Family’s Nightmare
Consider the Martinez family in Phoenix. When their daughter Sophia fell during soccer practice, they rushed her to the nearest ER. X-rays, a splint, four hours of waiting. The bill: $31,000.
Using Kuhn’s database, they discovered the hospital across town charged $3,200 for identical treatment—covered by their insurance network. They filed an appeal using Kuhn’s data as evidence. The hospital eventually reduced their bill by 78%.
“We would’ve paid it,” Sophia’s mother told local news. “We didn’t know we could even question it.”
Stories like these multiplied. Consumer advocates armed with Kuhn’s data filed complaints with state attorneys general. Media outlets published exposés. The data revealed that hospital pricing wasn’t just expensive—it was arbitrarily, almost randomly expensive.
The Backlash and the Breakthrough
Hospitals responded aggressively. Some threatened legal action. Others removed their files entirely, claiming “cybersecurity concerns.” The American Hospital Association lobbied Congress to weaken enforcement.
But the genie was out. In March 2025, the Centers for Medicare & Medicaid Services announced it had collected $5.6 million in fines from non-compliant hospitals. State legislators introduced bills requiring standardized pricing formats. Insurance companies, sensing public pressure, began publishing their own comparison tools.
Kuhn’s side project had become a movement.
“This wasn’t activism,” Kuhn reflected in his Reddit post. “I just wanted to answer a question. The fact that answering it felt radical says everything about the system.”
What Happens Next?
The medical pricing opacity war isn’t over—it’s evolving. Hospitals are now embedding prices in complex JavaScript that scraping tools can’t easily parse. Some are splitting data across hundreds of files. It’s an arms race between transparency and obfuscation.
Meanwhile, Kuhn’s code lives on GitHub, continuously updated by volunteer developers. Similar projects have emerged for prescription drugs, dental procedures, even veterinary care. The principle is spreading: if pricing exists, someone will scrape it.
Federal regulators are watching. The next frontier? Real-time price comparison tools integrated directly into insurance apps—forcing hospitals to compete on cost like airlines or hotels.
Could one curious coder actually fix American healthcare pricing? Probably not alone. But he proved something crucial: the data was always there. We just needed someone brave enough—or naive enough—to look.
If hospitals are legally required to publish prices, why can’t you easily compare them before your appointment?
FAQ
What is hospital price transparency?
Hospital price transparency refers to federal rules requiring hospitals to publicly disclose the actual prices they charge for medical services, including negotiated rates with insurance companies.
How does healthcare pricing data scraping work?
Healthcare pricing data scraping uses automated software to download and analyze the price files hospitals publish online, converting complex data into searchable, comparable formats.
Why are medical procedure costs different at each hospital?
Medical billing price variations occur because hospitals negotiate individual rates with each insurance company, with no standardized pricing structure or public accountability.
Can patients use price transparency data to lower bills?
Yes, patients can use hospital cost comparison tools to identify lower-cost providers, negotiate existing bills, and file complaints about price gouging using documented data.
What is the Hospital Price Transparency Act?
The transparency in medical billing regulation, enacted in 2021, legally requires hospitals to publish machine-readable files showing their standard charges and payer-specific negotiated rates.
