Medicaid Drug Trend
medicaid_drug_trendHow much Medicaid spent on a drug, year by year — annual prescriptions, units and gross reimbursement from 2020 onward, split between fee-for-service and managed care. Ask by NAME ("Ozempic", "Humira"): the name is matched against the Medicaid product list and aggregated across every package size, so this answers "how much did Medicaid spend on X" directly. An exact 11-digit NDC narrows to one package instead. Reimbursement is GROSS, before the rebates Medicaid negotiates, so it is not manufacturer revenue or net cost to the programme. Suppressed values are never converted to zero.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ndc | No | Exact 11-digit National Drug Code, hyphenated or not, e.g. "00002-1433-80". Optional — give this OR drug. An NDC narrows to one package size. | |
| drug | No | Drug name as it appears on the package, e.g. "Ozempic" or "Humira" — matched against the Medicaid product list, aggregating every package size. A generic ingredient is expanded to its NDCs automatically when Medicaid lists it only under brands. | |
| state | No | US state, as a two-letter code ("CA") or a full name ("California") — both are accepted. | |
| to_year | No | Last calendar year, 2026 or earlier. | |
| from_year | No | First calendar year, 2020 or later. Defaults to 2024 — pass an earlier year for a longer history. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ndc | No | Present only when the call was matched on an exact NDC. | |
| drug | No | ||
| state | No | ||
| years | Yes | ||
| source | Yes | ||
| matched_by | Yes | ndc | product_name | ndc_expansion. | |
| interpretation | Yes |