Drug Prices
v0.2.1US drug price benchmarks — what a pharmacy PAYS and what Medicare PAYS OUT.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
nadac_price
What a US retail pharmacy actually PAYS to acquire a drug — the National Average Drug Acquisition Cost (NADAC), surveyed and published weekly by CMS. Look up by drug name ("atorvastatin 20 mg", "Eliquis", "insulin glargine") or by NDC. NAME MATCHING IS LITERAL: NADAC lists brand products under their BRAND name and generics under the ingredient name, so "Eliquis" finds rows where "apixaban" finds none — if one returns nothing, try the other. Returns the most recent weekly price per NDC with its pricing unit (EA/ML/GM), brand-or-generic classification, and the week the price applies to. This…
| Parameter | Type | Description |
|---|---|---|
as_of | string | Optional ISO date (YYYY-MM-DD). Returns the pricing week in effect on that date instead of the newest. Use for "what did this cost in March". |
drug | string | Drug name or fragment, e.g. "atorvastatin 20 mg", "apixaban", "albuterol". Matched against the NDC description. Give either this or `ndc`. |
limit | number | Max NDCs to return, 1–100 (default 20). |
ndc | string | National Drug Code. Any common format accepted — 11-digit "00093505610", dashed 5-4-2 "00093-5056-10", or 10-digit; it is normalised to the canonical 11-digit form. |
nadac_history
Weekly price history for one drug NDC — how the pharmacy acquisition cost (NADAC) moved over time. Use for "has the price of this generic gone up", shortage-driven price spikes, or generic erosion after a patent expiry. Returns one row per published week, oldest to newest, with the pricing unit and the percentage change across the window. Keyless.
| Parameter | Type | Description |
|---|---|---|
ndc * | string | National Drug Code in any common format (11-digit, dashed 5-4-2, or 10-digit). |
weeks | number | How many recent weekly observations to return, 1–260 (default 26). |
asp_payment_limit
What Medicare Part B PAYS for a drug administered by a provider — the quarterly ASP payment limit, set by statute at 106% of the manufacturer-reported Average Sales Price. Look up by HCPCS J-code ("J9271") or drug name ("pembrolizumab", "Keytruda"). This is the clinic/infusion benchmark: oncology drugs, biologics, injectables and vaccines. Returns the limit per its dosage unit, the quarter it is in force, AND the earlier quarter of ASP data it was derived from — those differ by two quarters and the gap matters. For retail pharmacy acquisition cost use nadac_price instead. Keyless.
| Parameter | Type | Description |
|---|---|---|
drug | string | Drug name or fragment matched against the short description, e.g. "pembrolizumab", "rituximab". Give either this or `hcpcs`. |
hcpcs | string | HCPCS code, e.g. "J9271" (pembrolizumab), "J0178" (aflibercept), "90632". |
limit | number | Max codes to return when searching by name, 1–100 (default 20). |
quarter | string | Optional quarter as a date in it, or "YYYY-Qn" (e.g. "2026-Q1", "2026-01-01"). Defaults to the most recent quarter loaded. |
drug_price_compare
Put the two US drug price benchmarks side by side for one drug — what a pharmacy pays to acquire it (NADAC, weekly) against what Medicare Part B pays a provider for it (ASP limit, quarterly). Use to see the spread between acquisition cost and reimbursement, or to check whether a drug is a retail or a clinic-administered product at all. States the vintage of each number and warns when they are measured months apart, because the ASP limit in force is derived from ASP data two quarters earlier. Returns whichever benchmarks exist — many drugs legitimately have only one. Keyless.
| Parameter | Type | Description |
|---|---|---|
drug * | string | Drug name, e.g. "pembrolizumab", "atorvastatin", "rituximab". |
ndc | string | Optional NDC to pin the NADAC side to one product. |
b340_covered_entities
Find 340B drug pricing program covered entities registered with HRSA: hospitals, community health centers, Ryan White HIV clinics, family planning and STD grantees. Filter by state, entity type or name and get the 340B ID, registration start date, parent hospital, Medicare CCN, NPI numbers and how many contract pharmacies each one uses. Answers which providers can buy drugs at 340B ceiling prices in a given state, whether a named hospital participates, and when it joined.
| Parameter | Type | Description |
|---|---|---|
id340b | string | Exact 340B ID, e.g. "DSH340075H". |
include_terminated | boolean | Include entities no longer participating. Default false — 29,950 of 94,363 records are terminated registrations. |
limit | number | Max rows, default 25, max 200. |
name | string | Match part of the entity or subsidiary name, e.g. "Cleveland Clinic". |
state | string | Two-letter state or territory code, or a full state name ("TX" or "Texas"). |
type | string | Entity type. Plain words work ("hospital", "health center", "Ryan White", "critical access", "homeless"), as do HRSA codes ("DSH", "CAH", "CH"). |
b340_contract_pharmacies
List the contract pharmacies a 340B covered entity dispenses through, or work backwards from a pharmacy chain to the covered entities it serves. Returns pharmacy name, city, state, contract begin date and termination date. Answers how large a hospital 340B pharmacy network is, which chains a health center contracts with, and how many 340B relationships a chain like Walgreens or CVS holds in a state.
| Parameter | Type | Description |
|---|---|---|
id340b | string | The covered entity, e.g. "DSH340075H". Give this or `pharmacy`. |
include_terminated | boolean | Include contracts whose termination date has passed. Default false. |
limit | number | Max rows, default 25, max 200. |
pharmacy | string | Match part of a pharmacy name, e.g. "Walgreens". Give this or `id340b`. |
state | string | Restrict to pharmacies in this state ("TX" or "Texas"). |