MedPrice AI

v0.0.1
io.github.medprice-ai/mcp-medprice-ai Checked 3 days ago Published 5 months ago

Hosted MCP server exposing US hospital procedure cost data to AI assistants

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_hospital_chargemaster_cost Get hospital chargemaster cost

Looks up one hospital's cost stats (min/max/avg/median/std_dev and sample counts) for a code_type/code: a single all-terms figure, or one entry per requested methodology. Served from the hospital-prices serving snapshot, which pools exactly (exact medians), so figures can differ slightly from earlier results of this tool. Like those, each figure still combines facility and professional charges (and all settings) into one number; use get_hospital_provider_code_costs for a per-billing-class breakdown instead. Fails with UNAVAILABLE until the server has opened a snapshot. Fields without a counter…

ParameterTypeDescription
code *string
code_type *stringCode system the chargemaster/billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC. Hospitals may also support additional proprietary code types not listed here.
hospital_id *stringOpaque hospital identifier from list_hospitals.
methodologiesarrayPricing methodologies to price, one result per entry in request order. Omit or pass an empty array to get a single aggregate result across all methodologies.
revision_idstringOptional. A revision_id from list_hospitals' per-hospital revisions array, to price that specific past revision instead of the hospital's latest one. Omit to use the latest revision.

batch_get_hospital_chargemaster_cost Batch get hospital chargemaster costs

Looks up cost stats for several (code_type, code) pairs at one hospital (identified by hospital_id) in a single call - the batch counterpart to get_hospital_chargemaster_cost. Use this instead of calling get_hospital_chargemaster_cost once per code when pricing a fixed set of codes at one hospital (e.g. cross-linking a curated list of procedures on a hospital's page). Capped at 100 codes per call; a request over that is rejected with INVALID_ARGUMENT rather than silently truncated. Served from the hospital-prices serving snapshot, which pools exactly (exact medians), so figures can differ slig…

ParameterTypeDescription
codes *arrayThe (code_type, code) pairs to price at this hospital - up to 100 entries. Results come back in this same order.
hospital_id *stringOpaque hospital identifier from list_hospitals.
revision_idstringOptional. A revision_id from list_hospitals' per-hospital revisions array, to price that specific past revision instead of the hospital's latest one, applied to every code in this batch. Omit to use t…

list_hospitals List supported hospitals

Returns the hospitals supported by the medprice.ai API, with their hospital_id (opaque handle), EIN, name, structured_locations (addresses with geocoded coordinates where available), last_updated_on, and revision history (with per-revision has_payer_data, revision_id, and added_at - when medprice itself ingested that revision, as opposed to revision_date's source-file-reported update date). Defaults to returning the entire registry (currently a few hundred hospitals) in one call. If the response's next_page_token is non-empty, the result set was truncated: call this tool again passing that exa…

ParameterTypeDescription
page_sizeintegerMaximum number of hospitals to return. Defaults to 500 (covering the entire current registry in one call), capped at 500.
page_tokenstringOpaque token from a previous list_hospitals response's next_page_token field. Omit for the first page. Do not pass any other value (e.g. an offset or cursor you construct yourself) here. Only valid wi…
querystringOptional case-insensitive hospital-name search: matches substrings of hospital_name, ranked exact name, name prefix, word-start, then other substrings (ties by name). Blank is treated as unset, which…
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state (those whose states contain it). total_count counts matches only. Anything that is not a…

list_hospital_code_costs List hospital costs for a billing code

Returns cost stats for every hospital with a matching chargemaster entry for a code_type/code. Use this instead of calling get_hospital_chargemaster_cost once per hospital when comparing prices for the same procedure across hospitals (e.g. "which hospital has the cheapest MS-DRG 652?"). Defaults to returning every matching hospital (currently at most a few hundred) in one call. If the response's next_page_token is non-empty, the result set was truncated: call this tool again passing that exact value as page_token to get the next page, and keep doing so until next_page_token is empty - do not s…

ParameterTypeDescription
code *string
code_type *stringCode system the chargemaster/billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC. Hospitals may also support additional proprietary code types not listed here.
methodologystringPricing methodology. Omit to aggregate across all methodologies.
min_sample_countintegerMinimum pricing sample size: only return hospitals whose price is backed by at least this many billing records (compared against the de-identified range's lower bound, so a '1 through 10' row counts a…
order_bystringResult ordering. Unspecified (default) is HOSPITAL_COST_ORDER_RELEVANCE when query is set and HOSPITAL_COST_ORDER_HOSPITAL_ID otherwise. Ties break by hospital_id ascending. SAMPLE_COUNT_DESC/ASC orde…
page_sizeintegerMaximum number of results to return. Defaults to 500 (covering every matching hospital in one call at the current registry size), capped at 500.
page_tokenstringOpaque token from a previous list_hospital_code_costs response's next_page_token field. Omit for the first page. Only valid with the same code_type/code/methodology/min_sample_count/query/order_by it…
querystringOptional case-insensitive hospital-name search, applied to the hospitals that report the code and ranked like list_hospitals' query (exact name, name prefix, word-start, other substrings). Blank is tr…

get_code_price_distribution Get price distribution for a billing code

Returns the distribution of every hospital's price for a code_type/code, computed server-side: min/p10/q1/median/q3/p90/max, standard deviation, a histogram, and the real hospital nearest each percentile. Use this instead of paging through list_hospital_code_costs when you want to know how prices spread across hospitals (e.g. "is $12k high for MS-DRG 788?" - pass reference_price to get the number of hospitals priced below it). All figures are in terms of the chosen statistic (default: each hospital's average price). Served from the hospital-prices serving snapshot, which pools exactly (exact m…

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
bin_countintegerNumber of histogram bars. Defaults to 16, capped at 200 (larger values are rejected).
methodologystringPricing methodology. Omit to aggregate across all methodologies.
min_sample_countintegerMinimum pricing sample size: only include hospitals whose price is backed by at least this many billing records (same semantics as list_hospital_code_costs). 0 (default) disables the filter. Negative…
reference_pricenumberOptional price to place on the distribution. When positive, hospitals_below_reference counts hospitals priced strictly below it. Negative values are rejected.
statisticstringWhich per-hospital figure to distribute: each hospital's average (default), median, lowest filed price, or highest filed price.

get_hospital_provider_code_costs Get a hospital's provider charges for a code

Returns one hospital's own charges for a (code_type, code), one entry per row of the group_by grouping (default: per billing class, methodology and setting; never blended unless GROUP_BY_ALL), plus an all_terms figure over all of them regardless of grouping. Unlike get_hospital_chargemaster_cost, billing classes are not mixed into one figure. Pass revision_id to answer for a past filing. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
hospital_id *stringOpaque hospital identifier from list_hospitals.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…
revision_idstringOptional. A revision_id from list_hospitals' per-hospital revisions array. Omit for the latest revision.

batch_get_hospital_provider_code_costs Batch get a hospital's provider charges

Batch counterpart to get_hospital_provider_code_costs: one hospital's provider charges for 1 to 100 codes in a single call, results in request order. A code the hospital doesn't charge is an entry with no costs, not an error. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
codes *array
hospital_id *stringOpaque hospital identifier from list_hospitals.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…
revision_idstringOptional. A revision_id from list_hospitals. Omit for the latest revision.

list_hospital_provider_codes List the codes a hospital charges

Lists the codes one hospital reports on its latest (or a given) revision, as list_codes does, each with that hospital's own all-terms sample counts. Paginated; supports query, sort and code_type like list_codes. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
hospital_id *stringOpaque hospital identifier from list_hospitals.
code_typestringCode system to list, e.g. CPT. Required unless query is set; with query it may be left empty to search across code types (CodeSummary.code_type tells the hits apart).
page_sizeinteger
page_tokenstringOpaque next_page_token from a previous response; only valid with the same request fields.
querystringOptional case-insensitive search over code prefix and descriptions.
revision_idstringOptional. A revision_id from list_hospitals. Omit for the latest revision.
sortstring

list_code_provider_hospitals List hospitals' provider charges for a code

Each hospital's charges for a (code_type, code), one row per hospital and group of the group_by grouping (default: per billing class, methodology and setting; GROUP_BY_ALL gives one row per hospital), paginated. The billing-class-aware counterpart to list_hospital_code_costs, good for 'which hospital is cheapest for X'. Defaults/caps page_size at 500; includes total_count and hospital_count. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…
min_sample_countintegerOnly rows backed by at least this many billing records (compared against the sample count's lower bound). Negative values are rejected.
order_bystringDefaults to relevance when query is set, hospital id otherwise.
page_sizeinteger
page_tokenstringOpaque next_page_token from a previous response; only valid with the same request fields.
querystringOptional case-insensitive hospital-name search.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…

get_code_provider_price_distribution Get provider price distribution for a code

Distribution (min/p10/q1/median/q3/p90/max, std dev, histogram, nearest hospital per percentile) of one figure per hospital for a code, never blending billing classes. The filter must name every term the group_by grouping keeps (all three of billing_class, methodology and setting for the default; the billing class or the methodology for those groupings; nothing for GROUP_BY_ALL), else INVALID_ARGUMENT; use *_UNSPECIFIED for 'not filed'. Counterpart to get_code_price_distribution. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
bin_countintegerHistogram bars. Defaults to 16, max 200.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…
include_class_breakdownbooleanAlso return `facility` and `professional` (median and hospital count of each billing class's per-hospital figures, the same as one call per class, no histogram) so a facility-vs-professional compariso…
min_sample_countintegerOnly hospitals backed by at least this many billing records. Negative values are rejected.
reference_pricenumberWhen positive, hospitals_below_reference counts hospitals priced strictly below it.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…
statisticstringWhich per-hospital figure to distribute (default average). The PERCENT_OF_CHARGES_* values distribute the percentage of billed charges of rows filed under the percent-of-total-billed-charges methodolo…

get_code_provider_terms_summary Summarize the price terms hospitals file a code under

Which billing classes, methodologies and settings hospitals file a (code_type, code) under, and how many hospitals each group has, so a caller can offer the choices before calling list_code_provider_hospitals or get_code_provider_price_distribution. group_by sets what each entry is a group of (default: one set of terms). A hospital filing several groups is counted in each, so don't sum the entries' hospital_count; use the top-level hospital_count for distinct hospitals. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…
min_sample_countintegerOnly count hospitals whose figure has at least this many billing records (same rule as list_code_provider_hospitals). Negative values are rejected.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…

get_hospital_provider_code_cost_history Get a hospital's charge history for a code

One hospital's charges for a (code_type, code) in each of its filings (revisions), oldest first, for charting a price over time: revision_id, revision_date, cms_version and the figures per group_by grouping (default per billing class, methodology and setting; use GROUP_BY_ALL or a filter naming one group so facility and professional fees are not drawn as one line). unbuilt_revision_ids lists filings whose data isn't built yet. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
hospital_id *stringOpaque hospital identifier from list_hospitals.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…

batch_get_hospital_provider_code_cost_history Batch get a hospital's charge history for codes

Batch counterpart to get_hospital_provider_code_cost_history: one hospital's charges for 1 to 100 codes in each of its filings (revisions), oldest first, in one call (upstream #2287), results in request order. Use for a list of codes with each one's price over time instead of one history call per code. A code the hospital never charges is an entry whose revisions are all empty, not an error. group_by (default per billing class, methodology and setting; use GROUP_BY_ALL or a filter naming one group for one line per code) and filter apply to every code and filing. unbuilt_revision_ids lists fili…

ParameterTypeDescription
codes *array
hospital_id *stringOpaque hospital identifier from list_hospitals.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…

get_code_provider_state_price_summary Summarize a code's hospital prices by state

Price summary of a (code_type, code) in every state at once, for a state map: per state and nationally the hospital count, min, p10/p25/median/p75/p90, max, mean and the summed sample counts of each hospital's figure. Each state's figures equal get_code_provider_price_distribution with that state. The filter must name every term the group_by grouping keeps, else INVALID_ARGUMENT. A hospital in several states counts in each. Also returns ai_description and raw_description. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringWhich rows exist: one per billing class + methodology + setting (GROUP_BY_PER_COMBINATION, the default), per billing class, per methodology, or GROUP_BY_ALL (one figure over everything, blending billi…
min_sample_countintegerOnly hospitals whose figure has at least this many billing records. Negative values are rejected.
statisticstringWhich per-hospital figure to summarize (default average).

get_hospital_code_payer_rate_history Get a hospital's payer-rate history for a code

Every plan rate one hospital files for a (code_type, code) in each of its filings, oldest first, for charting a payer's negotiated rate revision over revision: revision_id, revision_date, cms_version, has_payer_data (empty rates in a filing without payer data says nothing about the code) and the plan rates. Same rate fields as get_hospital_code_payer_rates. Filings held for review are left out. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
hospital_id *stringA hospital_id from list_hospitals.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…

get_code_payer_state_price_summary Summarize what payers pay for a code by state

Summary of what payers pay for a (code_type, code) in every state at once, for a state map of payer rates: per state and nationally the count, min, p10/p25/median/p75/p90, max and mean of the figures of get_code_payers_price_distribution (one per payer) or, with payer_slug, of get_code_payer_price_distribution (that payer's, one per hospital). The filter must name every term the group_by grouping keeps, else INVALID_ARGUMENT. Also returns ai_description and raw_description. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringHow a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no f…
min_hospital_countintegerLeave out payers filed by fewer hospitals than this (0 or 1: none). Negative is rejected.
payer_slugstringOptional payer_slug (e.g. "aetna"): summarize that payer's per-hospital figures instead of one figure per payer.
statisticstringWhich figure to summarize (default average).

list_code_payers List payers' negotiated rates for a code

Every insurer (payer) with a negotiated rate for a (code_type, code), one summary per payer and billing class/methodology/setting, across hospitals, most hospitals first: hospital_count, count_rate, min/avg/median-of-hospital-averages/max rate and the price terms. Billing classes, methodologies and settings are never blended. Use the returned payer_slug (e.g. "aetna") with list_code_payer_hospitals. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…

get_hospital_code_payer_rates Get a hospital's payer plan rates for a code

Every plan rate (per payer and plan, with price terms) one hospital files for a (code_type, code), cheapest average first. Pass revision_id (from list_hospitals) to answer for a past filing. NOT_FOUND when the hospital has no payer rates at all; an empty rates list when it has some but none for this code. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
hospital_id *stringA hospital_id from list_hospitals.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
revision_idstringOptional revision_id from list_hospitals; defaults to the hospital's latest revision.

list_code_payer_hospitals List one payer's rates for a code across hospitals

One payer's rate for a (code_type, code) at each hospital, one row per hospital and billing class/methodology/setting, paginated, rolled up across the payer's plans there. Good for 'which hospital is cheapest for Aetna members'. Defaults/caps page_size at 500; includes total_count. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
payer_slug *stringA payer_slug from list_code_payers, e.g. "aetna".
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
min_sample_countintegerOnly hospitals whose figure has at least this many billing records (sample count lower bound). 0 keeps every hospital; negative is rejected.
order_bystringDefaults to AVG_ASC (cheapest average first). STD_DEV_* orders by how widely the payer's rates vary at a hospital, COEFFICIENT_OF_VARIATION_* by that spread relative to the price level (comparable acr…
page_sizeinteger
page_tokenstringOpaque next_page_token from a previous response; only valid with the same request fields.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…

get_code_payer_price_distribution Get one payer's price distribution for a code

Distribution (min/p10/q1/median/q3/p90/max, std dev, histogram, nearest hospital per percentile) of one payer's rate for a (code_type, code) across hospitals, one figure per hospital; the payer-specific counterpart to get_code_provider_price_distribution. The filter must name every term the group_by grouping keeps, else INVALID_ARGUMENT. Pass plan_slug (from list_payer_plans) to distribute one plan's rates alone; MEDIAN is then only valid with PAYER_GROUP_BY_PER_COMBINATION. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
payer_slug *stringA payer_slug from list_payers or list_code_payers, e.g. "aetna".
bin_countintegerHistogram bars. Defaults to 16, max 200.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringHow a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no f…
plan_slugstringOptional plan_slug from list_payer_plans: distribute that plan's rates alone (hospitals not filing the plan are left out). Empty means the payer as a whole.
reference_pricenumberWhen positive, the response counts how many are priced strictly below it.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…
statisticstringWhich figure to distribute (default average).

get_code_payers_price_distribution Compare payers' prices for a code

Distribution of a code's price across payers, one figure per payer (how the payers compare), the third view beside get_code_provider_price_distribution (over hospitals) and get_code_payer_price_distribution (over one payer's hospitals). The filter must name every term the group_by grouping keeps, else INVALID_ARGUMENT. Each payer is reduced to one figure over its hospitals (average weighted by rate lines; MEDIAN is the median of the hospitals' averages; MIN/MAX the lowest/highest hospital row). Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened o…

ParameterTypeDescription
code *string
code_type *stringCode system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC.
bin_countintegerHistogram bars. Defaults to 16, max 200.
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringHow a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no f…
include_class_breakdownbooleanAlso return `facility` and `professional` (median price over payers and payer_count for each billing class, always both, for a facility-vs-professional comparison in one call). Only answered for a nat…
min_hospital_countintegerLeave out payers filed by fewer hospitals than this (0 or 1: none). Negative is rejected.
reference_pricenumberWhen positive, the response counts how many are priced strictly below it.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…
statisticstringWhich figure to distribute (default average).

list_payers List payers

Every insurer (payer) in the snapshot, independent of any code, most hospitals first, with display_name, hospital_count, code_count and payer_rate_rows. About 70, so unpaginated. Use the payer_slug with get_payer, list_payer_plans, list_payer_hospitals and the code-level payer tools. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
min_hospital_countintegerLeave out payers filed by fewer hospitals than this, to drop the long tail. 0 (default) returns all.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…

get_payer Get a payer

One payer's header: display name and counts, plus its top codes (grouped like the provider RPCs; the filter may name only terms the grouping keeps) and the states it appears in. state narrows only the payer's counts: top_codes stay network-wide. NOT_FOUND when no hospital in the state files the payer. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
payer_slug *stringA payer_slug from list_payers or list_code_payers, e.g. "aetna".
filterobjectKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are nev…
group_bystringHow a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no f…
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…
top_code_countintegerHow many top codes to return. Defaults to 10, capped at 100.

list_payer_plans List a payer's plans

The plans a payer is filed under, most hospitals first, paginated: plan_slug, plan name, hospital_count, code_count, payer_rate_rows and filed_rate_count. Use plan_slug with get_code_payer_price_distribution. Includes total_count. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
payer_slug *stringA payer_slug from list_payers or list_code_payers, e.g. "aetna".
min_hospital_countintegerLeave out plans filed by fewer hospitals than this.
page_sizeintegerDefaults/caps at 500.
page_tokenstringOpaque next_page_token from a previous response; only valid with the same request fields.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…

list_hospital_plans List the plans a hospital files rates under

The payers and plans one hospital files negotiated rates under, across all its codes, most codes first, paginated, with code_count, payer_rate_rows and filed_rate_count. Includes total_count. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
hospital_id *stringA hospital_id from list_hospitals.
min_code_countintegerLeave out plans with fewer codes than this.
page_sizeintegerDefaults/caps at 500.
page_tokenstringOpaque next_page_token from a previous response; only valid with the same request fields.
payer_slugstringOptional: only this payer's plans.

list_hospital_payers List the payers a hospital files rates for

A hospital's payers rolled up from its plans, most plans first: display_name, plan_count, payer_rate_rows and filed_rate_count. Unpaginated. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
hospital_id *stringA hospital_id from list_hospitals.

list_payer_hospitals List the hospitals that file a payer

The hospitals that file a payer across all codes, optionally in one state, paginated: plan_count, payer_rate_rows and filed_rate_count per hospital. Includes total_count. For one payer's rates for a specific code use list_code_payer_hospitals. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

ParameterTypeDescription
payer_slug *stringA payer_slug from list_payers or list_code_payers, e.g. "aetna".
order_bystringDefaults to PAYER_HOSPITAL_ORDER_RATE_ROWS_DESC.
page_sizeintegerDefaults/caps at 500.
page_tokenstringOpaque next_page_token from a previous response; only valid with the same request fields.
querystringOptional case-insensitive hospital-name search.
statestringOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to…

list_code_types List billing code types

Returns every distinct code_type (e.g. CPT, MS-DRG) with catalogued cost data, along with each type's distinct code count and total hospital reports. Unpaginated. Use this to discover which code systems have data before drilling into list_codes.

list_codes List billing codes for a code type

Returns every distinct code catalogued under a given code_type, paginated, with each code's raw chargemaster description and the number of hospitals reporting it. Use this to discover which codes exist under a code system (e.g. all CPT codes) before looking up prices with get_hospital_chargemaster_cost or list_hospital_code_costs. Pass query to text-search codes/descriptions instead of listing a whole code_type. Pass hospital_id to restrict results to codes that one hospital actually reports.

ParameterTypeDescription
code_typestringCode system to list codes for, e.g. "CPT". From list_code_types. May be left empty when query is set, to search across code types (excluding hospital-specific CDM and LOCAL codes) - CodeSummary.code_t…
hospital_idstringOptional hospital scoping (a hospital_id from list_hospitals): restricts results to codes that hospital actually reports on its latest revision, and makes sample_count_min/max/exact that hospital's ow…
min_class_hospital_countintegerMinimum hospitals behind a billing class's median for the class orders (facility/professional median price: that class; facility share: both classes). A code below it sorts last but is still listed. W…
page_sizeintegerMaximum number of results to return. Defaults to 500, capped at 500.
page_tokenstringOpaque token from a previous list_codes response. Omit for the first page. Only valid with the same query/code_type/sort it was issued for.
querystringCase-insensitive text search: matches the code as a prefix, and substrings of the raw and AI-generated descriptions. Descriptions are only searched for queries of 4+ characters; shorter queries match…
sortstringOrdering for the returned codes. CODE_SORT_UNSPECIFIED (default) sorts code-alphabetical. CODE_SORT_HOSPITAL_COUNT_DESC sorts most-hospitals-reporting first, for pre-sorted 'top codes' pages. CODE_SOR…