Lottery Results Scraper — Powerball & Mega Millions avatar

Lottery Results Scraper — Powerball & Mega Millions

Pricing

from $1.06 / 1,000 lottery draw delivereds

Go to Apify Store
Lottery Results Scraper — Powerball & Mega Millions

Lottery Results Scraper — Powerball & Mega Millions

Get Powerball and Mega Millions winning numbers by date range from New York State open-data feeds (data.ny.gov): draw date, 5 main numbers, bonus ball, multiplier, Double Play and raw source fields. History from 2010 (Powerball) and 2002 (Mega Millions), up to 1,000 draws per game.

Pricing

from $1.06 / 1,000 lottery draw delivereds

Rating

5.0

(1)

Developer

Tim Zinin

Tim Zinin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

2

Monthly active users

9 days ago

Last modified

Categories

Features

Limited permissions

Share

Get Powerball and Mega Millions winning numbers for any date range from the New York State Gaming Commission's open-data feeds on data.ny.gov. Each draw comes back as one clean row: draw date, the 5 main numbers, the bonus ball (Powerball / Mega Ball), multiplier, Powerball Double Play numbers and the raw source fields. You pay $0.001 per draw plus a $0.005 run start; history goes back to 2010 for Powerball and 2002 for Mega Millions.

What you get

  • Winning numbers by date range: 5 main numbers in source order plus the separate bonus ball, as integers ready for analysis.
  • Multiplier and Double Play (Power Play / Megaplier value and Powerball Double Play numbers) when the feed publishes them, else null.
  • Long history: Powerball from 2010-02-03, Mega Millions from 2002-05-17, up to 1,000 draws per game per run.
  • Source evidence on every row: dataset ID, publisher, the exact query URL for that draw, observation time and the raw source strings.
  • A content digest (SHA-256 of the normalized numbers) to detect feed corrections between runs.
  • Truncation and outage diagnostics: a free diagnostic row tells you when older draws were cut by your cap or a feed failed.
  • Runs on Apify: schedule it after each draw night, monitor it, call it from the API, export to JSON/CSV/Excel or push straight into your own pipeline.

How to run it

  1. Click Try for free.
  2. Choose Games: Powerball, Mega Millions or both.
  3. Optionally set First date and Last date (YYYY-MM-DD, UTC, inclusive). Leave both empty for the last 30 days.
  4. Set Maximum returned draws per game (1–1,000).
  5. Hit Start. Filter the dataset on recordType = "lottery_draw" for the results; diagnostic rows explain gaps.

Pricing

Pay-per-event: $0.005 per Actor start + $0.001 per lottery draw delivered. No monthly seat.

Diagnostic rows (truncation, failed feed, budget stop) are free. A new run re-delivers and re-bills draws you already collected, so schedule with a narrow date range.

Example: 100 draws = $0.105 ($0.005 start + $0.10); 1,000 draws of one game (the per-game cap of a single run) = $1.005.

From November 16, 2026: $0.00125 per lottery draw.

Set Max total charge in the run options to cap spend; an explicit zero prevents paid rows.

Input

FieldRequiredMeaning
gamesNopowerball, megamillions or both (default both).
dateFromNoFirst draw date, YYYY-MM-DD, UTC, inclusive. Default: 30 days before today. Must not be before 2010-02-03 when Powerball is selected, or 2002-05-17 for Mega Millions.
dateToNoLast draw date, YYYY-MM-DD, UTC, inclusive. Default: today.
maxDrawsPerGameNoDraws to return per game, 1–1,000 (default 100). When the range has more, the newest are kept and a diagnostic row says so.
{
"games": ["powerball", "megamillions"],
"maxDrawsPerGame": 5
}

Output

A real draw row from a platform run:

{
"recordType": "lottery_draw",
"id": "powerball:2026-11-07",
"game": "powerball",
"drawDate": "2026-11-07",
"numbers": [3, 36, 37, 56, 61],
"bonusBall": 21,
"multiplier": 2,
"doublePlayNumbers": [11, 17, 26, 37, 45],
"doublePlayBonusBall": 7,
"contentDigest": "d45cefcffc42a3ff2288dc04c677ee505032c6421a083dd37a81717a9c664147",
"validation": "structural_not_rules_era_certification",
"source": {
"datasetId": "d6yy-54nr",
"publisher": "New York State Gaming Commission",
"url": "https://data.ny.gov/resource/d6yy-54nr.json?%24where=draw_date%3D%272026-11-07T00%3A00%3A00%27",
"observedAt": "2026-11-09T20:18:00.945Z",
"rawDrawDate": "2026-11-07T00:00:00.000",
"rawWinningNumbers": "03 36 37 56 61 21",
"rawBonusBall": null,
"rawMultiplier": "2",
"rawDoublePlayWinningNumbers": "11 17 26 37 45 07"
},
"billing": {
"resultEventRequested": true,
"settlement": "unconfirmed_at_write",
"platformStartChargeMayApply": true
}
}
FieldMeaning
recordTypelottery_draw (billable) or diagnostic (free).
idStable key game:drawDate.
game, drawDateGame and draw date.
numbersThe 5 main numbers in source order.
bonusBallPowerball or Mega Ball.
multiplierPublished multiplier, null when absent.
doublePlayNumbers, doublePlayBonusBallPowerball Double Play numbers, null when absent.
contentDigestSHA-256 of the normalized draw facts (not of the observation time).
validationstructural_not_rules_era_certification: numbers and dates are checked for structure, not against every historical rule set.
sourceDataset ID, publisher, per-draw query URL, observation time and raw fields.
billingWhether this row requested a result event.

Diagnostic rows carry code (SOURCE_TRUNCATED, SOURCE_PARTIAL, SOURCE_UNAVAILABLE, BUDGET_STOPPED or INVALID_INPUT), a message and per-game coverage with fetched, returned, rangeComplete and hasMore. Rows are ordered by game (Mega Millions first, then Powerball), newest draw first. A run summary is saved as OUTPUT in the key-value store.

Other tools we built

Working with other gaming and betting data?

ActorWhat it does
NY Scratch-Off Prize Status & ChangesRemaining prizes on New York scratch-off games.
NY Mobile Sports Betting RevenueStatewide and per-operator sports betting revenue in New York.
NFL & MLB Odds Movement TrackerHow betting lines move over time.
Gaming Company SEC Filings MonitorSEC filings and financial facts for gaming companies.

FAQ / Limitations

Where do the numbers come from? From two public datasets published by the New York State Gaming Commission on data.ny.gov: Powerball and Mega Millions. The Actor queries them directly over HTTPS with no login.

How soon after a draw do results appear? As soon as the New York feed publishes them. Publication delays and later corrections are possible; compare contentDigest between runs to catch corrections.

Why are older draws missing? Either your maxDrawsPerGame cap cut them (look for a SOURCE_TRUNCATED diagnostic with hasMore: true) or your dateFrom is set too late. For Mega Millions before 2010, select Mega Millions alone, because the date range applies to both games.

What if one feed is down? Draws from the other game are still delivered and a SOURCE_PARTIAL diagnostic is written. If no draws can be read and a feed failed, the run fails with SOURCE_UNAVAILABLE. There are no automatic retries; each request has a 20-second timeout.

What this is NOT. It does not check tickets, report jackpot amounts or prize payouts, predict numbers, compute odds or give betting advice. A future dateTo does not forecast draws. It covers only Powerball and Mega Millions, not state-only games.

Legal note. This is an unofficial tool, not affiliated with or endorsed by the New York State Gaming Commission, the Multi-State Lottery Association (Powerball) or the Mega Millions consortium. Results are published observations, not official certified results: always confirm winning numbers with the official lottery before acting on them. Lottery play is subject to age and local legal restrictions; you are responsible for how you use the data.

Found a bug or need another game feed? Open an issue on the Actor page.