{"api":{"id":"api_f0bda54168d029ca26fb7d0a","slug":"medicare-medicaid-drug-spending","name":"Medicare & Medicaid Drug Spending","description":"Yearly government spending on each drug in Medicare Part D, Medicare Part B or Medicaid, from CMS: brand, generic name, manufacturer, total spending, claims, beneficiaries, dosage units and average spending per claim, beneficiary and unit, one row per drug and year.","kind":"ready_made","visibility":"public","domain":"data.cms.gov","source_url":"https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-spending-by-drug","category":"health","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":19,"created_at":"2026-12-06T04:12:04.055Z","updated_at":"2026-12-06T04:12:04.055Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"This row's key: program, brand, generic name, billing code or manufacturer, and year.","required":true,"coverage":1,"example":"part_d|Ozempic|Semaglutide|Novo Nordisk|2020"},{"name":"program","type":"string","description":"Medicare Part D, Medicare Part B or Medicaid.","required":false,"coverage":1,"example":"Medicare Part D"},{"name":"brand_name","type":"string","description":"Brand name of the drug.","required":false,"coverage":1,"example":"Ozempic"},{"name":"generic_name","type":"string","description":"Generic name of the drug.","required":false,"coverage":1,"example":"Semaglutide"},{"name":"manufacturer","type":"string","description":"The manufacturer; null on total rows and in Part B.","required":false,"coverage":1,"example":"Novo Nordisk"},{"name":"is_overall","type":"boolean","description":"Whether the row totals all manufacturers of the drug.","required":false,"coverage":1,"example":false},{"name":"manufacturers_count","type":"integer","description":"Number of manufacturers of the drug.","required":false,"coverage":1,"example":1},{"name":"year","type":"integer","description":"The calendar year the spending is for.","required":false,"coverage":1,"example":2020},{"name":"total_spending","type":"money","description":"Total spending on the drug that year; the currency is in currency.","required":false,"coverage":1,"example":1455812267.1},{"name":"currency","type":"string","description":"Currency of the money fields: USD.","required":false,"coverage":1,"example":"USD"},{"name":"total_claims","type":"integer","description":"Number of claims that year.","required":false,"coverage":1,"example":1204138},{"name":"total_beneficiaries","type":"integer","description":"Number of patients who received the drug that year (Medicare only).","required":false,"coverage":1,"example":269663},{"name":"dosage_units","type":"number","description":"Dosage units dispensed or given that year, such as pills, milliliters or billing units.","required":false,"coverage":1,"example":3813091.786},{"name":"avg_spend_per_claim","type":"money","description":"Average spending per claim that year.","required":false,"coverage":1,"example":1209.0078273},{"name":"avg_spend_per_beneficiary","type":"money","description":"Average spending per patient that year (Medicare only).","required":false,"coverage":1,"example":5398.6355827},{"name":"avg_spend_per_unit","type":"money","description":"Average spending per dosage unit that year (weighted across products in Part D and Medicaid).","required":false,"coverage":1,"example":433.66625915},{"name":"change_in_avg_spend_per_unit","type":"number","description":"CMS's change in average spending per unit from the year before into the latest year, as a fraction (0.05 is 5% higher); on the latest year's row only.","required":false,"coverage":0.2,"example":-0.13887162},{"name":"annual_growth_rate","type":"number","description":"CMS's compound annual growth rate of average spending per unit over the years shown, as a fraction; the same on every year of the drug.","required":false,"coverage":1,"example":-0.0831234},{"name":"is_outlier","type":"boolean","description":"Whether CMS flags that year's average spending per unit as an outlier; use those values with care.","required":false,"coverage":1,"example":false}],"inputs":[{"name":"program","type":"string","description":"part_d (Medicare drugs patients take themselves), part_b (drugs given in doctors' offices and outpatient settings) or medicaid.","default":"part_d","example":"part_d","enum":["part_d","part_b","medicaid"]},{"name":"drug","type":"string","description":"Brand or generic name, such as Ozempic or semaglutide; for Part B also a HCPCS code such as J9271. Leave empty for every drug in the program.","example":"Ozempic"},{"name":"manufacturer","type":"string","description":"Only rows whose manufacturer name contains these words, such as Novo Nordisk. Part D and Medicaid only.","example":"Novo Nordisk"},{"name":"level","type":"string","description":"all rows, only the overall total of each drug, or only the rows per manufacturer (Part D and Medicaid). Part B rows count as overall.","default":"all","example":"manufacturer","enum":["all","overall","manufacturer"]},{"name":"year","type":"integer","description":"Only this year, such as 2024. Leave empty for every year in the current release.","example":2024}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"annual_growth_rate":{"description":"CMS's compound annual growth rate of average spending per unit over the years shown, as a fraction; the same on every year of the drug.","type":"number"},"avg_spend_per_beneficiary":{"description":"Average spending per patient that year (Medicare only).","type":"number"},"avg_spend_per_claim":{"description":"Average spending per claim that year.","type":"number"},"avg_spend_per_unit":{"description":"Average spending per dosage unit that year (weighted across products in Part D and Medicaid).","type":"number"},"brand_name":{"description":"Brand name of the drug.","type":"string"},"change_in_avg_spend_per_unit":{"description":"CMS's change in average spending per unit from the year before into the latest year, as a fraction (0.05 is 5% higher); on the latest year's row only.","type":"number"},"currency":{"description":"Currency of the money fields: USD.","type":"string"},"dosage_units":{"description":"Dosage units dispensed or given that year, such as pills, milliliters or billing units.","type":"number"},"generic_name":{"description":"Generic name of the drug.","type":"string"},"id":{"description":"This row's key: program, brand, generic name, billing code or manufacturer, and year.","type":"string"},"is_outlier":{"description":"Whether CMS flags that year's average spending per unit as an outlier; use those values with care.","type":"boolean"},"is_overall":{"description":"Whether the row totals all manufacturers of the drug.","type":"boolean"},"manufacturer":{"description":"The manufacturer; null on total rows and in Part B.","type":"string"},"manufacturers_count":{"description":"Number of manufacturers of the drug.","type":"integer"},"program":{"description":"Medicare Part D, Medicare Part B or Medicaid.","type":"string"},"total_beneficiaries":{"description":"Number of patients who received the drug that year (Medicare only).","type":"integer"},"total_claims":{"description":"Number of claims that year.","type":"integer"},"total_spending":{"description":"Total spending on the drug that year; the currency is in currency.","type":"number"},"year":{"description":"The calendar year the spending is for.","type":"integer"}},"required":["id"],"title":"Medicare & Medicaid Drug Spending","type":"object"},"samples":[{"id":"part_d|Ozempic|Semaglutide|Novo Nordisk|2020","program":"Medicare Part D","brand_name":"Ozempic","generic_name":"Semaglutide","manufacturer":"Novo Nordisk","is_overall":false,"manufacturers_count":1,"year":2020,"total_spending":1455812267.1,"currency":"USD","total_claims":1204138,"total_beneficiaries":269663,"dosage_units":3813091.786,"avg_spend_per_claim":1209.0078273,"avg_spend_per_beneficiary":5398.6355827,"avg_spend_per_unit":433.66625915,"change_in_avg_spend_per_unit":null,"annual_growth_rate":-0.0831234,"is_outlier":false},{"id":"part_d|Ozempic|Semaglutide|Novo Nordisk|2021","program":"Medicare Part D","brand_name":"Ozempic","generic_name":"Semaglutide","manufacturer":"Novo Nordisk","is_overall":false,"manufacturers_count":1,"year":2021,"total_spending":2621694348.3,"currency":"USD","total_claims":2016177,"total_beneficiaries":458643,"dosage_units":6617457.857,"avg_spend_per_claim":1300.3294593,"avg_spend_per_beneficiary":5716.1983248,"avg_spend_per_unit":452.72044757,"change_in_avg_spend_per_unit":null,"annual_growth_rate":-0.0831234,"is_outlier":false},{"id":"part_d|Ozempic|Semaglutide|Novo Nordisk|2022","program":"Medicare Part D","brand_name":"Ozempic","generic_name":"Semaglutide","manufacturer":"Novo Nordisk","is_overall":false,"manufacturers_count":1,"year":2022,"total_spending":4628160643.4,"currency":"USD","total_claims":3410839,"total_beneficiaries":780253,"dosage_units":11314543.293,"avg_spend_per_claim":1356.8980076,"avg_spend_per_beneficiary":5931.6153137,"avg_spend_per_unit":468.24204575,"change_in_avg_spend_per_unit":null,"annual_growth_rate":-0.0831234,"is_outlier":false}],"validation":{"checked_at":"2026-12-06T04:12:04.051Z","field_coverage":{"annual_growth_rate":1,"avg_spend_per_beneficiary":1,"avg_spend_per_claim":1,"avg_spend_per_unit":1,"brand_name":1,"change_in_avg_spend_per_unit":0,"currency":1,"dosage_units":1,"generic_name":1,"id":1,"is_outlier":1,"is_overall":1,"manufacturer":1,"manufacturers_count":1,"program":1,"total_beneficiaries":1,"total_claims":1,"total_spending":1,"year":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_f0bda54168d029ca26fb7d0a/run","openapi":"https://pullrow.dev/v1/apis/api_f0bda54168d029ca26fb7d0a/openapi.json","contract":"https://pullrow.dev/v1/apis/api_f0bda54168d029ca26fb7d0a/contract.json","page":"https://pullrow.dev/catalog/medicare-medicaid-drug-spending"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Data as the Centers for Medicare & Medicaid Services publishes it in its Spending by Drug datasets, updated once a year; the current release covers 2020 to 2024. CMS does not endorse this API.","Part D and Medicaid spending is gross: before manufacturer rebates, which CMS does not publish, so net spending is lower. Part B spending is the full payment, Medicare's share plus the patient's.","Part B lists one row per drug billing code (HCPCS) and has no manufacturer; the billing code itself is not returned, but it works as the drug search, such as J9271.","Medicaid rows have no beneficiary counts.","change_in_avg_spend_per_unit is CMS's published change into the latest year and sits on that year's row only; compare earlier years through avg_spend_per_unit.","drug matches words anywhere in a row, including the manufacturer name, so a broad word such as insulin also finds syringes and pen needles.","At most 100,000 rows per run, enough for a whole program (Medicaid has about 18,500 drug rows, up to five years each).","Public domain U.S. government data."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"This row's key: program, brand, generic name, billing code or manufacturer, and year.","group":"Technical","shown":false,"written":false},{"name":"program","label":"Program","description":"Medicare Part D, Medicare Part B or Medicaid.","group":"Basics","shown":true,"written":false},{"name":"brand_name","label":"Brand name","description":"Brand name of the drug.","group":"Basics","shown":true,"written":false},{"name":"generic_name","label":"Generic name","description":"Generic name of the drug.","group":"Basics","shown":true,"written":false},{"name":"manufacturer","label":"Manufacturer","description":"The manufacturer; null on total rows and in Part B.","group":"Basics","shown":true,"written":false},{"name":"is_overall","label":"Overall","description":"Whether the row totals all manufacturers of the drug.","group":"Basics","shown":true,"written":false},{"name":"manufacturers_count","label":"Manufacturers count","description":"Number of manufacturers of the drug.","group":"Basics","shown":true,"written":false},{"name":"year","label":"Year","description":"The calendar year the spending is for.","group":"Dates","shown":true,"written":false},{"name":"total_spending","label":"Total spending","description":"Total spending on the drug that year; the currency is in currency.","group":"Pay","shown":true,"written":false},{"name":"currency","label":"Currency","description":"Currency of the money fields: USD.","group":"Pay","shown":true,"written":false},{"name":"total_claims","label":"Total claims","description":"Number of claims that year.","group":"Basics","shown":true,"written":false},{"name":"total_beneficiaries","label":"Total beneficiaries","description":"Number of patients who received the drug that year (Medicare only).","group":"Basics","shown":true,"written":false},{"name":"dosage_units","label":"Dosage units","description":"Dosage units dispensed or given that year, such as pills, milliliters or billing units.","group":"Basics","shown":true,"written":false},{"name":"avg_spend_per_claim","label":"Average spend per claim","description":"Average spending per claim that year.","group":"Pay","shown":true,"written":false},{"name":"avg_spend_per_beneficiary","label":"Average spend per beneficiary","description":"Average spending per patient that year (Medicare only).","group":"Pay","shown":true,"written":false},{"name":"avg_spend_per_unit","label":"Average spend per unit","description":"Average spending per dosage unit that year (weighted across products in Part D and Medicaid).","group":"Pay","shown":true,"written":false},{"name":"change_in_avg_spend_per_unit","label":"Change in average spend per unit","description":"CMS's change in average spending per unit from the year before into the latest year, as a fraction (0.05 is 5% higher); on the latest year's row only.","group":"Basics","shown":true,"written":false},{"name":"annual_growth_rate","label":"Annual growth rate","description":"CMS's compound annual growth rate of average spending per unit over the years shown, as a fraction; the same on every year of the drug.","group":"Basics","shown":true,"written":false},{"name":"is_outlier","label":"Outlier","description":"Whether CMS flags that year's average spending per unit as an outlier; use those values with care.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"program","label":"Program","help":"part_d (Medicare drugs patients take themselves), part_b (drugs given in doctors' offices and outpatient settings) or medicaid.","example":"part_d","written":false},{"name":"drug","label":"Drug","help":"Brand or generic name, such as Ozempic or semaglutide; for Part B also a HCPCS code such as J9271. Leave empty for every drug in the program.","example":"Ozempic","written":false},{"name":"manufacturer","label":"Manufacturer","help":"Only rows whose manufacturer name contains these words, such as Novo Nordisk. Part D and Medicaid only.","example":"Novo Nordisk","written":false},{"name":"level","label":"Level","help":"all rows, only the overall total of each drug, or only the rows per manufacturer (Part D and Medicaid). Part B rows count as overall.","example":"manufacturer","written":false},{"name":"year","label":"Year","help":"Only this year, such as 2024. Leave empty for every year in the current release.","example":"2024","written":false}]}},"incidents":[]}