Discover/LotteryUSA API
live

LotteryUSA APIlotteryusa.com

Get US lottery results, winning numbers, jackpot amounts, and prize tables for all states via the LotteryUSA API. 3 endpoints covering national and state games.

Endpoint health
verified 5d ago
list_states
get_game_prizes
get_state_results
3/3 passing latest checkself-healing
Endpoints
3
Updated
21d ago

What is the LotteryUSA API?

The LotteryUSA API provides access to US lottery data across 3 endpoints, covering winning numbers, jackpot amounts, drawing dates, and full prize tables for both national and state-specific games. The get_state_results endpoint returns the most recent drawing results for every lottery game in a given state, while get_game_prizes delivers structured prize tiers, odds, and multiplier details for games like Powerball and Mega Millions.

Try it

No input parameters required.

api.parse.bot/scraper/abfb541d-b210-4bfa-b3a3-52e208dfc3cd/<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/abfb541d-b210-4bfa-b3a3-52e208dfc3cd/list_states' \
  -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 lotteryusa-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.

"""Walkthrough: LotteryUSA SDK — check winning numbers, browse states, inspect prize tables."""
from parse_apis.lottery_usa_api import LotteryUSA, GamePath, NotFound

client = LotteryUSA()

# List all covered states — each entry has name + slug.
for state in client.statesummaries.list(limit=5):
    print(state.name, state.slug)

# Drill into one state's latest results via constructible State.
ca = client.state(slug="california")
for game in ca.results(limit=3):
    print(game.game_name, game.jackpot, game.draw_date)
    for num in game.winning_numbers:
        print(f"  {num.value} ({num.type})")

# Fetch prize tables for a national game using the enum.
game = client.games.get(game_path=GamePath.POWERBALL)
for table in game.prize_tables:
    print(table.title, len(table.data), "tiers")
    print(table.headers)

# Typed error handling — catch NotFound for an invalid game path.
try:
    client.games.get(game_path="nonexistent-game-xyz")
except NotFound as exc:
    print(f"Game not found: {exc}")

print("exercised: statesummaries.list / state.results / games.get / NotFound error")
All endpoints · 3 totalmissing one? ·

Returns all US states and territories that have lottery coverage on the site. Each entry provides a display name and a URL slug. The slug is the required input for get_state_results. The list is stable (rarely changes) and contains ~47 entries.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "states": "array of objects with keys: name (string, display name), slug (string, URL slug for use with get_state_results)"
  },
  "sample": {
    "data": {
      "states": [
        {
          "name": "California",
          "slug": "california"
        },
        {
          "name": "Texas",
          "slug": "texas"
        },
        {
          "name": "New York",
          "slug": "new-york"
        }
      ]
    },
    "status": "success"
  }
}

About the LotteryUSA API

Endpoints and Coverage

The API exposes three endpoints. list_states returns an array of all US states and territories covered by LotteryUSA.com, each with a name and slug field. That slug is the required input for get_state_results, which returns a games array containing each game's game_name, winning_numbers (broken down by value, type, and name), multiplier, draw_date, jackpot, and a game_url. The state field and an ISO 8601 last_updated timestamp are also included at the top level.

Prize Tables via get_game_prizes

get_game_prizes accepts a game_path string such as 'powerball', 'mega-millions', or a state-scoped path like 'california/super-lotto-plus'. It returns one or more prize_tables, each with a title, a headers array of column names, and a data array of row objects keyed by those headers. This structure captures prize tiers, per-tier odds, and multiplier breakdowns in a consistent tabular format regardless of the game.

Data Shape Notes

Winning numbers in get_state_results are typed objects rather than a flat list, so callers can distinguish main draw balls from bonus balls or special number types by the type and name fields. The multiplier field is separate from the numbers array, which makes it straightforward to handle games that optionally include a multiplier (e.g. Power Play, Megaplier). The game_url field points back to the source page and can be used to construct the correct game_path input for get_game_prizes.

Reliability & maintenanceVerified

The LotteryUSA API is a managed, monitored endpoint for lotteryusa.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when lotteryusa.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 lotteryusa.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
5d ago
Latest check
3/3 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 tonight's Powerball and Mega Millions winning numbers in a mobile app using get_game_prizes and get_state_results
  • Build a multi-state lottery dashboard that iterates list_states slugs and fetches current jackpot amounts for each state
  • Alert users when a jackpot crosses a threshold by polling the jackpot field in get_state_results on a schedule
  • Populate a prize breakdown table for a specific game using the prize_tables array from get_game_prizes
  • Track drawing dates and results history by logging draw_date and winning_numbers from repeated calls to get_state_results
  • Compare odds across prize tiers for state-specific games using the structured headers and data fields from get_game_prizes
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 LotteryUSA have an official developer API?+
LotteryUSA.com does not publish an official public developer API or documented data feed for third-party use.
What does get_state_results return for a state that runs multiple games?+
It returns a games array with one object per active lottery game in that state. Each object includes the game_name, typed winning_numbers, a multiplier value, the draw_date, the current jackpot amount, and a game_url. All results reflect the most recent drawing available for each game.
Does the API return historical drawing results, not just the most recent ones?+
Not currently. get_state_results returns results from the most recent drawings only, and get_game_prizes returns the current prize table structure. Historical drawing data across multiple dates is not covered. You can fork this API on Parse and revise it to add an endpoint that retrieves past drawing results by date range.
Can I get ticket sales figures or the number of winners per prize tier?+
Not currently. The get_game_prizes endpoint covers prize amounts, odds, and multiplier details per tier, but winner counts or sales volume data are not included in the response. You can fork this API on Parse and revise it to add an endpoint targeting that detail.
How do I construct the game_path input for get_game_prizes?+
For national games use the game slug directly, e.g. 'powerball' or 'mega-millions'. For state-specific games, prefix with the state slug from list_states, e.g. 'california/super-lotto-plus'. The game_url field returned by get_state_results can also be used to derive the correct path.
Page content last updated . Spec covers 3 endpoints from lotteryusa.com.
Related APIs in OtherSee all →
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.
usamega.com API
Check the latest Mega Millions and Powerball results, jackpot amounts, and winning odds all in one place. Analyze drawing details and tax implications to make smarter lottery decisions.
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.
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.
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.
prizepicks.com API
Access real-time player prop projections and betting lines from PrizePicks across multiple sports leagues. Filter by league, US state, and live status to retrieve current lines, opening lines, player profiles, game metadata, and trending props.