Look up price transparency by CMS (the data will be published in this format: https://github.com/CMSgov/price-transparency-guide)
Note: the data being published by payors in machine readable format (MRF) is MASSIVE - terrabytes of data. Example: https://transparency-in-coverage.uhc.com/
Before that, you could call and give them the code and they would tell you the price.
The problem is the doctor will not give you a code, and sometimes that makes sense since they do not know what they will be seeing or doing, so they cannot know the code in advance.
But I have also had doctors not give me codes for completely preventative services, which makes no sense.
It is grotesquely complex, but the core issue here is that patients want to consume their healthcare through insurance, because it is tax advantaged. Thus it is impossible to make a cash business that would cut through all this bullshit for the majority of healthcare.
[0] https://www.federalregister.gov/documents/2022/01/24/2022-01...