Lottery Analyzer - Powerball & Mega Millions
Pricing
from $0.01 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
14
Total users
0
Monthly active users
12 days ago
Last modified
Categories
Features
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
| Mode | What you get |
|---|---|
latest_results | The latest drawing and the 5 most recent drawings |
historical_data | Up to historicalLimit most recent drawings |
analysis | Number statistics (see below) |
next_drawing | Next draw date, time and countdown from the regular draw schedule. No data is fetched. |
check_numbers | Every past drawing where your numbers matched, with the prize tier for each |
full_report | Latest 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 oftengaps: average, longest and current gap between appearances, counted in drawingsday_patterns: number of drawings per weekdayall: 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:
prizeisnull.
A jackpot match shows "Jackpot" because jackpot amounts are not available.
Input parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
lottery | string | "both" | powerball, megamillions or both. No other games are supported. |
mode | string | "full_report" | See Modes above |
analysisType | string | "all" | hot_cold, frequency, overdue, pairs, gaps, day_patterns or all |
analysisPeriod | integer | 365 | Analyze only fetched drawings from the last N days. 0 = all fetched drawings. |
historicalLimit | integer | 100 | How many of the most recent drawings to fetch per game (1 to 5000). Powerball data starts in 2010, Mega Millions in 2002. |
checkNumbers | string | - | For check_numbers: 5 main numbers then the Powerball or Mega Ball, for example 5,17,23,44,62,14 |
webhookUrl | string | - | URL to POST results to |
webhookTriggers | array | ["always"] | When to send the webhook (see Webhooks) |
webhookPlatform | string | "custom" | Payload format: zapier, make, n8n or custom |
demoMode | boolean | false | Return sample data instead of real data |
jackpotThreshold | integer | - | Not available (no jackpot data). Kept so older inputs still work. |
proxyConfiguration | object | - | 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 runnew_results: when the newest drawing is newer than on your previous run. The last seen draw dates are kept in a key-value store namedlottery-analyzer-pb-mm-statein your Apify account. The first run counts as new. Not checked in demo mode.number_match: incheck_numbersmode, when your numbers hit a prize tier in at least one checked drawingjackpot_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:
| Event | When it is charged | Price |
|---|---|---|
| Actor start | Once 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 Fetch | Charged per lottery (Powerball or Mega Millions) when fetching historical drawing data | $0.05 |
| Analysis Run | Charged per lottery when running statistical analysis (hot/cold numbers, pairs, gaps, trends) | $0.05 |
| Number Check | Charged when checking user's numbers against historical drawings | $0.02 |
| Result | Each item written to the default dataset | $0.00001 |
Examples at the default 1 GB:
full_reportfor both games: $0.10 start + 2 x $0.05 fetch + 2 x $0.05 analysis = about $0.30latest_resultsfor one game: $0.10 start + $0.05 = about $0.15check_numbersfor one game: $0.10 start + $0.05 + $0.02 = about $0.17next_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
- Powerball: Lottery Powerball Winning Numbers: Beginning 2010
- Mega Millions: Lottery Mega Millions Winning Numbers: Beginning 2002
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