Skip to content

Openpipe Health API

The Openpipe Health API answers questions about who delivers care in the US and how much of it: clinicians, hospitals and health systems, nursing homes and other care sites, group practices, procedures, prescriptions, drug markets, Medicare payers, ACOs, trial investigators and industry payments. The data comes from public files, most of them from CMS, and every response shows the SQL the server ran to produce it, as a receipt.

You have Use Cost
A filter in mind (state, specialty, procedure code) Search and lookup endpoints 1 credit
A question the filters cannot express, in plain English POST /api/ask: a small dashboard, as one JSON document or a live stream 25 credits

Large result sets go through POST /api/exports, which writes every row of a list search or of an answer’s tile to a CSV and returns a download link.

There is no endpoint that accepts SQL. The server writes the SQL, checks it, and shows it to you with each result.

Before spending credits, the free data catalog lists every dataset and column with sample rows. Answers are stored as dashboards that open and refresh for free.

AI clients such as Claude Code and Cursor can use the search and lookup tools and ask through the MCP server, at the same prices.

  • Clinicians and organizations: every active NPI in the registry (about 9.5 million), plus Medicare Part B totals for the 1.3 million that billed Medicare in 2024.
  • Procedures: 9.8 million rows of volume by clinician and HCPCS code.
  • Prescribing: 28 million rows of Part D claims by prescriber and drug.
  • Hospitals: 9,326 hospitals with beds, discharges, revenue and owners, including private-equity flags.
  • Hospital intelligence: star ratings and quality measures for 5,435 hospitals, the EHR vendor of 4,224, the health system of 3,950, Medicare inpatient volume by MS-DRG, and 2.3 million clinician-to-facility affiliations. See Hospitals and systems.
  • Care sites: 94,745 nursing homes, home health agencies, hospices, dialysis facilities, surgery centers and clinics, with owners for five of the types. See Care sites.
  • Group practices: 219,703 groups and 3.8 million clinician-to-group links.
  • Drug markets: Part D and Medicaid volume by drug and state, and national spending per drug from 2020 to 2024. See Drug markets.
  • Payers and ACOs: 7,582 Medicare Advantage and Part D plans with enrollment by county, and 544 Medicare Shared Savings Program ACOs with their participants. See Payers and ACOs.
  • Experts: 165,307 clinical trials and three fiscal years of NIH grants, with investigators linked to an NPI by name. See Experts.
  • Industry payments: 4.6 million Open Payments rows, aggregated to clinician and company.

See Datasets for versions and sources, and Caveats before you quote a number: most utilization is Medicare fee-for-service only, and none of it is commercial insurance.

  1. Build with an AI agent: one prompt that sets up Claude Code, Cursor or any coding agent.
  2. Quickstart: first request in about two minutes.
  3. Authentication: API keys and session tokens.
  4. Workspaces and teams: who shares credits and keys.
  5. MCP server: connect Claude Code or another MCP client.
  6. Receipts: how to read the sql and sources fields on every response.