VOOZH about

URL: https://apify.com/parseforge/cms-data-medicare-spending-scraper

โ‡ฑ CMS Medicare Spending Scraper | MSPB Provider Data ยท Apify


๐Ÿ‘ 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

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

a month 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


๐Ÿ”— Recommended Actors

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.

You might also like

CMS Open Data Scraper

parseforge/data-cms-gov-scraper

Export healthcare datasets from the Centers for Medicare & Medicaid Services Open Data portal. Pull provider directories, hospital quality, drug spending, Medicare enrollment, and 3,000+ other CMS datasets with metadata and row-level data.

Medicare Part D Scraper - Prescription Drug Spending API

pink_comic/medicare-part-d-drug-spending

Scrape CMS Medicare Part D prescription drug spending data. Search drug costs, claims, beneficiaries, manufacturers, Rx spending trends, and quarterly or annual CMS data. Export clean JSON/CSV for pharma pricing research, policy analysis, and healthcare market intelligence.

CMS Hospital Compare Scraper

crawlerbros/cms-hospital-compare-scraper

Scrape CMS Hospital Compare data via the free data.cms.gov public API. Search hospitals by state or name, get ratings, quality measures, and contact info for all US hospitals. No API key required.

CMS Physician Compare Scraper | Medicare Doctors Directory

parseforge/cms-physician-compare-scraper

Export Medicare physician and clinician data from the official CMS Physician Compare database. Includes name, NPI, credentials, specialty, group affiliation, hospital affiliation, and practice address. Filter by state. Download as CSV, Excel, JSON, or XML.