Lottery Results Scraper — Powerball & Mega Millions
Pricing
from $1.06 / 1,000 lottery draw delivereds
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.
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
- Click Try for free.
- Choose Games: Powerball, Mega Millions or both.
- Optionally set First date and Last date (
YYYY-MM-DD, UTC, inclusive). Leave both empty for the last 30 days. - Set Maximum returned draws per game (1–1,000).
- Hit Start. Filter the dataset on
recordType = "lottery_draw"for the results;diagnosticrows 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
| Field | Required | Meaning |
|---|---|---|
games | No | powerball, megamillions or both (default both). |
dateFrom | No | First 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. |
dateTo | No | Last draw date, YYYY-MM-DD, UTC, inclusive. Default: today. |
maxDrawsPerGame | No | Draws 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}}
| Field | Meaning |
|---|---|
recordType | lottery_draw (billable) or diagnostic (free). |
id | Stable key game:drawDate. |
game, drawDate | Game and draw date. |
numbers | The 5 main numbers in source order. |
bonusBall | Powerball or Mega Ball. |
multiplier | Published multiplier, null when absent. |
doublePlayNumbers, doublePlayBonusBall | Powerball Double Play numbers, null when absent. |
contentDigest | SHA-256 of the normalized draw facts (not of the observation time). |
validation | structural_not_rules_era_certification: numbers and dates are checked for structure, not against every historical rule set. |
source | Dataset ID, publisher, per-draw query URL, observation time and raw fields. |
billing | Whether 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?
| Actor | What it does |
|---|---|
| NY Scratch-Off Prize Status & Changes | Remaining prizes on New York scratch-off games. |
| NY Mobile Sports Betting Revenue | Statewide and per-operator sports betting revenue in New York. |
| NFL & MLB Odds Movement Tracker | How betting lines move over time. |
| Gaming Company SEC Filings Monitor | SEC 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.