Discover/USA Mega API
live

USA Mega APIusamega.com

Access Mega Millions and Powerball results, historical drawings, prize breakdowns, odds, and state-by-state tax analysis via the usamega.com API.

Endpoint health
verified 19h ago
get_latest_results
get_game_results
get_drawing_details
get_odds
get_jackpot_analysis
5/5 passing latest checkself-healing
Endpoints
5
Updated
22d ago

What is the USA Mega API?

The usamega.com API exposes 5 endpoints covering Mega Millions and Powerball lottery data, including current and historical drawing results, per-tier prize breakdowns, winning odds, and state-by-state after-tax payout estimates. The get_latest_results endpoint returns the most recent winning numbers, multiplier, and next scheduled jackpot in a single call for both games. Response fields span annuity and cash values, Double Play numbers (Powerball), and drawing schedules.

Try it

No input parameters required.

api.parse.bot/scraper/d28795dd-8ad2-4cda-9c3a-6f8f389a2547/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/d28795dd-8ad2-4cda-9c3a-6f8f389a2547/get_latest_results' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace usamega-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.usa_mega_lottery_api import USAMega, Game, Lottery, Drawing, Detail, Tier, StatePayoff

mega = USAMega()

# Get latest results for all games
latest = mega.lotteries.latest()

# Access a specific game's lottery
powerball = mega.lottery(game=Game.POWERBALL)

# Get recent Powerball drawings
for drawing in powerball.results(max_results=5):
    print(drawing.date, drawing.numbers, drawing.bonus_ball)

# Get detailed prize breakdown for a specific drawing
detail = powerball.drawing(year="2026", month="6", day="8")
print(detail.winning_numbers, detail.bonus_ball, detail.multiplier)
for table in detail.prize_tables:
    print(table.title)
    for p in table.prizes:
        print(p.match, p.winners, p.prize)

# Get odds for Mega Millions
mm = mega.lottery(game=Game.MEGA_MILLIONS)
for tier in mm.odds():
    print(tier.match, tier.prize, tier.odds)

# Get state-by-state jackpot tax analysis
for state in mm.jackpot_analysis():
    print(state.state, state.average_annual_net, state.cash_option_net)
All endpoints · 5 totalmissing one? ·

Fetches current winning numbers and next jackpot amounts for all games (Mega Millions and Powerball) from the homepage. Returns the most recent drawing numbers, bonus ball, multiplier, Double Play (Powerball only), and the next scheduled jackpot with annuity and cash values.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "Powerball": "object with latest_drawing, double_play, and next_jackpot",
    "Mega Millions": "object with latest_drawing and next_jackpot"
  },
  "sample": {
    "data": {
      "Powerball": {
        "double_play": {
          "numbers": [
            "1",
            "16",
            "20",
            "21",
            "49"
          ],
          "bonus_ball": "10"
        },
        "next_jackpot": {
          "cash": "$106.1 Million",
          "date": "Wed, Jun 10, 2026",
          "annuity": "$238 Million"
        },
        "latest_drawing": {
          "date": "Mon, Jun 8, 2026",
          "numbers": [
            "3",
            "24",
            "34",
            "43",
            "49"
          ],
          "bonus_ball": "20",
          "multiplier": "3x"
        }
      },
      "Mega Millions": {
        "next_jackpot": {
          "cash": "$182.6 Million",
          "date": "Fri, Jun 12, 2026",
          "annuity": "$413 Million"
        },
        "latest_drawing": {
          "date": "Tue, Jun 9, 2026",
          "numbers": [
            "9",
            "30",
            "36",
            "38",
            "40"
          ],
          "bonus_ball": "3",
          "multiplier": null
        }
      }
    },
    "status": "success"
  }
}

About the USA Mega API

Drawing Results and Jackpot Figures

get_latest_results returns a combined snapshot for both games: Powerball data includes latest_drawing, double_play, and next_jackpot (annuity and cash values); Mega Millions returns the same minus double_play. For deeper history, get_game_results accepts a game parameter ('mega-millions' or 'powerball') and an optional max_results integer, returning an array of drawing objects each with date, numbers, bonus_ball, multiplier, jackpot, and a url pointing to that drawing's detail page. Drawings are ordered newest-first.

Per-Drawing Prize Breakdowns

get_drawing_details takes game, year, month, and day as required inputs and returns the full prize structure for that specific drawing. The response includes winning_numbers, bonus_ball, multiplier, a summary object with annuity and cash jackpot values, and a prize_tables array. Each prize table carries a title (e.g. all-states pool, California-only, Double Play) and a prizes array listing winner counts and payout amounts per tier.

Odds and Tax Analysis

get_odds returns the complete prize tier table for a given game: each tier specifies match criteria, prize amount, and odds of winning, plus a schedule string showing draw days and time and an overall_odds field. get_jackpot_analysis shifts focus to net payouts: for each participating US state and territory it returns average_annual_net (annuity) and cash_option_net (lump sum) after federal and state taxes, along with jackpot_info, jackpot_amount_annuity, and the game identifier. Both endpoints require only the game parameter.

Reliability & maintenanceVerified

The USA Mega API is a managed, monitored endpoint for usamega.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when usamega.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official usamega.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
19h ago
Latest check
5/5 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Display live Mega Millions and Powerball winning numbers on a lottery results dashboard using get_latest_results.
  • Build a drawing history archive by paginating get_game_results with max_results and storing drawings in a database.
  • Render a per-drawing prize breakdown page using the prize_tables array from get_drawing_details, including California-specific and Double Play pools.
  • Show players their state's estimated after-tax take-home for annuity vs. lump sum using get_jackpot_analysis state objects.
  • Generate a prize odds reference table for both games from get_odds tier data including match criteria and probability strings.
  • Alert subscribers when a jackpot crosses a threshold by monitoring the next_jackpot annuity value returned by get_latest_results.
  • Compare historical jackpot sizes across drawings by extracting the jackpot field from get_game_results over a date range.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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 usamega.com have an official public developer API?+
No. usamega.com does not publish an official developer API or documented data feed for third-party use.
What does `get_drawing_details` return beyond just the winning numbers?+
get_drawing_details returns winning_numbers, bonus_ball, multiplier, a summary object with annuity and cash jackpot values, and a prize_tables array. Each entry in prize_tables has a title (such as all-states, California-only, or Double Play) and a prizes array listing winner counts and prize amounts per tier for that drawing date.
Does the API cover state lottery games beyond Mega Millions and Powerball?+
Not currently. The API covers Mega Millions and Powerball only; the game parameter on all endpoints accepts only 'mega-millions' and 'powerball'. You can fork this API on Parse and revise it to add endpoints for additional games if the source site carries that data.
How current is the drawing data returned by `get_latest_results`?+
The endpoint reflects whatever is currently published on the usamega.com homepage. Drawings typically post shortly after results are certified, but there is no guaranteed real-time SLA tied to draw time. For time-sensitive applications, polling after the scheduled draw time (available via get_odds schedule field) is advisable.
Does `get_jackpot_analysis` include tax breakdowns at the federal and state level separately?+
Not currently. The states array returns average_annual_net and cash_option_net as final net figures after combined federal and state taxes; individual federal vs. state deduction amounts are not broken out in the response. You can fork this API on Parse and revise it to surface those fields if the source page exposes them.
Page content last updated . Spec covers 5 endpoints from usamega.com.
Related APIs in FinanceSee all →
megamillions.com API
Check the latest Mega Millions winning numbers and jackpot amounts, browse historical drawings, and discover the top jackpots across participating lottery states. Stay updated on lottery results and track winning combinations whenever you need them.
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.
powerball.com API
Check the latest Powerball drawing results, historical winning numbers, current jackpot amounts, and prize information all in one place. Browse past draws by date, view odds and prize breakdowns, and explore stories from winners to stay informed about your favorite lottery game.
lotterypost.com API
Check daily lottery results and jackpot amounts across 20+ US states and multi-state games, plus browse historical drawing data to track past winners and prize trends. Quickly compare results from multiple states or look up specific games all in one place.
calottery.com API
Check the latest California Lottery results for Powerball and Mega Millions, including up to 120 recent draws from 2025 and historical data for all available games. Search past winning numbers and game information across California's lottery draw games.
nylottery.ny.gov API
Access New York Lottery draw results, historical winning numbers, and scratch-off game information. Retrieve number frequency statistics, search for nearby retailers, and browse recent winners across all available games.
sportstoto.com.my API
Access Sports Toto Malaysia lottery jackpots, draw results, and past results calendars. Retrieve winning numbers, prize amounts, and comprehensive 4D frequency statistics for historical analysis.
bet.hkjc.com API
Check the latest Hong Kong Jockey Club Mark Six lottery results with prize breakdowns and view historical frequency statistics for all 49 numbers to analyze winning patterns. Find out when the next draw is scheduled and see detailed information about completed draws.