Medicare Part D Drug Spending Scraper - CMS Pricing Data avatar

Medicare Part D Drug Spending Scraper - CMS Pricing Data

Pricing

$1.00 / 1,000 drug record scrapeds

Go to Apify Store
Medicare Part D Drug Spending Scraper - CMS Pricing Data

Medicare Part D Drug Spending Scraper - CMS Pricing Data

Scrape Medicare Part D drug spending from CMS: total cost, claims, beneficiaries, unit cost & manufacturer for every brand/generic drug. Structured JSON, no API key. An IQVIA-style pharma pricing source for Claude, ChatGPT & any MCP agent.

Pricing

$1.00 / 1,000 drug record scrapeds

Rating

0.0

(0)

Developer

The Mine Works

The Mine Works

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

9 hours ago

Last modified

Share

Medicare Part D Drug Spending — CMS Pricing & Utilization

Pull Medicare Part D drug spending data from CMS — total expenditure, beneficiary count, unit cost, and manufacturer — for every branded and generic drug in the Medicare program, as clean structured JSON. Built for pharma pricing intelligence, formulary analysis, market research, and policy work. No API key required.

Keywords: Medicare Part D spending, CMS drug spending, drug pricing data, Medicare utilization, pharma market data, CMS drug costs API.


Why this actor

CMS publishes annual Medicare Part D spending data covering every drug prescribed to Medicare beneficiaries — total cost, number of claims, beneficiary count, and average unit cost. Commercial data providers (IQVIA, Symphony Health) charge thousands per year for equivalent data. This actor gives you direct, structured access to the official CMS source at PPE pricing.

  • All Part D drugs — branded and generic, 2013–2022.
  • Manufacturer-level data — track spending by brand owner.
  • Unit cost trends — year-over-year average cost per unit.
  • No API key — official CMS open data (Socrata API).

Input

FieldTypeDefaultDescription
drugNamestringOzempicBrand or generic name, partial match.
manufacturerstringFilter by manufacturer name.
yearintegerReporting year (2013–2022).
minSpendintegerMinimum total Medicare spend ($).
maxResultsinteger200Maximum records to return.

Output

{
"year": "2022",
"brand_name": "OZEMPIC",
"generic_name": "SEMAGLUTIDE",
"manufacturer": "NOVO NORDISK INC",
"total_beneficiaries": 1240000,
"total_claims": 8900000,
"total_spending_usd": 5820000000,
"spending_per_beneficiary_usd": 4693.55,
"unit_cost_avg_usd": 847.23,
"scraped_at": "2026-06-15T00:00:00.000Z"
}

Pricing

First 25 records free per account, then $0.004 per record ($4 per 1,000). Zero charge on empty runs.


FAQ

What years are available? CMS publishes Part D spending data from 2013 through 2022 (most recent available). New years are typically released 18 months after the close of the reporting period.

Does this include generic drugs? Yes — both brand-name and generic drugs are included, identified separately in the output.

What is the unit cost field? The unit_cost_avg_usd field is a weighted average cost per unit (pill, vial, etc.) across all dispensing pharmacies and claim types.

Can I track a drug's spending over multiple years? Yes — leave the year field blank to retrieve all available years for a given drug name, then sort by year for a trend view.

Who uses this data? Pharma market researchers tracking competitor drug utilization; payer and PBM analysts benchmarking formulary spend; biotech investors sizing drug market opportunity; health economists and policy researchers; journalists covering drug pricing.

How is this different from other drug databases? This data comes directly from CMS claims — it represents actual Medicare reimbursement, not list price. It is the most authoritative source for Medicare utilization and real-world spending.

Can I automate regular updates? Yes — schedule this actor annually on Apify to pull the latest year when CMS releases updated data.

Use in Claude, ChatGPT & any MCP agent

This actor is also a Model Context Protocol (MCP) server tool — call it directly from Claude, ChatGPT, Cursor, Windsurf, or any MCP-compatible AI agent. The agent only pays for results delivered (same pay-per-result model).

  • Per-actor MCP endpoint: https://mcp.apify.com/?tools=themineworks/medicare-part-d-drug-spending
  • Full Mine Works MCP server (all tools): https://the-mine-works-mcp.hatchable.site/api/mcp
// Call this actor as a tool via apify-client (Node)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('themineworks/medicare-part-d-drug-spending').call({ /* input from the table above */ });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);