Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: ProofPrice Doctor and hospital prices paid API
termsOfService: https://proofprice.com/terms
contact:
name: ProofPrice
email: hello@proofprice.com
url: https://proofprice.com
license:
name: ProofPrice terms of use
url: https://proofprice.com/terms
x-logo:
url: https://proofprice.com/icon-512.png
version: 0.4.0
description: 'What did people actually pay for X, here, recently? Returns a price range from official open data: median, 10th–90th percentile, sample size, period, confidence, source and licence. Aggregates only; never individual records. The data keeps each source''s own licence: every answer names its source, that source''s licence and the attribution line to show, so reuse follows the publisher''s licence. The ProofPrice terms of use govern use of the API itself. Free, read-only, no API key. A few premium calls (price check, daily history) cost a few cents each after a free daily allowance, paid per call with x402; see https://proofprice.com/pricing and https://proofprice.com/pricing.json.'
servers:
- url: https://proofprice.com
tags:
- name: Doctor and hospital prices paid
description: 'Doctor and hospital prices: GB, NO, SE, SG and US. Sources: Adult social care finance report: care home unit costs (England), Health service fee tariffs (Helsedirektoratet takster, Helfo scheme), Dental care reference prices (TLV referenspriser), Hospital bill sizes by medical condition (DRG) and ward type (Ministry of Health, Singapore), Medicare DMEPOS Fee Schedule (durable medical equipment, prosthetics, orthotics and supplies, quarterly) and Medicare payments by service and state (CMS: Physician & Other Practitioners; Inpatient Hospitals).'
paths:
/api/v1/medical:
get:
operationId: medicalPrices
tags:
- Doctor and hospital prices paid
summary: Doctor and hospital prices paid (GB, NO, SE, SG and US)
description: 'Use this when a user asks what a medical service or hospital stay costs, or what was actually paid for it, for example an office visit, an MRI, a colonoscopy, physical therapy, a knee replacement or a pneumonia stay, in England (care home weekly costs paid by councils) (country GB), Norway (state tariff fees for doctors, psychologists, dentists, physiotherapists) (country NO), Sweden (dental care reference prices) (country SE), Singapore (hospital bills for medical conditions) (country SG), the United States (Medicare fees for medical equipment) (country US) or the United States (what Medicare paid doctors and hospitals) (country US). Returns the official average amount the public health insurer allowed per service (doctors'' services, in an office or a facility) or paid per hospital stay (by hospital-stay group), nationally or for one state where the source publishes it, with the number of services or discharges behind it, the share the insurer itself paid, the national average for comparison and the data year, plus the official source and licence. These are public-insurance rates (price_type official_statistic): what the insurer allowed or paid, NOT private-insurance negotiated prices or cash prices, which are usually higher, and not a quote. A published average, so the range fields are null. Facility figures are the doctor''s fee only; the hospital''s or surgery centre''s fee is separate. How fresh: England (care home weekly costs paid by councils): annual: one edition each autumn (2024-25 published 23 Oct 2025, tables revised 13 Nov 2025); Norway (state tariff fees for doctors, psychologists, dentists, physiotherapists): helsedirektoratet publishes new tariff files about twice a year; we read the page and use the newest file for each field; Sweden (dental care reference prices): TLV publishes a new tariff file once or twice a year; we read the page and use the file in force today; Singapore (hospital bills for medical conditions): annual benchmark file (data year 2023, file last updated 15 May 2026); every answer states its data year; the United States (Medicare fees for medical equipment): quarterly (January, April, July, October); the release is stated in every answer; the United States (what Medicare paid doctors and hospitals): annual: one calendar year at a time (the 2024 data year was released in 2026); every answer states its data year. Do not use for a quote or what a specific hospital or doctor charges, private-insurance or out-of-pocket costs, drug or prescription prices, dental or vision plans, or other countries.'
parameters:
- name: country
in: query
required: true
description: 'GB = England only for care homes (average weekly cost councils pay for nursing and residential care, GBP; official statistic, not what private self-funders pay); NO = Norway (state tariff fees for doctors, psychologists, dentists and physiotherapists under the Helfo scheme, NOK; posted tariffs, not paid prices); SE = Sweden (dental care: TLV reference prices for the state dental support, SEK; posted reference prices, not paid prices); SG = Singapore (Ministry of Health: median and middle-half hospital bills for medical conditions, Singapore Citizens, 2023); US = United States (basis=dmepos gives Medicare''s fee-schedule amount for medical equipment and supplies such as wheelchairs, CPAP and oxygen, quarterly); US = United States (what Medicare paid, nationally or by state)'
schema:
type: string
enum:
- GB
- 'NO'
- SE
- SG
- US
- name: service
in: query
required: true
description: 'The medical service: plain words (''office visit'', ''MRI lower back'', ''knee replacement''), a billing code or a hospital-stay group code, as the country notes list them. Required. GB: care home costs only: ''care home'', ''nursing care'' or ''residential care''; add ''over 65'' (older people) or ''18 to 64'' (working-age adults) to narrow the age band, otherwise all adult ages. GP, hospital and prescription prices are not covered for GB. NO: a service in plain words (''consultation'', ''cataract operation'', ''ECG'', ''psychologist'', ''physiotherapy'', ''dentist check-up''; Norwegian words work too: ''konsultasjon'', ''katarakt'') or a tariff code such as ''S2ad'' (GP consultation) or ''K01a'' (cataract operation). Name the profession (doctor, psychologist, dentist, physiotherapist) to search only that tariff; doctors come first otherwise. Hospital stays have no Norwegian data here. SE: a dental treatment in plain words (''crown'', ''root canal'', ''implant'', ''filling'', ''check-up'', ''scaling'', ''denture''; Swedish words work too: ''krona'', ''rotfyllning'') or a TLV treatment number (''800'' = permanent crown, ''501'' = root canal, one canal). Sweden has dental care only here: for doctor or hospital prices Sweden has no data. Singapore: a medical condition in plain words (''stroke'', ''dementia'', ''delirium'', ''spinal cord conditions'') or an MOH DRG code (''B70A''). Surgery and doctor visits are not covered. US with basis=dmepos: an HCPCS equipment code (''E0601'' CPAP, ''E1390'' oxygen concentrator, ''K0001'' standard wheelchair, ''E0143'' walker, add a modifier like ''E0601 RR'' for rental) or plain words from the CMS descriptor (''wheelchair'', ''oxygen concentrator''). Codes starting A, E, K or L are treated as equipment even without basis. US: plain words (''office visit'', ''MRI lower back'', ''colonoscopy'', ''physical therapy'', ''knee replacement'', ''pneumonia''), a billing code (HCPCS/CPT such as 99213 or G0121) or an MS-DRG hospital-stay code (''DRG 470'').'
schema:
type: string
minLength: 2
- name: state
in: query
required: false
description: 'A state or territory, where the source publishes one (the country notes say how to write it). Leave out for the national average. GB: leave out for the England average, or give an English region (''North East'', ''London'', ''South West''...) or a council (''Gateshead'', ''Kent'', ''Westminster''). NO: not used, leave out. SE: not used, leave out. Singapore: the ward class, because Singapore has no states: c = public subsidised Ward C (default), b2 = public subsidised Ward B2, b1 = public unsubsidised Ward B1, a = public unsubsidised Ward A, private = private hospital. US equipment: a state as a two-letter code or name (TX, Texas). Leave out for the median across states with the cheapest and dearest state. US: a state or territory as a two-letter code or name (TX, Texas). Leave out for the national average.'
schema:
type: string
minLength: 2
- name: setting
in: query
required: false
description: 'office = a doctor''s office (whole service); facility = hospital outpatient or surgery centre (doctor''s fee only); inpatient = a hospital stay. Leave out to use the usual setting for the service. GB: not used, leave out. NO: not used, leave out. SE: not used, leave out. Singapore: only inpatient (a hospital stay); leave out. US: office (a doctor''s office; the whole service), facility (a hospital outpatient department or surgery centre; the doctor''s fee only) or inpatient (a hospital stay, by MS-DRG). Leave out to use the usual setting for the service.'
schema:
type: string
enum:
- office
- facility
- inpatient
- name: basis
in: query
required: false
description: 'US only: dmepos = Medicare''s fee schedule for medical equipment and supplies (wheelchairs, CPAP, oxygen, walkers, test strips). Leave out for doctor and hospital prices.'
schema:
type: string
responses:
'200':
description: 'A price answer: median, 10th–90th percentile range, sample size, period, confidence, source and licence. For an official statistic: the published average or median (value, measure), its reference period, confidence, source and licence; the range fields and sample_size may be null. If the official source does not respond and ProofPrice holds a recent daily copy of it, you get that copy instead of an error: status is ok, period and as_of carry the snapshot date, the notice says so and extra.stale is true.'
headers:
X-ProofPrice-Stale:
description: 'Present only when the official source did not respond and the answer is ProofPrice''s own recent daily copy: snapshot=<date>. The body says so too (extra.stale is true).'
schema:
type: string
X-ProofPrice-Proof:
description: 'Signed Price Proof (only on status ok answers and real verdicts, when proofs are on): a compact JWS (EdDSA / Ed25519, typ proofprice-proof+jws) of what the official records showed. Check it free at /api/v1/proofs/verify or offline with the keys at /.well-known/proofprice-keys.json. See https://proofprice.com/proofs.'
schema:
type: string
Link:
description: 'With a proof: <https://proofprice.com/p/<jws>>; rel="proof", a page a person can open to see the proof checked.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/PriceAnswer'
'400':
description: Missing or invalid parameter, or a country that is not covered yet.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: The official source could not be reached and ProofPrice holds no recent copy of it.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
PriceAnswer:
type: object
properties:
query:
type: object
propertyNames:
type: string
additionalProperties: true
description: The request as understood, echoed back.
status:
type: string
enum:
- ok
- insufficient_data
- no_matches
description: ok = a figure is returned; insufficient_data = fewer than 5 matching records; no_matches = nothing matched.
price:
anyOf:
- type: object
properties:
currency:
type: string
description: ISO 4217 currency code, e.g. EUR.
unit:
type: string
description: What the price is per, e.g. 'per litre', 'per home', 'per kWh'.
value:
type: number
description: The headline figure. For ranges built from records it equals median.
measure:
description: 'What value is: median for ranges built from records; average or median for official statistics.'
type: string
enum:
- median
- average
median:
type:
- number
- 'null'
typical_low:
description: 10th percentile; null for official statistics that give no range.
type:
- number
- 'null'
typical_high:
description: 90th percentile; null for official statistics that give no range.
type:
- number
- 'null'
min:
type:
- number
- 'null'
max:
type:
- number
- 'null'
required:
- currency
- unit
- value
additionalProperties: true
description: The price. Null when there is not enough data to publish a figure (fewer than 5 records) or nothing matched.
- type: 'null'
sample_size:
description: Number of records behind the figure; null when the publisher does not say.
type:
- number
- 'null'
period:
description: The period the records cover (ISO dates), or the date of the snapshot when the answer comes from our copy.
type: object
properties:
from:
type:
- string
- 'null'
to:
type:
- string
- 'null'
required:
- from
- to
additionalProperties: true
confidence:
description: high = 50+ records, medium = 15–49, low = 5–14.
type: string
enum:
- high
- medium
- low
- insufficient
price_type:
description: transaction, posted_pump_price, posted_price, contract_price, reimbursement_price or official_statistic.
type: string
statistic:
description: 'Official statistics only: what kind of figure it is and the period the publisher states it for.'
type: object
properties:
measure:
type: string
enum:
- median
- average
reference_period:
type: string
note:
type: string
required:
- measure
- reference_period
additionalProperties: true
as_of:
description: When the answer was produced (ISO 8601); the snapshot date when the official source was down and the answer comes from our copy.
type: string
source:
type: object
properties:
id:
type: string
description: Source id, e.g. es-fuel.
name:
type: string
publisher:
type: string
description: Who publishes the data.
licence:
type: string
licence_url:
type: string
attribution:
type: string
description: The attribution line to show with the figure.
url:
type: string
description: The publisher's page for this data.
required:
- id
- name
- publisher
- licence
- licence_url
- attribution
- url
additionalProperties: true
description: Where the figure comes from, under which licence, and the attribution line to show.
method:
type: string
method_url:
type: string
summary:
type: string
description: One plain sentence an AI can quote.
notice:
type: string
description: Information, not a valuation or offer. Also says when the answer is our copy because the official source did not respond.
extra:
description: Source-specific details (for example cheapest stations). extra.stale is true when the answer comes from our copy of the source.
type: object
propertyNames:
type: string
additionalProperties: true
answer_id:
description: 'Audit trail: a stable id (hash of source id, normalised query, data period and method_version). The same question on the same data gives the same id; keep it with the reasoning that used the figure.'
type: string
method_version:
description: 'Audit trail: version of the way this source turns raw data into an answer (per source, default ''1'').'
type: string
retrieved_at:
description: 'Audit trail: when ProofPrice produced this answer (ISO 8601). For an answer from our own copy this is now, while as_of is the snapshot date.'
type: string
evidence:
description: 'Audit trail: what kind of evidence the figure is.'
type: object
properties:
type:
type: string
description: Same as price_type.
label:
type: string
description: Short name of the kind of evidence, e.g. 'Recorded sale prices', 'Official published average', 'Official published index', 'Posted shelf or pump price', 'Posted or listed price', 'Contract award value', 'Regulated reimbursement price'.
meaning:
type: string
description: One sentence on what this kind of evidence does and does not establish.
required:
- type
- label
- meaning
additionalProperties: true
reliability:
description: How far to trust the figure as a distribution of real prices. official_with_count = a published official figure with a record count; official_median_no_count = a published average or median with no record count (confidence 'high' there means the publisher is official, not that a count was checked); record_level = 15+ records we hold; thin = 5–14 records; stale = our copy because the official source did not respond; insufficient_data = no figure published.
type: string
enum:
- official_with_count
- official_median_no_count
- record_level
- thin
- stale
- insufficient_data
data_as_of:
description: ISO date (YYYY-MM-DD) of the newest data point behind the figure; null when unknown.
type:
- string
- 'null'
data_age_days:
description: Whole days between data_as_of and retrieved_at; null when data_as_of is null.
type:
- number
- 'null'
suggestions:
description: 'Short plain things to try next: widen the period or area, ask for an itemised quote. May be empty.'
type: array
items:
type: string
required:
- query
- status
- source
- summary
- notice
additionalProperties: true
description: 'A price answer: a range or an official statistic with sample size, period, confidence, source and licence.'
Error:
type: object
properties:
error:
type: string
description: What went wrong, in plain words.
detail: {}
required:
- error
additionalProperties: true
description: 'An error: a missing or invalid parameter (400) or an official source that could not be reached (502).'