Embed Cost Widget
Add free, real-time medical cost data to your website with a single line of code. The widget shows Medicare rates, estimated commercial prices, and links to full details.
Quick Start
Add this script tag to your HTML. Replace 99285 with any CPT/HCPCS code:
<script src="https://medical-costs-site.pages.dev/embed.js" data-procedure="99285"> </script>
The widget will appear where you place the script tag.
Live Demo
ER Visit (CPT 99285)
Knee Replacement (CPT 27447)
Options
| Attribute | Required | Default | Description |
|---|---|---|---|
| data-procedure | Yes | — | CPT or HCPCS procedure code |
| data-theme | No | light | "light" or "dark" |
| data-width | No | 100% | Widget width (max 420px) |
Dark Theme
<script src="https://medical-costs-site.pages.dev/embed.js" data-procedure="99285" data-theme="dark"> </script>
HTML Embed Endpoint
You can also use our HTML embed endpoint directly in an iframe:
<iframe src="https://medical-costs-api.david-568.workers.dev/api/embed/99285" width="420" height="250" frameborder="0" style="border:none;max-width:100%"> </iframe>
Popular Procedure Codes
99285 ER Visit (High Severity)
99213 Office Visit (Established)
27447 Total Knee Replacement
27130 Total Hip Replacement
70553 Brain MRI with Contrast
71046 Chest X-Ray (2 Views)
43239 Upper GI Endoscopy
29881 Knee Arthroscopy
99284 ER Visit (Moderate)
Need help? Check the full API documentation for more endpoints and options.