Lottery Analyzer - Powerball & Mega Millions avatar

Lottery Analyzer - Powerball & Mega Millions

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Lottery Analyzer - Powerball & Mega Millions

Lottery Analyzer - Powerball & Mega Millions

Comprehensive lottery data analyzer for Powerball and Mega Millions. Access historical drawings, run statistical analysis, track hot/cold numbers, get next drawing info, and receive automated notifications via webhook.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

14

Total users

0

Monthly active users

12 days ago

Last modified

Features

Limited permissions

Share

Get real Powerball and Mega Millions winning numbers, number statistics (hot and cold numbers, overdue numbers, common pairs, gaps), the next draw date, and a checker for your own numbers. Results can be sent to Zapier, Make, n8n or any webhook.

Drawings come from NY Open Data (data.ny.gov), published by the New York State Gaming Commission. Powerball and Mega Millions use the same winning numbers in every state, so these results are the national results.

Not included: jackpot amounts. The data source publishes winning numbers and multipliers only. Jackpot amounts, cash values, winner counts and jackpot estimates are always null, and there is no jackpot trend analysis or jackpot alert.

Demo mode is off by default. Set demoMode to true for randomly generated sample drawings, labeled isSampleData: true, which charge none of this actor's events.


Quick start

Real data: full report for both games

{
"demoMode": false,
"lottery": "both",
"mode": "full_report"
}

Check your numbers

Five main numbers, then your Powerball or Mega Ball:

{
"demoMode": false,
"lottery": "powerball",
"mode": "check_numbers",
"checkNumbers": "5,17,23,44,62,14",
"historicalLimit": 300
}

Try the output format with sample data

{
"demoMode": true
}

Sample runs charge none of this actor's events. Apify's Actor start charge still applies.


Modes

ModeWhat you get
latest_resultsThe latest drawing and the 5 most recent drawings
historical_dataUp to historicalLimit most recent drawings
analysisNumber statistics (see below)
next_drawingNext draw date, time and countdown from the regular draw schedule. No data is fetched.
check_numbersEvery past drawing where your numbers matched, with the prize tier for each
full_reportLatest drawing, next drawing, analysis, and the 10 most recent drawings

Analysis

Every analysis includes hot and cold numbers, hot and cold Powerballs or Mega Balls, and overdue numbers (not drawn for more than 30 days). analysisType adds sections:

  • pairs: the 20 main-number pairs drawn together most often
  • gaps: average, longest and current gap between appearances, counted in drawings
  • day_patterns: number of drawings per weekday
  • all: all of the above

Analysis uses only drawings in the current number format, so number ranges are comparable: Powerball since 2015-10-07 (1-69 and 1-26) and Mega Millions since 2025-04-08 (1-70 and 1-24). Older drawings you fetch are still returned in historical_data and still checked in check_numbers, but they are left out of the statistics, and the output says how many were left out.

Number check prizes

Prizes come from the official prize charts:

  • Powerball (drawings since 2015-10-07): base prizes, without Power Play.
  • Mega Millions 2017-10-31 to 2025-04-04: base prizes, without Megaplier.
  • Mega Millions since 2025-04-08: every play has a built-in 2x to 10x multiplier that the data source does not publish, so prizes are shown as a range, for example "$14 to $70".
  • Older formats: prize is null.

A jackpot match shows "Jackpot" because jackpot amounts are not available.


Input parameters

ParameterTypeDefaultDescription
lotterystring"both"powerball, megamillions or both. No other games are supported.
modestring"full_report"See Modes above
analysisTypestring"all"hot_cold, frequency, overdue, pairs, gaps, day_patterns or all
analysisPeriodinteger365Analyze only fetched drawings from the last N days. 0 = all fetched drawings.
historicalLimitinteger100How many of the most recent drawings to fetch per game (1 to 5000). Powerball data starts in 2010, Mega Millions in 2002.
checkNumbersstring-For check_numbers: 5 main numbers then the Powerball or Mega Ball, for example 5,17,23,44,62,14
webhookUrlstring-URL to POST results to
webhookTriggersarray["always"]When to send the webhook (see Webhooks)
webhookPlatformstring"custom"Payload format: zapier, make, n8n or custom
demoModebooleanfalseReturn sample data instead of real data
jackpotThresholdinteger-Not available (no jackpot data). Kept so older inputs still work.
proxyConfigurationobject-Not used. Kept so older inputs still work.

Output

One dataset item per run. Example (full_report, Powerball part, shortened):

{
"success": true,
"isSampleData": false,
"isLiveData": true,
"lottery": "powerball",
"mode": "full_report",
"dataSource": {
"name": "NY Open Data lottery winning numbers",
"publisher": "New York State Gaming Commission",
"datasets": { "powerball": "https://data.ny.gov/d/d6yy-54nr" }
},
"data": {
"powerball": {
"latestDrawing": {
"lottery": "powerball",
"drawDate": "2026-10-24",
"numbers": [4, 5, 15, 19, 55],
"specialBall": 19,
"multiplier": 2,
"jackpot": null,
"jackpotCashValue": null,
"winners": null
},
"nextDrawing": {
"drawDate": "2026-10-26",
"drawTime": "10:59 PM ET",
"estimatedJackpot": null,
"cashValue": null,
"countdown": { "days": 0, "hours": 14, "minutes": 12 }
},
"analysis": {
"numberFormat": "5 numbers from 1-69 + Powerball from 1-26",
"period": "2026-03-07 to 2026-10-24",
"drawingsAnalyzed": 100,
"hotNumbers": [{ "number": 42, "count": 13, "percentage": 13, "lastDrawn": "2026-10-19", "daysSinceDrawn": 7 }],
"overdueNumbers": [{ "number": 43, "count": 5, "percentage": 5, "lastDrawn": "2026-07-08", "daysSinceDrawn": 110 }],
"commonPairs": [{ "pair": [13, 65], "count": 4, "percentage": 4 }],
"gapAnalysis": [{ "number": 43, "averageGap": 11, "maxGap": 23, "currentGap": 46 }],
"jackpotTrends": null
},
"recentDrawings": ["..."]
}
},
"chargedEvents": { "lottery-data-fetch": 1, "analysis-run": 1 }
}

multiplier is the Power Play for Powerball and the Megaplier for Mega Millions drawings up to 2025-04-04. For Mega Millions drawings since 2025-04-08 it is null because the built-in multiplier is not published in the data source.

If the input is invalid, the run returns one item with success: false, errorType: "invalid_input" and a message. If NY Open Data cannot be reached, the run fails with errorType: "source_unavailable". Neither case charges any of this actor's events; Apify's Actor start charge still applies.


Webhooks

Set webhookUrl to send the run's result as a POST request. Triggers:

  • always: every run
  • new_results: when the newest drawing is newer than on your previous run. The last seen draw dates are kept in a key-value store named lottery-analyzer-pb-mm-state in your Apify account. The first run counts as new. Not checked in demo mode.
  • number_match: in check_numbers mode, when your numbers hit a prize tier in at least one checked drawing
  • jackpot_threshold: not available, never fires (no jackpot data)

A useful setup: schedule latest_results with new_results to get each new drawing once.


Pricing

This actor uses pay-per-event pricing:

EventWhen it is chargedPrice
Actor startOnce when the run starts, one event per GB of memory (minimum one). At the default 1 GB of memory that is $0.10 per run$0.10 per GB
Lottery Data FetchCharged per lottery (Powerball or Mega Millions) when fetching historical drawing data$0.05
Analysis RunCharged per lottery when running statistical analysis (hot/cold numbers, pairs, gaps, trends)$0.05
Number CheckCharged when checking user's numbers against historical drawings$0.02
ResultEach item written to the default dataset$0.00001

Examples at the default 1 GB:

  • full_report for both games: $0.10 start + 2 x $0.05 fetch + 2 x $0.05 analysis = about $0.30
  • latest_results for one game: $0.10 start + $0.05 = about $0.15
  • check_numbers for one game: $0.10 start + $0.05 + $0.02 = about $0.17
  • next_drawing: only the start charge

Demo runs, invalid inputs and source outages charge none of this actor's events. Apify's actor start charge applies to every run. Each result lists what was charged in chargedEvents.


Data source and limits

The datasets are usually updated within a day of each drawing. Check drawDate on the latest drawing. If the newest drawing in the source is more than 7 days old, the output adds a note.

The next drawing date and time come from the regular schedule (Powerball: Monday, Wednesday and Saturday at 10:59 PM ET. Mega Millions: Tuesday and Friday at 11:00 PM ET) and do not account for rare schedule changes.


Disclaimer

For entertainment and research only. Lottery drawings are random, and past results do not predict future outcomes. Hot, cold and overdue numbers describe the past. They do not make any number more or less likely to be drawn. Always confirm winning numbers with your official lottery.


Built by John Rippy | Actor Arsenal