SYSTEM all green source cms.gov queue 11,402 pages p99 latency 312ms dataflirt.com · scraper/cms-gov
RUN · 31 active pipelines · cms.gov live

CMS healthcare data,
at warehouse scale.

We extract provider records, Medicare fee schedules, hospital quality ratings, and policy transmittals from CMS.gov. Delivered as clean JSON, CSV, or Parquet to your warehouse on your cadence.

Provider records
7.2M /month
Fee schedule rows
452K /run
Policy documents
12.4K /week
Active pipelines
31
Uptime
99.98%
Data Dictionary

Every field we extract from cms.gov

Structured, schema-consistent data across all major object types — delivered clean, typed, and ready to query.

Complete list of extractable fields for Provider Directory objects from cms.gov. All fields typed and schema-versioned.

npifirst_namelast_nameorganization_namespecialtyprimary_addressphonefaxmedicare_enrollment_statusgraduation_year
provider_directory
● 200 OK
"npi": "1023456789",
"first_name": "John",
"last_name": "Doe",
"specialty": "Cardiology",
"primary_address": "123 Health St, Boston, MA",
"medicare_enrollment_status": "Active"
# npifirst_namelast_nameorganization_namespecialtyprimary_address
1
2
3

Complete list of extractable fields for Care Compare (Hospitals) objects from cms.gov. All fields typed and schema-versioned.

facility_idfacility_namestateoverall_ratingsafety_scorepatient_experience_ratingreadmission_ratemortality_rateemergency_servicesownership_type
care_compare (hospitals)
● 200 OK
"facility_id": "220086",
"facility_name": "General Hospital",
"state": "MA",
"overall_rating": 4,
"safety_score": "Above Average",
"ownership_type": "Voluntary non-profit"
# facility_idfacility_namestateoverall_ratingsafety_scorepatient_experience_rating
1
2
3

Complete list of extractable fields for Fee Schedules objects from cms.gov. All fields typed and schema-versioned.

hcpcs_codemodifiershort_descriptionmac_localitynon_facility_feefacility_feeglobal_daysrvu_workrvu_practice_expenservu_malpractice
fee_schedules
● 200 OK
"hcpcs_code": "99213",
"short_description": "Office/outpatient visit est",
"mac_locality": "01102",
"non_facility_fee": 92.45,
"facility_fee": 65.2,
"rvu_work": 1.3
# hcpcs_codemodifiershort_descriptionmac_localitynon_facility_feefacility_fee
1
2
3

Complete list of extractable fields for Drug Pricing (ASP) objects from cms.gov. All fields typed and schema-versioned.

hcpcs_codeshort_descriptionndcdrug_namedosagepayment_limitbilling_uniteffective_datequarteryear
drug_pricing (asp)
● 200 OK
"hcpcs_code": "J0131",
"drug_name": "Acetaminophen injection",
"payment_limit": 4.25,
"billing_unit": "10 mg",
"effective_date": "2024-01-01",
"quarter": "Q1"
# hcpcs_codeshort_descriptionndcdrug_namedosagepayment_limit
1
2
3

Complete list of extractable fields for Policy Transmittals objects from cms.gov. All fields typed and schema-versioned.

transmittal_numberissue_dateeffective_dateimplementation_datecr_numbersubjectmanual_typepdf_urlbusiness_ownersummary
policy_transmittals
● 200 OK
"transmittal_number": "R12345CP",
"issue_date": "2023-11-02",
"cr_number": "CR13456",
"subject": "Annual Update to Fee Schedule",
"manual_type": "Claims Processing",
"pdf_url": "https://cms.gov/downloads/R12345CP.pdf"
# transmittal_numberissue_dateeffective_dateimplementation_datecr_numbersubject
1
2
3

Capabilities

Extract healthcare primitives directly from the source

Our CMS.gov scraper handles complex government data portals, legacy ASP.NET session states, bulk CSV archive processing, and PDF table extraction to deliver clean, warehouse-ready healthcare records.

Provider Directory Extraction

Extract NPI, specialty, and contact details across the entire national registry. Maintain accurate provider networks.

Care Compare Quality Metrics

Capture hospital ratings, readmission rates, and patient experience scores from the Care Compare databases.

Fee Schedule Parsing

Extract CPT, HCPCS, and RVU values directly from complex CMS pricing tools and multi-gigabyte CSV dumps.

Drug Pricing Updates

Monitor Average Sales Price files and NDC mappings updated quarterly to track pharmaceutical reimbursement rates.

Policy & Manual Tracking

Track transmittals, Local Coverage Determinations, and National Coverage Determinations across all Medicare Administrative Contractors.

PDF Document Parsing

Extract text and tables from CMS policy PDFs and manuals automatically using layout-aware document parsers.

ASP.NET Form Handling

Navigate complex government search portals requiring session state, viewstate tokens, and sequential form submissions.

Historical Data Archiving

Maintain versioned histories of fee schedules and quality metrics over time to track longitudinal changes.

Scheduled + Streaming Modes

Run weekly directory updates or monthly pricing refreshes on your exact cadence with hash-based change detection.

// engagement pipeline

From government portal to warehouse record

Brief in. Clean data out.

Define Scope
d 0

Provide target datasets, provider criteria, or fee schedule localities. We design the extraction schema together.

Pipeline Build
d 2–4

We configure Scrapy crawlers, ASP.NET session handlers, and PDF parsers tailored for cms.gov architecture.

Validation & QA
d 4–6

Schema validation, null-rate checks, and data type formatting before full launch.

Delivery
ongoing

JSON, CSV, or Parquet pushed to your S3 bucket or warehouse on agreed cadence.

Under the hood

How our pipeline handles government data architecture

CMS.gov relies on legacy web frameworks and massive file archives. Here is how we build resilient extraction pipelines for public sector data.

pipeline-monitor · cms.gov · live ● active
// fingerprinting
Identity rotation
TLS fingerprintrandomised
User-agentrotated
IP poolresidential
Challenges blocked0
// pagination
Page coverage
48,291 pages queued running
// observability
Pipeline health
99.9%
uptime
142ms
p99 lat
0.3%
null rate
2
alerts
ASP.NET ViewState management
Handling complex government search forms

CMS.gov relies heavily on legacy ASP.NET forms. We manage ViewState, EventValidation, and session cookies to programmatically query provider and pricing databases without manual intervention.

Massive file processing
Parsing multi-gigabyte CSV and ZIP archives

CMS frequently publishes data as massive ZIP files containing dozens of relational CSVs. Our pipeline downloads, decompresses, joins, and normalises these files into queryable warehouse records.

PDF data extraction
Turning policy documents into structured text

Many coverage determinations and transmittals only exist as PDFs. We use OCR and layout-aware parsers to extract tables, effective dates, and policy text into structured JSON.

Change detection
Only re-scrape what has changed

For the 7 million record NPI registry, full re-scrapes are inefficient. We maintain a hash index of last-seen values and only push diffs, reducing downstream processing load.

Monitoring & alerting
24/7 pipeline health with anomaly detection

Government site structures change without warning. We alert on null-rate spikes, schema drift, and coverage drops, fixing selectors before your downstream applications fail.

Applications

Who uses CMS.gov data — and how

Teams across industries use cms.gov data to build competitive products and smarter operations.

01
Provider Network Management

Health plans and digital health startups maintain accurate provider directories and credentialing databases.

02
Medical Billing & Coding

Revenue cycle management software ingests the latest Medicare fee schedules and RVU values for accurate claims.

03
Hospital Benchmarking

Consultancies and researchers analyse Care Compare metrics to benchmark facility performance and safety.

04
Pharma Pricing Analysis

Market access teams track Average Sales Price updates and NDC crosswalks for competitive intelligence.

05
Compliance & Policy Tracking

Compliance officers monitor transmittals and coverage determinations to ensure billing practices align with CMS rules.

06
Healthcare AI Training

ML teams use structured provider and clinical quality datasets to train healthcare recommendation and triage models.

Why DataFlirt

"CMS.gov holds the foundational datasets for American healthcare pricing and provider networks, but accessing it programmatically requires navigating legacy systems."

Most engineering teams underestimate the friction of government data portals. Extracting CMS data requires managing ASP.NET session states, parsing complex multi-gigabyte CSV archives, and extracting tables from unstructured PDFs. DataFlirt absorbs this complexity, delivering clean healthcare records directly to your warehouse.

Technical Spec

CMS.gov scraper — technical capabilities

Everything supported by our cms.gov scraper — rendered SPA elements, auth walls, rate-limit evasion and beyond.

ASP.NET form submission
Programmatic querying of Medicare coverage databases
Supported
PDF table extraction
Parsing tabular data from CMS policy manuals
Supported
Massive ZIP/CSV processing
Automated ingestion of bulk data downloads
Supported
Change detection (diffs)
Hash-based diff for provider directory updates
Supported
Historical archiving
Maintaining previous quarters of fee schedules
Supported
Webhook delivery
HTTP POST per record or batch
Supported
PECOS Provider Portal
Authenticated enrollment data requiring provider login credentials
Partial
Protected Health Information (PHI)
Patient-level claims data or beneficiary records
Partial
Infrastructure

Infrastructure powering the CMS pipeline

Open-source tooling on proven cloud infra — no vendor lock-in, full observability.

ScrapyPlaywrightPython 3.12RedisPostgreSQLApache AirflowAWS LambdaS3CloudWatch2CaptchaCapSolverResidential ProxiesDockerKubernetesGrafanaPrometheusPyPDF2
Scrapy + Playwright Stack

Scrapy handles crawl orchestration and deduplication. Playwright handles complex ASP.NET session states and interaction flows.

Document Processing Engine

Dedicated pipeline stages for downloading, decompressing, and parsing complex PDFs and bulk CSV archives.

Cloud-Native Orchestration

Pipelines run on AWS Lambda and ECS. Airflow handles scheduling, dependency management, and SLA alerting.

Output & Delivery

Your data, your destination

Data delivered to where your team already works — no new tooling required.

JSON
Newline-delimited or nested format
CSV
Flat file with typed columns
Parquet
Columnar format for data warehouses
AWS S3
Direct bucket delivery
Webhook
HTTP POST per record
API
RESTful endpoints for querying extracted data
XLS
Excel compatible spreadsheets for analysts
Postgres
Upsert into your existing schema
S3
Direct bucket delivery — compatible with any data lake
// faq

Common questions.

About cms.gov scraping, legality, and pipeline operations.

Ask us directly →
Is scraping CMS.gov legal?

CMS.gov provides public government data. Scraping publicly available information is generally permissible. We strictly target public directories, fee schedules, and quality metrics, avoiding any authenticated portals or protected health information (PHI).

How do you handle complex search forms?

CMS relies on ASP.NET forms with ViewState tokens. Our Playwright integration manages these session tokens automatically, allowing programmatic queries across provider and pricing databases.

Can you extract data from CMS PDFs?

Yes. We utilise layout-aware PDF parsers to extract tables, effective dates, and policy text from transmittals and coverage determinations, converting them into structured JSON.

How fresh is the data?

We align our pipelines with CMS publication schedules. Fee schedules are typically updated quarterly, while provider directories can be synced weekly or monthly based on your requirements.

Do you handle the massive ZIP file downloads?

Yes. Our infrastructure automatically downloads, decompresses, and normalises bulk data files, delivering only the clean, structured records to your data warehouse.

Can I request a sample dataset before committing?

Absolutely. We provide a sample run of up to 1,000 provider records or a specific fee schedule extract to validate schema fit and data quality before signing any contract.

$ dataflirt scope --new-project --source=cms.gov ready

Tell us what
to extract.
We do the rest.

20-minute scoping call. Pilot dataset within the week. Production within two. Whether you need a one-off provider directory dump or a continuous fee schedule monitoring feed — we scope, build, and operate the pipeline. Tell us what you need.

hello@dataflirt.com · Bengaluru · IST · typical reply < 4h
Services

Data Extraction for Every Industry

View All Services →