Lottery Results Scraper (Powerball, Mega Millions) avatar

Lottery Results Scraper (Powerball, Mega Millions)

Pricing

from $7.56 / 1,000 lottery draw records

Go to Apify Store
Lottery Results Scraper (Powerball, Mega Millions)

Lottery Results Scraper (Powerball, Mega Millions)

Scrape official US lottery results: Powerball, Mega Millions, Cash4Life, New York Lotto and Take 5. Latest and historical draws with parsed number arrays, bonus ball, multiplier and next draw date. Export to JSON, CSV or Excel.

Pricing

from $7.56 / 1,000 lottery draw records

Rating

0.0

(0)

Developer

Scrapers Lat

Scrapers Lat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Share

Lottery Results Scraper (Powerball, Mega Millions)

Lottery Results Scraper (Powerball, Mega Millions)

Here is one real result, with every field the actor returns:

{
"game": "Powerball",
"drawTime": null,
"drawDate": "2026-08-22",
"numbers": [13, 31, 54, 57, 65],
"bonusBall": 23,
"bonusName": "Powerball",
"multiplier": 3,
"multiplierName": "Power Play",
"doublePlayNumbers": [4, 18, 29, 47, 53],
"doublePlayBonus": 16,
"nextDrawDate": "2026-08-24",
"hotNumbers": [5, 8, 54, 4, 6],
"coldNumbers": [3, 7, 12, 13, 15],
"overdueNumbers": [1, 11, 16, 19, 23, 28, 32, 33],
"aiNumberStatsNote": "In the latest analysis of 20 Powerball draws, the hot numbers include 5, 8, 54, 4, and 6, which have been drawn most frequently. Conversely, the cold numbers are 3, 7, 12, 13, and 15, showing the least frequency. Additionally, numbers like 1, 11, 16, 19, 23, 28, 32, and 33 have not been drawn recently, making them overdue.",
"aiDisclaimer": "Lottery draws are random, and this content is for entertainment purposes only, not gambling advice.",
"source": "data.ny.gov",
"observedAt": "2026-08-23T12:29:32.912Z",
"error": null
}

The most complete US lottery results scraper available. It returns every field the official state draw feeds expose for Powerball, Mega Millions, Cash4Life, New York Lotto and Take 5, plus derived fields like parsed number arrays, a normalized bonus ball, the multiplier, and the next scheduled draw date, in one actor covering both the latest draw and full draw history.

📥 Input · 📤 Output · 💰 Pricing · ▶️ Examples

Apify Coverage Output Billing

Table of contents

What it does

The actor reads official US state open-data draw feeds and returns clean, normalized results for five games in a single run: Powerball, Mega Millions, Cash4Life, New York Lotto and Take 5. For each game you can pull just the most recent draw or a run of historical draws, most recent first.

Every draw is normalized the same way: the winning numbers are parsed into an integer array (numbers), the bonus ball is separated out with its correct label (bonusBall, bonusName, for example Powerball, Mega Ball or Cash Ball), the multiplier is captured when the game offers one (multiplier, multiplierName, for example Power Play or Megaplier), and the next draw date is derived from each game's fixed weekly schedule (nextDrawDate). Powerball Double Play numbers are included when published.

An optional AI number stats add-on computes hot, cold and overdue numbers with a plain-language narrative across the draws you pulled. It is entertainment content only and always ships with a clear randomness disclaimer.

Quickstart

Open the actor, paste this into the input, and press Run. It returns the latest Powerball and Mega Millions draws.

{
"games": ["powerball", "megamillions"],
"latestOnly": true,
"maxResults": 10
}

To pull history instead, turn latestOnly off and set historyLimit:

{
"games": ["powerball"],
"latestOnly": false,
"historyLimit": 50,
"maxResults": 50
}

Input reference

FieldTypeRequiredDefaultDescription
gamesarrayno["powerball","megamillions"]Which games to pull. Any subset of powerball, megamillions, cash4life, nylotto, take5. Powerball, Mega Millions and Cash4Life are multi-state games; New York Lotto and Take 5 are New York state games.
latestOnlybooleannotrueWhen on, returns only the most recent draw per game. Turn off to pull historical draws using historyLimit.
historyLimitintegerno1Number of recent draws to return per game when latestOnly is off, most recent first. Ignored when latestOnly is on.
aiNumberStatsbooleannofalsePaid add-on, entertainment only. Adds hot, cold and overdue numbers, a frequency narrative and a randomness disclaimer to each record. Charged only when usable stats are produced. Disabled on free plans.
maxResultsintegerno10Maximum draw records to return across the whole run, counted over all selected games. Free Apify plans are capped at 10 per run.

Output reference

One dataset item per draw. For Take 5, each draw date yields two rows, one Evening and one Midday. Types: string, integer, integer[], or null when a value does not apply.

FieldTypeDescription
gamestringGame name, for example Powerball, Mega Millions, Take 5 (Evening).
drawTimestringDraw slot for games with more than one daily draw (Take 5): Evening or Midday. null otherwise.
drawDatestringDraw date, YYYY-MM-DD.
numbersinteger[]Main winning numbers, in drawn order.
bonusBallintegerBonus ball value (Powerball, Mega Ball, Cash Ball, NY Lotto Bonus). null for games without one.
bonusNamestringLabel of the bonus ball for this game, for example Powerball, Mega Ball, Cash Ball.
multiplierintegerMultiplier drawn (Power Play or Megaplier). null when the game does not offer one or it is not published.
multiplierNamestringName of the multiplier, for example Power Play, Megaplier.
doublePlayNumbersinteger[]Powerball Double Play main numbers when published, else null.
doublePlayBonusintegerPowerball Double Play bonus ball when published, else null.
nextDrawDatestringNext scheduled draw date, YYYY-MM-DD, derived from the game's fixed weekly schedule.
hotNumbersinteger[]Most frequently drawn main numbers across the returned draws. AI stats add-on.
coldNumbersinteger[]Least frequently drawn main numbers across the returned draws. AI stats add-on.
overdueNumbersinteger[]Numbers not drawn recently in the returned window. AI stats add-on.
aiNumberStatsNotestringPlain-language narrative of hot, cold and overdue numbers. AI stats add-on.
aiDisclaimerstringRandomness and entertainment-only disclaimer. AI stats add-on.
sourcestringOfficial open-data source of the results.
observedAtstringISO 8601 timestamp when the record was collected.
errorstringnull on success. On a failed run, a single item with a populated error field is written instead.

Example output record

Real record from a live run (input {"games":["megamillions"],"latestOnly":true}):

{
"game": "Mega Millions",
"drawTime": null,
"drawDate": "2026-08-21",
"numbers": [1, 25, 34, 48, 57],
"bonusBall": 24,
"bonusName": "Mega Ball",
"multiplier": null,
"multiplierName": "Megaplier",
"doublePlayNumbers": null,
"doublePlayBonus": null,
"nextDrawDate": "2026-08-25",
"hotNumbers": null,
"coldNumbers": null,
"overdueNumbers": null,
"aiNumberStatsNote": null,
"aiDisclaimer": null,
"source": "data.ny.gov",
"observedAt": "2026-08-23T12:20:11.004Z",
"error": null
}

Use cases

  • Power a lottery results app or widget that refreshes after every draw, with numbers already parsed and ready to render.
  • Show the latest winning numbers plus the next draw date for Powerball, Mega Millions, Cash4Life, NY Lotto and Take 5 in one call.
  • Build historical draw archives for research, spreadsheets or backtesting by pulling hundreds of past draws per game.
  • Feed a checker feature that compares a user's ticket against the newest results.
  • Add an entertainment "hot and cold numbers" panel using the AI number stats add-on, with a built-in randomness disclaimer.

How we compare

This actorSingle-game Powerball scrapersTypical RapidAPI lottery APIs
Games in one toolPowerball, Mega Millions, Cash4Life, NY Lotto, Take 5One game per actorVaries, often locked behind higher tiers
Latest and full historyYes, one input toggleOften latest only or history onlyUsually yes
Parsed number arrayYes, integer arrayOften a raw string you must splitMixed
Bonus ball normalizedYes, with correct label per gameSometimes merged into the main stringMixed
Multiplier (Power Play, Megaplier)Yes, value and nameOften missingSometimes
Powerball Double PlayYes, when publishedRareRare
Next draw dateYes, derived from the scheduleRareSometimes
SourceOfficial US state open dataVariesVaries
AI hot, cold, overdue statsOptional add-on, entertainment onlyNoRare
BillingPay per result, no charge on empty runsMonthly subscription or creditsMonthly subscription with request quotas

Named points of comparison include the per-game Apify actors (for example the Powerball and Mega Millions past winning numbers actors), the Apify "Lottery Analyzer" actor, and RapidAPI options such as the USA Lottery Result (All State) API and the Downtack Lottery Results API.

Why choose this one:

  • Five games in a single actor and a single output shape, not one scraper per game.
  • Latest draw and deep history from the same input, so one integration covers both.
  • Numbers arrive as integer arrays with the bonus ball and multiplier already separated and labeled.
  • Sourced from official US state open data.
  • Optional AI number stats for an entertainment panel, always with a randomness disclaimer.
  • Pay per result with no charge on empty or failed runs.

Run via API and CLI

Start a run and read the dataset in one call. Replace <TOKEN> with your Apify API token.

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~lottery-results-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"games":["powerball","megamillions"],"latestOnly":true,"maxResults":10}'

Pull history for one game:

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~lottery-results-scraper/runs?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"games":["powerball"],"latestOnly":false,"historyLimit":100,"maxResults":100}'

Apify CLI:

apify call scrapers_lat/lottery-results-scraper \
--input '{"games":["cash4life","take5"],"latestOnly":true}'

Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing format:

# JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"
# CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"

<DATASET_ID> is returned as defaultDatasetId in the run object. Use offset and limit to page through large history pulls.

Billing

  • Pay per result. You are charged per draw record returned (result event). See the pricing tab for the current per-result price.
  • AI number stats add-on. Optional and off by default. Charged once per game, only when usable stats are produced. Disabled on free plans.
  • No charge on failure. If a run errors or returns nothing, the actor writes a single item with a populated error field and does not charge for it. Empty runs cost nothing.
  • Spend cap respected. Set maxTotalChargeUsd on the run; once reached, the actor stops emitting and charging further billable results.
  • Free Apify plans are capped at 10 records per run, with paid add-ons disabled. Upgrade for higher maxResults and the AI add-on.

FAQ and troubleshooting

Which games are covered? Powerball, Mega Millions and Cash4Life (multi-state), plus New York Lotto and Take 5 (New York state games). EuroMillions and UK National Lottery are not included yet and are a planned future addition.

How do I get historical draws? Turn latestOnly off and set historyLimit to how many recent draws per game you want, for example 50 or 200. Results come back most recent first.

Why is multiplier null for Mega Millions? The multiplier is only present when the source feed publishes it for that draw. Missing source values are returned as null, never invented.

Why are there two Take 5 rows per date? Take 5 draws twice a day. Each date returns one Take 5 (Evening) row and one Take 5 (Midday) row, distinguished by the drawTime field.

Are the hot and cold numbers a prediction? No. They are a frequency summary of the draws you pulled, provided as entertainment only. Lottery draws are random and independent; past results do not predict future draws. Every AI stats record carries a disclaimer saying so.

Is this an official lottery tool? No. This actor is independent and not affiliated with any lottery operator. It reads only publicly available official state open data.

More scrapers at scrapers.lat

Built and maintained by scrapers.lat, where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at scrapers.lat.


Independent tool, not affiliated with any lottery operator or state agency. Accesses only publicly available official state open data.