Medicare Drug Prescribing by State

Medicare Part D prescribing totals per drug for the nation and each U.S. state: prescribers, claims, 30-day fills, drug cost and patients, with the 65-and-over share, patient cost sharing and opioid, antibiotic and antipsychotic flags. Search by brand or generic name and compare several drugs in one run.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 24 fieldsv1.0

Data from data.cms.gov/provider-summary-by-type-of-service/medicare-part-d-prescribers/medicare-part-d-prescribers-by-geography-and-drug

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Drugoptional
Brand or generic name, or part of one, such as Ozempic or semaglutide. Several drugs separated by commas, such as Ozempic, Mounjaro, Trulicity, come back together.
Example: Ozempic
Place leveloptional
Which rows: national and state rows (all, the default), state rows only, or the national total only.
Stateoptional
Only this state or territory, by name or two-letter code, such as Tennessee or TN.
Example: Tennessee
Drug typeoptional
Only drugs CMS marks as opioids, long-acting opioids, antibiotics or antipsychotics. any keeps every drug.
Sortoptional
Order of the rows: by area and drug name (the default: national first, then states), most claims, highest drug cost or most prescribers first.

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/medicare-part-d-prescribing-by-state/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/medicare-part-d-prescribing-by-state/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"drug":"Ozempic"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

drugtext
Brand or generic name, or part of one, such as Ozempic or semaglutide. Several drugs separated by commas, such as Ozempic, Mounjaro, Trulicity, come back together.
example: Ozempic
geo_leveltext
Which rows: national and state rows (all, the default), state rows only, or the national total only.
default: allone of: all, state, national
statetext
Only this state or territory, by name or two-letter code, such as Tennessee or TN.
example: Tennessee
drug_typetext
Only drugs CMS marks as opioids, long-acting opioids, antibiotics or antipsychotics. any keeps every drug.
default: anyone of: any, opioid, long_acting_opioid, antibiotic, antipsychotic
sorttext
Order of the rows: by area and drug name (the default: national first, then states), most claims, highest drug cost or most prescribers first.
default: geographyone of: geography, most_claims, highest_cost, most_prescribers

What's in each record

24 fields.

Basics

  • Place level

    national for the U.S. total, state for a state, territory or other area.

    Example national

  • Place code

    Two-character FIPS code of the state or area, such as 47 for Tennessee; empty for the national row.

    Example 01

  • Place name

    Name of the area: National, or the state, territory or other area such as Tennessee.

    Example National

  • Brand name

    Brand name of the drug, such as Ozempic; for generic drugs, the generic product name.

    Example Mounjaro

  • Generic name

    Generic (chemical) name of the drug, such as Semaglutide.

    Example Tirzepatide

  • Prescribers

    Number of distinct prescribers with claims for the drug in the area.

    Example 194,653

  • Claims

    Number of Part D claims (original prescriptions and refills).

    Example 5,103,556

  • Thirty day fills

    Number of standardized 30-day fills, which counts a 90-day supply as three.

    Example 6,093,348.5

  • Beneficiaries

    Number of distinct Medicare patients with claims; empty when under 11.

    Example 894,243

  • Claims 65 plus

    Claims for patients aged 65 and over; empty when CMS hides small counts.

    Example 3,800,814

  • Thirty day fills 65 plus

    Standardized 30-day fills for patients aged 65 and over.

    Example 4,569,326.9

  • Beneficiaries 65 plus

    Distinct patients aged 65 and over; empty when CMS hides small counts.

    Example 679,553

  • Opioid

    Yes when CMS marks the drug as an opioid.

    Example No

  • Long acting opioid

    Yes when CMS marks the drug as a long-acting opioid.

    Example No

  • Antibiotic

    Yes when CMS marks the drug as an antibiotic.

    Example No

  • Antipsychotic

    Yes when CMS marks the drug as an antipsychotic.

    Example No

Prices

  • Drug cost

    Total gross drug cost of the claims in the year.

    Example $6,334,739,184.50

  • Drug cost 65 plus

    Gross drug cost for patients aged 65 and over.

    Example $4,733,920,249.90

  • Lis beneficiary cost share

    Total paid out of pocket by patients who get Medicare's low-income subsidy (Extra Help).

    Example $7,237,215.22

  • Non lis beneficiary cost share

    Total paid out of pocket by patients without the low-income subsidy.

    Example $377,984,271.11

  • Currency

    Currency of the money figures: USD.

    Example USD

Location

  • State code

    Two-letter postal code of the state or territory, such as TN; empty for the national row, Unknown and Foreign Country.

    Example AL

Dates

  • Data year

    Calendar year the prescriptions are from.

    Example 2024

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
geo_leveltextPlace level3 of 3
geo_codetextPlace code1 of 3
state_codetextState code1 of 3
geo_nametextPlace name3 of 3
brand_nametextBrand name3 of 3
generic_nametextGeneric name3 of 3
prescribersnumberPrescribers3 of 3
claimsnumberClaims3 of 3
thirty_day_fillsnumberThirty day fills3 of 3
drug_costmoneyDrug cost3 of 3
beneficiariesnumberBeneficiaries3 of 3
claims_65_plusnumberClaims 65 plus3 of 3
thirty_day_fills_65_plusnumberThirty day fills 65 plus3 of 3
drug_cost_65_plusmoneyDrug cost 65 plus3 of 3
beneficiaries_65_plusnumberBeneficiaries 65 plus3 of 3
lis_beneficiary_cost_sharemoneyLis beneficiary cost share3 of 3
non_lis_beneficiary_cost_sharemoneyNon lis beneficiary cost share3 of 3
is_opioidyes or noOpioid3 of 3
is_long_acting_opioidyes or noLong acting opioid3 of 3
is_antibioticyes or noAntibiotic3 of 3
is_antipsychoticyes or noAntipsychotic3 of 3
currencytextCurrency3 of 3
data_yearnumberData year3 of 3
urllinkLink3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordPlace levelPlace codePlace nameBrand nameGeneric namePrescribersClaimsThirty day fillsBeneficiariesClaims 65 plusThirty day fills 65 plusBeneficiaries 65 plusOpioidLong acting opioidAntibioticAntipsychoticDrug costDrug cost 65 plusLis beneficiary cost shareNon lis beneficiary cost shareCurrencyState codeData yearLink
1national—NationalMounjaroTirzepatide194,6535,103,5566,093,348.5894,2433,800,8144,569,326.9679,553NoNoNoNo$6,334,739,184.50$4,733,920,249.90$7,237,215.22$377,984,271.11USD—2024data.cms.gov/data-api/v1/dataset/c8ea3f8e-3a09-4fea-86f2-8902fb4b0920/data?filter%5BPrscrbr_Geo_Lvl%5D=National&filter%5BPrscrbr_Geo_Desc%5D=National&filter%5BBrnd_Name%5D=Mounjaro&filter%5BGnrc_Name%5D=Tirzepatide
2national—NationalOzempicSemaglutide286,51710,413,55414,353,450.61,951,8928,040,16111,218,675.41,533,376NoNoNoNo$12,965,808,790.00$10,101,528,421.00$16,408,117.89$755,885,613.65USD—2024data.cms.gov/data-api/v1/dataset/c8ea3f8e-3a09-4fea-86f2-8902fb4b0920/data?filter%5BPrscrbr_Geo_Lvl%5D=National&filter%5BPrscrbr_Geo_Desc%5D=National&filter%5BBrnd_Name%5D=Ozempic&filter%5BGnrc_Name%5D=Semaglutide
3state01AlabamaMounjaroTirzepatide3,749175,463202,48128,948115,281132,731.419,422NoNoNoNo$212,612,831.22$138,640,895.92$264,259.95$9,023,406.90USDAL2024data.cms.gov/data-api/v1/dataset/c8ea3f8e-3a09-4fea-86f2-8902fb4b0920/data?filter%5BPrscrbr_Geo_Lvl%5D=State&filter%5BPrscrbr_Geo_Desc%5D=Alabama&filter%5BBrnd_Name%5D=Mounjaro&filter%5BGnrc_Name%5D=Tirzepatide

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Figures are for the latest year CMS has published in its Medicare Part D Prescribers by Geography and Drug data (calendar 2024 as of December 2026). CMS adds a year about once a year; data_year names the year of each row.
  • Covers prescriptions paid by Medicare Part D drug plans, both stand-alone and Medicare Advantage drug plans. Drugs given in a doctor's office or hospital (Part B) and other insurers are not part of this data.
  • Rows are totals per drug and area, never per prescriber. CMS leaves out a drug in an area with fewer than 11 claims and blanks patient counts under 11, so beneficiaries and the 65-and-over figures are sometimes empty.
  • Drug cost is the gross amount paid by the plan, the patient and other payers (ingredient cost, dispensing fee, sales tax), before manufacturer rebates, in U.S. dollars.
  • Brand and generic names are as CMS lists them and are cut at 30 characters. For generic drugs, brand_name holds the generic product name. A drug search matches part of either name.
  • At most 10,000 rows per run. One drug has about 60 rows: the nation plus states, territories and other areas.
  • CMS data is public domain and CMS does not endorse this API.

Version history

A run uses the live version unless the request names another one with version.