# Lottery Numbers API

> Lottery Numbers fetches winning lottery numbers, bonus balls, draw dates, and jackpot amounts for major games. Specify Powerball, Mega Millions, EuroMillions, or Lotto Max to receive draw results with prize totals, and on paid plans the next draw's estimate and number frequency statistics from the last 100 draws.

**Endpoint:** `GET https://api.apiverve.com/v1/lottery`  
**Category:** Data Lookup  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/lottery

## Overview

Pass a supported game identifier—powerball, megamillions, euromillions, or lottomax. The lookup returns the latest drawn numbers, game-specific bonus balls, draw date, and jackpot totals updated daily. EuroMillions draws include Lucky Stars, while Powerball and Mega Millions return their respective special balls. Paid plans can pass a past date for historical drawings, access upcoming draw estimates, and get frequency statistics over the 100 draws up to the returned one: the most and least drawn numbers, the most drawn bonus balls, and how often each number in the draw has come up.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/lottery?numbers=powerball&date=2024-01-15&stats=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `numbers` | string | Yes | The lottery game to lookup: powerball, megamillions, euromillions, or lottomax (mega millions and mega_millions are also accepted). One of: powerball, megamillions, euromillions, lottomax, mega millions, mega_millions |
| `date` | string | No | Optional date for historical lookup (YYYY-MM-DD). Returns the nearest draw within 30 days of this date; history depth varies by game, and a date outside it returns 404 with the covered range.. date. Premium field |
| `stats` | boolean | No | Include number frequency statistics over the last 100 draws. default false. Premium field |

## Response fields

- `drawDate` — string · Date of the drawing
- `numbers` — array · Array of winning main numbers (for Powerball and Mega Millions, also includes the bonus ball as the final entry)
- `powerball` — number · The Powerball number drawn. Powerball only
- `jackpot` — string · Jackpot amount for this drawing
- `jackpotValue` — number · Jackpot amount for this drawing as a numeric value
- `jackpotFormatted` — string · Jackpot amount for this drawing, formatted as a currency string (same value as `jackpot`)
- `lotteryType` — string · Which lottery game this result is for: powerball, megamillions, euromillions, or lottomax
- `nextDraw` — object · Estimated details for the upcoming, not-yet-drawn draw. Absent for a short window after each draw, while the operator recalculates the estimate · (premium)
  - `nextDraw.drawDate` — string · Date of the upcoming draw (best-effort; may be null when the source lists it only as a relative time) · (premium)
  - `nextDraw.jackpot` — string · Estimated jackpot for the upcoming draw · (premium)
  - `nextDraw.jackpotValue` — number · Estimated jackpot for the upcoming draw as a numeric value · (premium)
  - `nextDraw.jackpotFormatted` — string · Jackpot amount for this drawing, formatted as a currency string (same value as `jackpot`) · (premium)
  - `nextDraw.cashValue` — string · Estimated cash (lump-sum) value for the upcoming draw. Powerball and Mega Millions only · (premium)
  - `nextDraw.cashValueValue` — number · Estimated cash value for the upcoming draw as a numeric value. Powerball and Mega Millions only · (premium)
- `stats` — object · Number frequency over the 100 draws up to and including the returned draw (null with too little history) (with stats=true) · (premium)
  - `stats.drawsAnalyzed` — number · Number of draws the statistics cover · (premium)
  - `stats.since` — string · Date of the oldest draw covered (YYYY-MM-DD) · (premium)
    - `stats.hotNumbers.0.number` — number · The number · (premium)
    - `stats.hotNumbers.0.timesDrawn` — number · Times it was drawn in the covered draws · (premium)
    - `stats.coldNumbers.0.number` — number · The number · (premium)
    - `stats.coldNumbers.0.timesDrawn` — number · Times it was drawn in the covered draws · (premium)
    - `stats.hotBonusNumbers.0.number` — number · The bonus number · (premium)
    - `stats.hotBonusNumbers.0.timesDrawn` — number · Times it was drawn in the covered draws · (premium)
    - `stats.drawNumbers.0.number` — number · The number · (premium)
    - `stats.drawNumbers.0.timesDrawn` — number · Times it was drawn in the covered draws, including this one · (premium)
    - `stats.drawNumbers.0.drawsSinceLast` — number · How many draws before this one it last came up (null if not in the covered draws) · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "drawDate": "2026-10-26",
    "numbers": [
      18,
      26,
      49,
      50,
      54,
      1
    ],
    "powerball": 1,
    "jackpot": "$691 Million",
    "jackpotValue": 691000000,
    "jackpotFormatted": "$691 Million",
    "lotteryType": "powerball",
    "nextDraw": {
      "drawDate": "2026-10-28",
      "jackpot": "$716 Million",
      "jackpotValue": 716000000,
      "jackpotFormatted": "$716 Million",
      "cashValue": "$307.2 Million",
      "cashValueValue": 307200000
    },
    "stats": {
      "drawsAnalyzed": 100,
      "since": "2026-03-09",
      "hotNumbers": [
        {
          "number": 42,
          "timesDrawn": 13
        },
        {
          "number": 3,
          "timesDrawn": 12
        },
        {
          "number": 64,
          "timesDrawn": 12
        },
        {
          "number": 4,
          "timesDrawn": 11
        },
        {
          "number": 14,
          "timesDrawn": 11
        }
      ],
      "coldNumbers": [
        {
          "number": 1,
          "timesDrawn": 3
        },
        {
          "number": 34,
          "timesDrawn": 3
        },
        {
          "number": 39,
          "timesDrawn": 3
        },
        {
          "number": 62,
          "timesDrawn": 3
        },
        {
          "number": 20,
          "timesDrawn": 4
        }
      ],
      "hotBonusNumbers": [
        {
          "number": 3,
          "timesDrawn": 8
        },
        {
          "number": 14,
          "timesDrawn": 7
        },
        {
          "number": 1,
          "timesDrawn": 6
        }
      ],
      "drawNumbers": [
        {
          "number": 18,
          "timesDrawn": 8,
          "drawsSinceLast": 16
        },
        {
          "number": 26,
          "timesDrawn": 6,
          "drawsSinceLast": 14
        },
        {
          "number": 49,
          "timesDrawn": 8,
          "drawsSinceLast": 12
        },
        {
          "number": 50,
          "timesDrawn": 10,
          "drawsSinceLast": 2
        },
        {
          "number": 54,
          "timesDrawn": 7,
          "drawsSinceLast": 9
        }
      ]
    }
  }
}
```

## Use cases

- **Ticket Verification Portals** — Lottery tracking apps compare user-submitted ticket numbers against returned winning numbers and bonus balls to alert players to matching prizes.
- **News Media Drawboards** — When a major draw concludes, regional news outlets display winning numbers and jackpot values on automated result widgets.
- **Convenience Retail Displays** — Broadcast updated winning numbers and current jackpot totals on in-store digital screens to inform lottery customers at the checkout counter.
- **Office Lottery Syndicates** — Pool managers verify group ticket entries against the latest draw dates and winning number arrays to automate weekly payout calculations.

## SDKs

- **npm** — `npm install @apiverve/lottery` (https://www.npmjs.com/package/@apiverve/lottery)
- **NuGet** — `dotnet add package APIVerve.API.LotteryNumbers` (https://www.nuget.org/packages/APIVerve.API.LotteryNumbers)
- **Source** — https://github.com/apiverve/lottery-api

## More

- Full reference: https://docs.apiverve.com/ref/lottery
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
