Discover/megamillions.com API
live

megamillions.com APImegamillions.com

Fetch Mega Millions winning numbers, jackpot amounts, historical drawings, top jackpots, and participating states via a structured JSON API.

Endpoints
4
Updated
3mo ago
Try it

No input parameters required.

api.parse.bot/scraper/e571c99b-6bc1-4447-b4d3-a4a8a5697105/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e571c99b-6bc1-4447-b4d3-a4a8a5697105/get_latest_results' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Get the latest Mega Millions drawing results, including winning numbers, jackpot details, prize tiers, prize matrix, and next drawing date.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "Drawing": "object containing winning numbers (N1-N5, MBall), PlayDate, Megaplier, and update metadata",
    "Jackpot": "object with CurrentPrizePool, NextPrizePool, CurrentCashValue, NextCashValue, Winners count",
    "PrizeTiers": "array of prize tier objects with Tier level, Winners count, IsMegaplier, and Multiplier",
    "PrizeMatrix": "object with game rules including WhiteBallMax, MegaBallMax, TicketPrice, and tier odds",
    "MatchWinners": "object with WinnerText and match details",
    "NextDrawingDate": "ISO datetime string for the next scheduled drawing"
  },
  "sample": {
    "data": {
      "Drawing": {
        "N1": 17,
        "N2": 32,
        "N3": 35,
        "N4": 40,
        "N5": 47,
        "MBall": 17,
        "PlayDate": "2026-05-12T00:00:00",
        "Megaplier": -1
      },
      "Jackpot": {
        "Winners": 0,
        "PlayDate": "2026-05-12T00:00:00",
        "Verified": true,
        "NextCashValue": 112300000,
        "NextPrizePool": 251000000,
        "CurrentCashValue": 103800000,
        "CurrentPrizePool": 232000000
      },
      "PrizeTiers": [
        {
          "Tier": 0,
          "Winners": 0,
          "PlayDate": "2026-05-12T00:00:00",
          "Multiplier": "",
          "IsMegaplier": false
        }
      ],
      "PrizeMatrix": {
        "MatrixID": 4,
        "MegaBallMax": 24,
        "TicketPrice": 5,
        "WhiteBallMax": 70
      },
      "MatchWinners": {
        "RawText": "NOT SET",
        "PlayDate": "2026-05-12T00:00:00",
        "WinnerText": "Match 5 + 0:",
        "ManualEntry": false
      },
      "NextDrawingDate": "2026-05-15T23:00:00",
      "MatchWinnersLocation": []
    },
    "status": "success"
  }
}

About the megamillions.com API

The Mega Millions API exposes 4 endpoints covering current drawing results, paginated drawing history, all-time top jackpots, and participating state contact data. The get_latest_results endpoint returns the full prize matrix alongside winning numbers, Megaplier, current and next jackpot cash values, and the next scheduled drawing date — everything needed to build a live lottery tracker or results widget.

Drawing Results and Jackpot Data

The get_latest_results endpoint returns the most recent drawing as a structured Drawing object with fields N1 through N5 plus MBall and Megaplier. Alongside the numbers, the Jackpot object carries CurrentPrizePool, NextPrizePool, CurrentCashValue, and NextCashValue so you can display both annuity and lump-sum figures. The PrizeMatrix object documents game rules including WhiteBallMax, MegaBallMax, TicketPrice, and per-tier odds, while the PrizeTiers array breaks down winners at each tier with their multiplier details.

Historical Drawings

get_drawing_history supports start_date and end_date filtering in MM/DD/YYYY format, with page_number and page_size for pagination. The response includes a DrawingData array of drawing objects — each with the same N1–N5, MBall, Megaplier, and PlayDate fields — plus a TotalResults count so you can build correct pagination controls. Date ranges can be as narrow or as wide as needed, making this endpoint practical for statistical analysis of number frequency over any interval.

Top Jackpots and Participating States

get_top_jackpots returns the 10 largest jackpots in Mega Millions history, each with the Jackpot dollar amount, PlayDate, and WinnerText describing the winning ticket(s) and state(s). The WinnerState field provides a two-letter abbreviation where applicable. get_lottery_states lists every participating state with StateShortName, StateDisplayName, StateLotteryURL, and both public and media contact details, giving you a reference table for linking to state-level lottery resources.

Common use cases
  • Display live Mega Millions winning numbers and jackpot amounts on a lottery results site
  • Build a number frequency analyzer using paginated drawing history from get_drawing_history
  • Send jackpot threshold alerts by polling CurrentPrizePool from get_latest_results
  • Render a historical jackpot leaderboard using the top-10 data from get_top_jackpots
  • Generate a state lottery directory with contact info and official URLs from get_lottery_states
  • Calculate prize tier statistics by parsing the PrizeTiers array across multiple drawings
  • Track next drawing countdowns using the NextDrawingDate field from get_latest_results
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Mega Millions have an official developer API?+
Mega Millions does not publish an official public developer API. This Parse API provides structured access to the same drawing data available on megamillions.com.
What does `get_drawing_history` return and how do I filter by date range?+
It returns a DrawingData array of drawing objects — each with PlayDate, N1N5, MBall, and Megaplier — plus a TotalResults count. Pass start_date and end_date as strings in MM/DD/YYYY format to limit the range. Use page_number and page_size to paginate through large result sets.
Does the API return individual ticket winners or just aggregate winner counts?+
The API returns aggregate data: the PrizeTiers array provides winner counts per tier and the MatchWinners object includes descriptive WinnerText. Individual ticket holder identities and claimant details are not included. You can fork this API on Parse and revise it to add an endpoint targeting any publicly available winner announcement data.
Are second-chance or promotional drawings included?+
Not currently. The API covers official Mega Millions draw results, jackpot data, and participating state information. It does not include second-chance drawings or promotional game results. You can fork it on Parse and revise to add an endpoint for that data if Mega Millions publishes it publicly.
How far back does the drawing history go?+
The get_drawing_history endpoint reflects the historical data published on megamillions.com. The full result count is available in the TotalResults field on any paginated response, so you can determine the actual coverage for your date range at query time.
Page content last updated . Spec covers 4 endpoints from megamillions.com.
Related APIs in OtherSee all →
duden.de API
Get German verb conjugations, parts of speech, and usage frequency from Duden's comprehensive database. Quickly look up how to conjugate any German verb across all tenses and moods.
git-scm.com API
Access comprehensive Git documentation, browse command references across different versions, and explore chapters from the Pro Git book. Search Git documentation and glossary terms to quickly find answers about Git commands and concepts.
theresanaiforthat.com API
Search and discover AI tools across different tasks, get detailed information about specific tools, browse available deals, and stay updated on the latest tools. Find the perfect AI solution for your needs by filtering by task category or checking featured and trending tools.
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
lotteryusa.com API
Check the latest winning numbers and jackpot amounts across all US lotteries, and view detailed prize breakdowns by state and game. Stay updated on lottery results instantly without visiting multiple lottery websites.
indiankanoon.org API
indiankanoon.org API
shamela.ws API
Search and browse one of the largest collections of Arabic and Islamic books, exploring thousands of titles by category, author, or full-text content. Access detailed book information, read specific pages, and discover newly added works to build your digital Islamic library.
oeis.org API
Search OEIS for integer sequences by keyword, A-number, or known terms, then retrieve full sequence entries and b-file term data.