SYSTEM all green source medicare.gov queue 12,943 ZIP codes p99 latency 218ms dataflirt.com · scraper/medicare-gov
RUN · 42 active pipelines · medicare.gov live

Medicare data,
normalised at scale.

We extract Medicare Advantage plans, Part D formularies, Medigap pricing, provider directories, and CMS Star Ratings. Delivered as clean JSON, CSV, or Parquet to S3, BigQuery, or Snowflake on your cadence.

Plans extracted
4,291 /run
Provider records
1.2M /month
Formulary updates
89K /week
Active pipelines
42
Uptime
99.98%
Data Dictionary

Every field we extract from medicare.gov

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

Complete list of extractable fields for Medicare Advantage Plans objects from medicare.gov. All fields typed and schema-versioned.

contract_idplan_idplan_nameorganizationpremiumdeductiblestar_ratingmax_out_of_pocketdrug_coveragenetwork_type
medicare_advantage plans
● 200 OK
"contract_id": "H1036",
"plan_id": "062",
"plan_name": "Humana Gold Plus HMO",
"organization": "Humana",
"premium": 0.0,
"deductible": 0.0,
"star_rating": 4.5,
"max_out_of_pocket": 3400.0,
"drug_coverage": true,
"network_type": "HMO"
# contract_idplan_idplan_nameorganizationpremiumdeductible
1
2
3

Complete list of extractable fields for Part D Formularies objects from medicare.gov. All fields typed and schema-versioned.

ndc_codedrug_nametierprior_authorisationstep_therapyquantity_limitcopay_preferredcopay_standardplan_idcontract_id
part_d formularies
● 200 OK
"ndc_code": "00071101568",
"drug_name": "LIPITOR 10 MG TABLET",
"tier": "Tier 3",
"prior_authorisation": false,
"step_therapy": true,
"quantity_limit": "30 per 30 days",
"copay_preferred": 42.0,
"copay_standard": 47.0,
"plan_id": "014",
"contract_id": "S5820"
# ndc_codedrug_nametierprior_authorisationstep_therapyquantity_limit
1
2
3

Complete list of extractable fields for Medigap Policies objects from medicare.gov. All fields typed and schema-versioned.

policy_typecompany_namepremium_estimate_minpremium_estimate_maxage_ratingcommunity_ratingcovers_part_acovers_part_bforeign_travelzip_code
medigap_policies
● 200 OK
"policy_type": "Plan G",
"company_name": "Mutual of Omaha",
"premium_estimate_min": 112.0,
"premium_estimate_max": 245.0,
"age_rating": "Attained-age",
"community_rating": false,
"covers_part_a": true,
"covers_part_b": true,
"foreign_travel": true,
"zip_code": "33101"
# policy_typecompany_namepremium_estimate_minpremium_estimate_maxage_ratingcommunity_rating
1
2
3

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

npifirst_namelast_namespecialtyorganizationaddressphoneaccepting_new_patientsmedicare_assignmenttelehealth_offered
provider_directory
● 200 OK
"npi": "1982736450",
"first_name": "Sarah",
"last_name": "Jenkins",
"specialty": "Cardiology",
"organization": "Heart Health Associates",
"address": "1200 Medical Center Dr, Suite 400",
"accepting_new_patients": true,
"medicare_assignment": "Accepts Medicare Assignment",
"telehealth_offered": true
# npifirst_namelast_namespecialtyorganizationaddress
1
2
3

Complete list of extractable fields for Facility Quality objects from medicare.gov. All fields typed and schema-versioned.

facility_idfacility_namefacility_typeoverall_ratinghealth_inspection_ratingstaffing_ratingquality_measure_ratingownership_typecertified_bedsaddress
facility_quality
● 200 OK
"facility_id": "105034",
"facility_name": "SUNSET VIEW NURSING HOME",
"facility_type": "Skilled Nursing Facility",
"overall_rating": 3,
"health_inspection_rating": 2,
"staffing_rating": 4,
"quality_measure_rating": 5,
"ownership_type": "For profit - Corporation",
"certified_beds": 120
# facility_idfacility_namefacility_typeoverall_ratinghealth_inspection_ratingstaffing_rating
1
2
3

Capabilities

Everything you need from Medicare.gov — structured and normalised

Our Medicare scraper processes complex plan benefits, provider networks, and formulary tiers across thousands of ZIP codes and county configurations.

Medicare Advantage (MA) Plans

Premiums, deductibles, maximum out-of-pocket limits, and benefit details across HMO, PPO, and PFFS plan types.

Part D Prescription Drugs

Tier structures, copays, coinsurance, step therapy requirements, and prior authorisation flags for every formulary.

Medigap Pricing

Age-rated and community-rated premium estimates by ZIP code, age, and gender for all supplemental plan letters.

Provider Directories

NPI-level extraction of doctors, specialists, and clinical groups accepting Medicare assignment.

Facility Quality Metrics

Hospital Compare and Nursing Home Compare data, including CMS Star Ratings and inspection penalty records.

Geographic Service Areas

Plan availability mapping by county, ZIP code, and state-level boundaries to build coverage heatmaps.

Special Needs Plans (SNPs)

Dual-eligible (D-SNP), Chronic Condition (C-SNP), and Institutional (I-SNP) specific benefit structures.

Out-of-Pocket Cost Models

Estimated annual beneficiary costs based on varying health status and standard prescription drug profiles.

Scheduled + Streaming Modes

Run annual enrollment period (AEP) bulk exports or monitor mid-year plan changes continuously with diffs.

// engagement pipeline

From ZIP code list to warehouse record

Brief in. Clean data out.

Define Scope
d 0

Provide target ZIP codes, plan types, or NPI lists. We design the extraction schema together.

Pipeline Build
d 2–4

We configure Scrapy / Playwright crawlers, proxy rotation, and session management for medicare.gov.

Validation & QA
d 4–6

Schema validation, null-rate checks, and geographical coverage verification before full launch.

Delivery
ongoing

JSON / CSV / Parquet pushed to your S3 bucket, BigQuery dataset, or Snowflake stage on agreed cadence.

Under the hood

How our Medicare pipeline handles the hard parts

Medicare.gov relies on complex session state and geographical parameterisation. Here is how we extract data reliably.

pipeline-monitor · medicare.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
Geographic state management
Managing ZIP code and county session variables

Medicare.gov gates plan data behind geographical session states. We automate the injection of ZIP codes and county selections, maintaining sticky sessions to accurately surface localized plan availability without cross-contamination.

Complex SPA navigation
Handling React-based plan finders

The Medicare Plan Finder and provider search tools are heavily JavaScript-rendered single-page applications. We run full Playwright browser sessions to execute JavaScript, trigger lazy-loading, and hydrate benefit widgets.

Formulary pagination
Extracting thousands of covered drugs

Part D formularies contain thousands of NDCs spread across deeply nested pagination structures. Our crawlers systematically traverse these paginated lists, mapping every drug back to its parent plan ID and tier structure.

Schema stability
Resilient selectors for CMS updates

CMS frequently updates the medicare.gov DOM structure, especially ahead of the Annual Enrollment Period. Our selector strategy uses fallback chains to ensure pipeline stability during critical Q4 data collection windows.

Rate limiting avoidance
US-based residential proxy rotation

Extracting data across 40,000 ZIP codes triggers aggressive rate limiting. We distribute requests across a pool of US-based residential IPs, randomising request intervals to maintain high throughput without triggering blocks.

Applications

Who uses Medicare data — and how

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

01
Market Analysis & Product Design

Health plans analyse competitor premiums, benefit structures, and network coverage to optimise their own plan designs.

02
Broker & Agency Portals

Insurance brokerages ingest plan data to power proprietary quoting and enrollment platforms for their agents.

03
Pharma Market Access

Pharmaceutical companies track formulary placement, tiering, and utilization management rules for their drug portfolios.

04
Provider Network Intelligence

Health systems monitor physician affiliations and Medicare assignment status across competing networks.

05
Actuarial Modelling

Actuaries use historical premium and benefit data to forecast pricing trends and assess risk pools.

06
Academic & Health Policy Research

Researchers track facility quality ratings and plan availability to study healthcare access and outcomes.

Why DataFlirt

"Medicare.gov holds the definitive record of US senior healthcare options, but extracting comparative data across 40,000 ZIP codes requires serious infrastructure."

Most teams underestimate the complexity of scraping Medicare.gov: stateful sessions, dynamic React components, and deeply nested formulary structures break simple HTTP clients. DataFlirt absorbs that complexity so your analysts can focus on benefit design — not proxy rotation.

Technical Spec

Medicare.gov scraper — technical capabilities

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

JavaScript rendering
Full Playwright sessions for SPA plan finders and provider directories
Supported
US Residential proxy rotation
ISP-grade IPs to prevent rate limiting during high-volume AEP scrapes
Supported
ZIP code iteration
Automated traversal of all US ZIP and county codes
Supported
Formulary extraction
Complete drug lists mapped to plan IDs and contract numbers
Supported
CMS Star Ratings
Historical and current quality metrics for plans and facilities
Supported
Provider NPI mapping
Linking directory profiles to national provider identifiers
Supported
Change detection (diffs)
Hash-based diff for mid-year benefit and premium changes
Supported
Beneficiary claim history
Access to individual Medicare claim records via MyMedicare login
Partial
Secure personalized cost estimates
Data requiring authenticated individual Medicare ID login
Partial
Infrastructure

Infrastructure powering the Medicare pipeline

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

ScrapyPlaywrightPython 3.12RedisPostgreSQLApache AirflowAWS LambdaS3CloudWatch2CaptchaCapSolverResidential ProxiesDockerKubernetesGrafanaPrometheus
Scrapy + Playwright Stack

Scrapy handles crawl orchestration, deduplication, and retry logic. Playwright handles JavaScript rendering, cookie sessions, and interaction flows required for plan finders.

US-Targeted Proxy Infrastructure

We maintain pools of US residential ISP proxies. Rotation happens per-request with sticky sessions required for geographical targeting and ZIP code state management.

Cloud-Native Orchestration

Pipelines run on AWS Lambda and ECS. Airflow handles scheduling, dependency management, and SLA alerting. All state stored in managed Postgres.

Output & Delivery

Your data, your destination

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

JSON
Newline-delimited or nested — schema versioned per run
CSV
Flat file with typed columns — Excel/Sheets compatible
XLS
Excel format for direct business analyst consumption
Parquet
Columnar format for BigQuery, Snowflake, Athena
AWS S3
Direct bucket delivery — compatible with any data lake
Webhook
HTTP POST per record for real-time downstream processing
API
REST endpoint to query structured Medicare records
BigQuery
Streamed directly into your dataset with schema auto-detect
S3
Direct bucket delivery — compatible with any data lake
// faq

Common questions.

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

Ask us directly →
Is scraping Medicare.gov legal?

Scraping public government data is generally permissible. DataFlirt targets only public, non-authenticated plan, provider, and facility data. We do not extract personal health information (PHI), circumvent authentication walls like MyMedicare, or violate HIPAA regulations. Clients should consult legal counsel for specific use cases.

How do you handle geographically gated plan data?

We manage session state and inject ZIP/county parameters systematically. Our infrastructure iterates through a predefined list of geographic codes, establishing isolated browser sessions for each to prevent data contamination across regions.

Can you extract complete Part D formularies?

Yes, we paginate through the complete drug list for every plan, capturing NDC codes, tier levels, prior authorisation rules, and quantity limits, mapping them directly to the specific contract and plan ID.

How fresh is the data during Open Enrollment?

We scale our compute infrastructure to run full national refreshes daily during the Annual Enrollment Period (AEP), ensuring you have the latest premium and benefit adjustments as CMS publishes them.

Do you extract Hospital and Nursing Home Compare data?

Yes, we extract all facility metrics, CMS Star Ratings, staffing ratios, and health inspection penalty records available in the public provider directories.

Can you track mid-year plan changes?

Yes, our change detection diffs highlight premium or benefit adjustments outside of AEP. We can configure continuous pipelines that only emit records when a field value changes from the previous run.

$ dataflirt scope --new-project --source=medicare.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 national plan dump or continuous monitoring of provider directories — we scope, build, and operate the pipeline. Tell us what you need.

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

More in insurance

Services

Data Extraction for Every Industry

View All Services →