Skip to content

Free tool · Advanced

Custom SQL

Read-only SQL (DuckDB) over the full data through table functions such as rc_rates, rc_medicare and rc_nppes.

Who it's for

Developers and researchers who want direct access to the full tables.

Example inputs

  • SQL: SELECT payer, count(DISTINCT tin) AS groups, median(rate) AS median_rate…

Ask an AI assistant

Connect Claude, ChatGPT or any MCP client to https://www.ratecommons.org/mcp (no key; setup guide), then ask, for example:

Using SQL, count provider groups and the median 99213 rate per insurer in Missouri.

The assistant calls the run_sql tool and answers from the published data, with a link back to the source.

Call it from code

curl -s https://www.ratecommons.org/api/tool/run_sql \
  -H 'content-type: application/json' \
  -d '{"sql":"SELECT payer, count(DISTINCT tin) AS groups, median(rate) AS median_rate\nFROM rc_rates('\''all'\'', '\''MO'\'', '\''99213'\'', '\'''\'', '\''office'\'')\nWHERE negotiated_type = '\''negotiated'\'' AND rate > 0.01 AND rate < 99999\nGROUP BY payer ORDER BY payer"}'

Free, no key, no sign-up. All tools and their inputs: /api/tools. The full data is also downloadable as Parquet from the data page.

Reading the results

Rates are what insurers have agreed to pay, as published in their Transparency in Coverage files; they are not bills or out-of-pocket costs. A missing rate means no published rate, not out of network. See methods and limits.

Related tools

  • Code lookup: What a billing code is and how widely each insurer prices it.
  • Medicare fee schedule: Medicare's 2026 physician fee schedule amounts for any codes, nationally or by state.
  • Data status: Which insurers and networks are loaded right now, and when each was built.