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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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
Links
- Link
Link to this row in CMS's data API, as JSON.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
geo_level | text | Place level | 3 of 3 |
geo_code | text | Place code | 1 of 3 |
state_code | text | State code | 1 of 3 |
geo_name | text | Place name | 3 of 3 |
brand_name | text | Brand name | 3 of 3 |
generic_name | text | Generic name | 3 of 3 |
prescribers | number | Prescribers | 3 of 3 |
claims | number | Claims | 3 of 3 |
thirty_day_fills | number | Thirty day fills | 3 of 3 |
drug_cost | money | Drug cost | 3 of 3 |
beneficiaries | number | Beneficiaries | 3 of 3 |
claims_65_plus | number | Claims 65 plus | 3 of 3 |
thirty_day_fills_65_plus | number | Thirty day fills 65 plus | 3 of 3 |
drug_cost_65_plus | money | Drug cost 65 plus | 3 of 3 |
beneficiaries_65_plus | number | Beneficiaries 65 plus | 3 of 3 |
lis_beneficiary_cost_share | money | Lis beneficiary cost share | 3 of 3 |
non_lis_beneficiary_cost_share | money | Non lis beneficiary cost share | 3 of 3 |
is_opioid | yes or no | Opioid | 3 of 3 |
is_long_acting_opioid | yes or no | Long acting opioid | 3 of 3 |
is_antibiotic | yes or no | Antibiotic | 3 of 3 |
is_antipsychotic | yes or no | Antipsychotic | 3 of 3 |
currency | text | Currency | 3 of 3 |
data_year | number | Data year | 3 of 3 |
url | link | Link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Place level | Place code | Place name | Brand name | Generic name | Prescribers | Claims | Thirty day fills | Beneficiaries | Claims 65 plus | Thirty day fills 65 plus | Beneficiaries 65 plus | Opioid | Long acting opioid | Antibiotic | Antipsychotic | Drug cost | Drug cost 65 plus | Lis beneficiary cost share | Non lis beneficiary cost share | Currency | State code | Data year | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | national | — | National | Mounjaro | Tirzepatide | 194,653 | 5,103,556 | 6,093,348.5 | 894,243 | 3,800,814 | 4,569,326.9 | 679,553 | No | No | No | No | $6,334,739,184.50 | $4,733,920,249.90 | $7,237,215.22 | $377,984,271.11 | USD | — | 2024 | data.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 |
| 2 | national | — | National | Ozempic | Semaglutide | 286,517 | 10,413,554 | 14,353,450.6 | 1,951,892 | 8,040,161 | 11,218,675.4 | 1,533,376 | No | No | No | No | $12,965,808,790.00 | $10,101,528,421.00 | $16,408,117.89 | $755,885,613.65 | USD | — | 2024 | data.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 |
| 3 | state | 01 | Alabama | Mounjaro | Tirzepatide | 3,749 | 175,463 | 202,481 | 28,948 | 115,281 | 132,731.4 | 19,422 | No | No | No | No | $212,612,831.22 | $138,640,895.92 | $264,259.95 | $9,023,406.90 | USD | AL | 2024 | data.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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.