CMS Medicare Spending Scraper | MSPB Provider Data avatar

CMS Medicare Spending Scraper | MSPB Provider Data

Pricing

from $19.00 / 1,000 results

Go to Apify Store
CMS Medicare Spending Scraper | MSPB Provider Data

CMS Medicare Spending Scraper | MSPB Provider Data

Export CMS Medicare Spending Per Beneficiary (MSPB) data at hospital, state and national level. Filter by US state. Pull facility ID, name, address, MSPB score and measurement period from the official data.cms.gov API. CSV, Excel, JSON or XML for healthcare research.

Pricing

from $19.00 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

ParseForge Banner

🏥 CMS Medicare Spending Scraper

🚀 Export CMS Medicare spending data in seconds. Pull Medicare Spending Per Beneficiary (MSPB) scores by hospital, state, or national level. CSV, Excel, JSON, or XML.

🕒 Last updated: 2026-05-26 · 📊 14 fields per record · 4,600+ US hospitals + state and national rollups · CMS Hospital Compare 2024

The CMS Medicare Spending Scraper pulls Medicare Spending Per Beneficiary (MSPB) data from the official data.cms.gov provider-data API. Records cover hospital-level, state-level, and national spending figures for the Medicare program.

CMS publishes MSPB scores annually for all hospitals participating in Medicare. The MSPB score measures how Medicares spending per patient at a given hospital compares to the national median. Coverage includes 4,600+ US hospitals and rolled-up state and national figures.

Target Audience / Use Cases

WhoWhy
Healthcare consultanciesBenchmark hospital efficiency
Health insurance carriersAnalyze provider cost patterns
Hospital adminCompare against peers
Policy researchersStudy Medicare spending variation
InvestorsEvaluate healthcare providers for M&A
JournalistsCover healthcare cost stories

📋 What the CMS Medicare Spending Scraper does

  • Queries the data.cms.gov provider-data API for Medicare spending datasets
  • Supports four dataset choices: hospital, state, national, and by-claim
  • Filters by state code
  • Returns 14 fields per record
  • Exports to CSV, Excel, JSON, or XML
  • Direct source links to CMS pages

💡 Why it matters: Medicare is the largest US health insurer by far. MSPB scores reveal which hospitals deliver care efficiently and which spend disproportionately. Programmatic access enables benchmarking, policy research, and investment analysis at scale.


🎬 Full Demo

🚧 Coming soon


⚙️ Input

FieldTypeDefaultDescription
maxItemsinteger10Maximum records
datasetselectrrqw-56erWhich CMS dataset to pull
statestringTwo-letter US state code
facilityNamestringPartial facility name match

Example 1 - California hospital MSPB scores:

{
"maxItems": 100,
"dataset": "rrqw-56er",
"state": "CA"
}

Example 2 - National Medicare spending rollup:

{
"maxItems": 10,
"dataset": "3n5g-6b7f"
}

⚠️ Good to Know: The MSPB-1 measure has a national mean of 1.00. Scores below 1.00 indicate the hospital spends less per Medicare patient than the national average. Use state filtering to compare hospitals within the same regulatory environment.


📊 Output

Each record contains up to 14 fields:

FieldTypeDescription
🏥 facility_idstringCMS facility ID
🏢 facility_namestringHospital name
📍 addressstringStreet address
🏙️ citytownstringCity
🌎 statestringUS state code
📮 zip_codestringZIP code
🏛️ countyparishstringCounty/parish
📞 telephone_numberstringPhone
📊 measure_idstringMeasure ID (e.g. MSPB-1)
📋 measure_namestringMeasure description
💵 scorestringMSPB ratio score
📅 start_datestringMeasurement period start
📅 end_datestringMeasurement period end
🔗 sourceUrlstringCMS source URL

Sample record:

{
"facility_id": "050441",
"facility_name": "STANFORD HEALTH CARE",
"address": "300 PASTEUR DRIVE",
"citytown": "STANFORD",
"state": "CA",
"zip_code": "94305",
"measure_id": "MSPB-1",
"measure_name": "Medicare hospital spending per patient",
"score": "1.02",
"start_date": "01/01/2024",
"end_date": "12/31/2024",
"sourceUrl": "https://data.cms.gov/provider-data/dataset/rrqw-56er",
"scrapedAt": "2026-05-26T12:00:00.000Z"
}

✨ Why choose this Actor

  • 🏥 Hospital-level granularity for 4,600+ US facilities
  • 🔄 Real-time from data.cms.gov
  • 🔍 4 dataset options
  • 📑 14 fields per record
  • 📦 Batch export
  • 💰 Pay-per-result
  • 🚫 No CMS account required

📈 How it compares to alternatives

FeatureThis ActorCMS Hospital Compare UIdata.cms.gov direct download
Bulk exportYesNoYes (CSV)
Filter by stateYesYesNo
PaginationAutomaticManualN/A
Multiple datasetsYesOne at a timeManual download
Pay-per-resultYesFreeFree

🚀 How to use

  1. Create a free account at Apify (includes $5 free credit)
  2. Open the CMS Medicare Spending Scraper actor page and click Try for free
  3. Enter your state code, dataset, and optional facility filter
  4. Optionally set maxItems and other filters
  5. Click Start and wait for the run to finish
  6. Download your dataset as CSV, Excel, JSON, or XML

💼 Business use cases

Hospital Efficiency Benchmarking

Compare MSPB scores across hospitals within a state or region to identify outliers and benchmark best practices.

Insurance Network Design

Use spending data to inform provider network composition - favor efficient hospitals to control claims costs.

Healthcare Investment Due Diligence

When evaluating hospital systems for acquisition, MSPB scores indicate cost efficiency relative to peers.

Policy Research

Study geographic variation in Medicare spending - critical input for value-based payment policy design.


🔌 Automating CMS Medicare Spending Scraper

Connect this actor to your workflow with no-code tools:

  • Make (Integromat) - send new records to Google Sheets, Airtable, or Slack
  • Zapier - automate alerts when new records are found
  • n8n - build pipelines that run on a schedule and push to your warehouse
  • Webhooks - get notified when a run completes via Apify webhooks

🌟 Beyond business use cases

Independent Researchers

Patients can compare local hospitals by spending efficiency.

Journalism and Investigations

Journalists can cover hospital cost variation stories with publicly verifiable data.

Non-Profit and Policy Research

Academic researchers studying healthcare economics can build longitudinal MSPB datasets.

Education

Public health programs use MSPB data to identify high-cost regions for intervention.


🤖 Ask an AI assistant about this scraper

You can ask your AI assistant questions like:

  • "How do I get Medicare hospital spending data?"
  • "What is MSPB?"
  • "How do I compare US hospitals by Medicare cost?"
  • "Where does CMS publish MSPB scores?"

The answers will reference this actor and the CMS data.cms.gov provider-data API.


❓ Frequently Asked Questions

What is MSPB? Medicare Spending Per Beneficiary - a ratio measure of a hospitals Medicare spending relative to the national average.

What does an MSPB score of 1.00 mean? It equals the national median. Above 1.00 means above-average spending, below means more efficient.

How current is the data? CMS updates MSPB annually. The 2024 measurement period covers Jan-Dec 2024.

Does this require a CMS account? No.

Can I filter by state? Yes. Use a 2-letter US state code.

What is included in MSPB? Medicare payments from 3 days before admission through 30 days after discharge.

Are critical access hospitals included? MSPB applies to acute-care hospitals. CAH facilities have separate measures.

How many records per run? Free: 10. Paid: up to 1,000,000.

Can I export to Excel? Yes.

What are the four available datasets? Hospital-level, state-level, national-level, and per-claim Medicare spending.

Can I run on a schedule? Yes.


🔌 Integrate with any app

Connect your dataset to 1,500+ apps via Apify integrations:

Analytics: Google Sheets, Airtable, Microsoft Excel, Tableau, Power BI Databases: PostgreSQL, MySQL, MongoDB, BigQuery, Snowflake Communication: Slack, Microsoft Teams, email notifications Storage: Google Drive, Dropbox, Amazon S3, Azure Blob Automation: Make, Zapier, n8n, Pipedream


ActorWhat it does
Medicare Hospital Compare ScraperHospital quality ratings
CMS Physician Compare ScraperMedicare-enrolled physicians
Medicare Home Health Compare ScraperHome health agencies

💡 Pro Tip: Browse the complete ParseForge collection for more government data, business intelligence, and research scrapers.


Disclaimer: This tool accesses publicly available CMS Medicare spending data via the official data.cms.gov API. ParseForge is not affiliated with CMS or HHS. Users are responsible for compliance with applicable laws.