NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server →

Lottery API

The Lottery API provides winning numbers, jackpots and draw history for Powerball, Mega Millions and the draw games of every US state lottery, plus Puerto Rico and the US Virgin Islands: over 230 games, including keno-style games that draw every few minutes. Every result is validated against the game's rules and cross-checked against independent sources.

The free plan shows each result about 60 minutes after the draw. Paid plans get results within minutes, plus jackpot estimates, date lookups, deeper history and the ticket checker.

Available endpoints:

Game guides: Powerball API and Mega Millions API.

Covered games

RegionGamesGame values
US multi-state2by2, Lotto America, Mega Millions, Millionaire for Life, Powerball, Powerball Xs & Os2by2lottoamericamegamillionsmillionaireforlifepowerballpowerballxsandos
US multi-state (archive)Cash4Life, retiredcash4life
Tri-State (Maine, New Hampshire, Vermont)Gimme 5, Megabucks, Pick 3, Pick 4us-tristate-gimme5us-tristate-megabucksus-tristate-pick3us-tristate-pick4
Arizona5/10/45 (hourly), 5 In A Line (hourly), Fantasy 5, Hi-Lo (hourly), Lucky Links (hourly), Money Roll (hourly), One To Win (hourly), Pick 3, Pick 4, Pick Your Bet (hourly), The Pick, Triple Twist, Two To Win (hourly)us-az-51045us-az-5inalineus-az-fantasy5us-az-hilous-az-luckylinksus-az-moneyrollus-az-onetowinus-az-pick3us-az-pick4us-az-pickyourbetus-az-thepickus-az-tripletwistus-az-twotowin
ArkansasCash 3, Cash 4, LOTTO, Natural State Jackpotus-ar-cash3us-ar-cash4us-ar-lottous-ar-naturalstatejackpot
CaliforniaDaily 3, Daily 4, Daily Derby, Fantasy 5, Hot Spot (every few minutes), SuperLotto Plusus-ca-daily3us-ca-daily4us-ca-dailyderbyus-ca-fantasy5us-ca-hotspotus-ca-superlottoplus
ColoradoCash 5, Colorado Lotto+, Pick 3us-co-cash5us-co-lottoplusus-co-pick3
ConnecticutCash5, Keno (every few minutes), Lotto!, Play3, Play4us-ct-cash5us-ct-kenous-ct-lottous-ct-play3us-ct-play4
DelawareKeno (every few minutes), Multi-Win Lotto, Play 3, Play 4, Play 5us-de-kenous-de-multiwinlottous-de-play3us-de-play4us-de-play5
District of ColumbiaDC-3, DC-4, DC-5, DC Keno (every few minutes), Race2Riches (every few minutes)us-dc-dc3us-dc-dc4us-dc-dc5us-dc-kenous-dc-race2riches
FloridaCash Pop, Fantasy 5, Jackpot Triple Play, Florida Lotto, Pick 2, Pick 3, Pick 4, Pick 5us-fl-cashpopus-fl-fantasy5us-fl-jackpottripleplayus-fl-lottous-fl-pick2us-fl-pick3us-fl-pick4us-fl-pick5
GeorgiaCash 3, Cash 4, Cash Pop, Fantasy 5, Georgia FIVE, KENO! (every few minutes)us-ga-cash3us-ga-cash4us-ga-cashpopus-ga-fantasy5us-ga-georgiafiveus-ga-keno
IdahoIdaho Cash, Pick 3, Pick 4us-id-idahocashus-id-pick3us-id-pick4
IllinoisLotto, Lucky Day Lotto, Pick 3, Pick 4us-il-lottous-il-luckydaylottous-il-pick3us-il-pick4
IndianaCash 5, Cash Pop, Daily 3, Daily 4, Hoosier Lotto, Quick Drawus-in-cash5us-in-cashpopus-in-daily3us-in-daily4us-in-hoosierlottous-in-quickdraw
IowaPick 3, Pick 4us-ia-pick3us-ia-pick4
KansasKeno (every few minutes), Pick 3, Racetrax (every few minutes), Super Kansas Cashus-ks-kenous-ks-pick3us-ks-racetraxus-ks-superkansascash
KentuckyCash Ball 225, Cash Pop (every few minutes), Keno (every few minutes), Pick 3, Pick 4us-ky-cashball225us-ky-cashpopus-ky-kenous-ky-pick3us-ky-pick4
LouisianaEasy 5, Lotto, Pick 3, Pick 4, Pick 5us-la-easy5us-la-lottous-la-pick3us-la-pick4us-la-pick5
MaineCash POPus-me-cashpop
MarylandBonus Match 5, Cash Pop, Keno (every few minutes), Multi-Match, Pick 3, Pick 4, Pick 5, Racetrax (every few minutes)us-md-bonusmatch5us-md-cashpopus-md-kenous-md-multimatchus-md-pick3us-md-pick4us-md-pick5us-md-racetrax
MassachusettsKeno (every few minutes), Mass 3, Mass 4, Mass Cash, Megabucks, The Numbers Game, The Wheel of Luck (every few minutes)us-ma-kenous-ma-mass3us-ma-mass4us-ma-masscashus-ma-megabucksus-ma-numbersus-ma-wheelofluck
MichiganClub Keno (every few minutes), Daily 3, Daily 4, Daily 5, Fantasy 5, Keno!, Lotto 47, Poker Lottous-mi-clubkenous-mi-daily3us-mi-daily4us-mi-daily5us-mi-fantasy5us-mi-kenous-mi-lotto47us-mi-pokerlotto
MinnesotaGopher 5, North 5, Pick 3us-mn-gopher5us-mn-north5us-mn-pick3
MississippiCash 3, Cash 4, Cash Pop, Mississippi Match 5us-ms-cash3us-ms-cash4us-ms-cashpopus-ms-match5
MissouriCash Pop, Club Keno (every few minutes), MO Millions, Pick 3, Pick 4, Show Me Cashus-mo-cashpopus-mo-clubkenous-mo-momillionsus-mo-pick3us-mo-pick4us-mo-showmecash
MontanaBig Sky Bonus, Montana Cashus-mt-bigskybonusus-mt-montanacash
NebraskaMyDaY, Pick 3, Pick 4, Pick 5us-ne-mydayus-ne-pick3us-ne-pick4us-ne-pick5
New HampshireKENO 603 (every few minutes)us-nh-keno603
New JerseyJersey Cash 5, Cash Pop (every few minutes), Pick-3, Pick-4, Pick-6, Quick Draw (every few minutes)us-nj-cash5us-nj-cashpopus-nj-pick3us-nj-pick4us-nj-pick6us-nj-quickdraw
New MexicoPick 3 Plus, Pick 4 Plus, Roadrunner Cashus-nm-pick3plusus-nm-pick4plusus-nm-roadrunnercash
New YorkNY Lotto, Numbers, Pick 10, Quick Draw (every few minutes), Take 5, Win 4us-ny-lottous-ny-numbersus-ny-pick10us-ny-quickdrawus-ny-take5us-ny-win4
North CarolinaCash 5, Cash Pop, Keno (every few minutes), Pick 3, Pick 4us-nc-cash5us-nc-cashpopus-nc-kenous-nc-pick3us-nc-pick4
OhioClassic Lotto, Pick 3, Pick 4, Pick 5, Rolling Cash 5us-oh-classiclottous-oh-pick3us-oh-pick4us-oh-pick5us-oh-rollingcash5
OklahomaCash 5, Pick 3us-ok-cash5us-ok-pick3
OregonCash Pop (hourly), Keno (every few minutes), Megabucks, Pick 4, Win for Lifeus-or-cashpopus-or-kenous-or-megabucksus-or-pick4us-or-winforlife
PennsylvaniaCash 5, Cash Pop, Derby Cash (every few minutes), Keno (every few minutes), Match 6, Pick 2, Pick 3, Pick 4, Pick 5, Treasure Huntus-pa-cash5us-pa-cashpopus-pa-derbycashus-pa-kenous-pa-match6us-pa-pick2us-pa-pick3us-pa-pick4us-pa-pick5us-pa-treasurehunt
Puerto RicoKino (every few minutes), Lotería Tradicional, Loto Cash, Pega 2, Pega 3, Pega 4us-pr-kinous-pr-loteriatradicionalus-pr-lotocashus-pr-pega2us-pr-pega3us-pr-pega4
Rhode IslandBingo (every few minutes), Keno (every few minutes), The Numbers, Wild Moneyus-ri-bingous-ri-kenous-ri-numbersus-ri-wildmoney
South CarolinaCash Pop, Palmetto Cash 5, Pick 3, Pick 4us-sc-cashpopus-sc-palmettocash5us-sc-pick3us-sc-pick4
South DakotaDakota Cashus-sd-dakotacash
TennesseeCash 3, Cash 4, Daily Tennessee Jackpot, Tennessee Cashus-tn-cash3us-tn-cash4us-tn-dailytennesseejackpotus-tn-tennesseecash
TexasAll or Nothing, Cash Five, Daily 4, Lotto Texas, Pick 3, Texas Two Stepus-tx-allornothingus-tx-cashfiveus-tx-daily4us-tx-lottotexasus-tx-pick3us-tx-texastwostep
US Virgin IslandsCaribbean Numbers!, Lucky Pick, Pick 3, Pick 4, Super Lottous-vi-caribbeannumbersus-vi-luckypickus-vi-pick3us-vi-pick4us-vi-superlotto
VirginiaBank a Million, Cash 5, Cash Pop, Keno (every few minutes), Pick 3, Pick 4, Pick 5us-va-bankamillionus-va-cash5us-va-cashpopus-va-kenous-va-pick3us-va-pick4us-va-pick5
WashingtonCash Pop, Daily Keno, Hit 5, Lotto, Match 4, Pick 3us-wa-cashpopus-wa-dailykenous-wa-hit5us-wa-lottous-wa-match4us-wa-pick3
West VirginiaCash 25, Ca$h Pop (every few minutes), Daily 3, Daily 4, Keno (every few minutes)us-wv-cash25us-wv-cashpopus-wv-daily3us-wv-daily4us-wv-keno
WisconsinAll or Nothing, Badger 5, Megabucks, Pick 3, Pick 4, SuperCash!us-wi-allornothingus-wi-badger5us-wi-megabucksus-wi-pick3us-wi-pick4us-wi-supercash
WyomingCowboy Draw, KENO (every few minutes)us-wy-cowboydrawus-wy-keno
5 endpoints

https://api.api-ninjas.com/v1/lottery

Returns the latest draw for a game, the draw on a given date, or the latest draw of every game in a US state or a country. On paid plans results usually appear within minutes of the official publication; on the free plan they appear about 60 minutes later.

Parameters

Provide game, state or country.

  • game  optional

    Game slug, e.g. powerball, megamillions, us-ny-take5. Common spellings such as mega-millions also work. See /v1/lotterygames for every game.

  • state  optional Business tier and above, or any annual plan

    US state or territory code (e.g. IL, TX, PR). Returns the latest draw of every covered game in that state, including the national games it sells, in one call.

  • country  optional Business tier and above, or any annual plan

    ISO 3166-1 alpha-2 code (e.g. US). Returns the latest draw of every covered game in that country, in one call.

  • date  optional Premium only

    Draw date (YYYY-MM-DD). Developer plans: the last two years. Business tier and above: any date in the archive.

  • session  optional

    For games with several draws a day (e.g. midday, evening). Defaults to the latest draw that day.

  • draw_number  optional Premium only

    For games that draw every few minutes (keno and similar): return this draw. Searched within date if given, otherwise the last 3 days.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

The /v1/lottery endpoint returns a JSON object with the following fields (a JSON array of them when state or country is used), or an error if the request is unsuccessful.

  • game

    Game slug, e.g. powerball.

  • game_name

    Display name of the game.

  • country

    ISO 3166-1 alpha-2 country code.

  • draw_date

    Draw date in the operator's local time zone (YYYY-MM-DD).

  • session

    Only for games with several named draws a day: e.g. midday or evening.

  • draw_number

    The operator's draw number. Games that draw every few minutes (keno and similar) are identified by it.

  • draw_time

    Scheduled draw time in ISO 8601 with the operator's UTC offset.

  • main_numbers

    Winning numbers as integers. Digit games (Pick 3, Cash 4, Numbers...) keep draw order and racing games list the runners in finishing order; other games use the order the operator publishes.

  • bonus_numbers

    Separately drawn bonus ball(s), e.g. the Powerball, Mega Ball or a Pick game's Fireball or Wild Ball; [] for games without one.

  • bonus_name

    Name of the bonus ball, when the game has one.

  • multiplier

    Drawn multiplier (e.g. Power Play), when the game draws one.

  • multiplier_name

    Name of the multiplier.

  • secondary_draws

    Extra draws on the same ticket, e.g. Powerball Double Play or Illinois Lotto's Lotto Million 1 and Lotto Million 2.

  • extras

    Game-specific details, e.g. a keno Bulls-Eye or a race time. Each key is described in the game's extras in /v1/lotterygames.

  • jackpot

    Jackpot for this draw: currency, amount (advertised), cash_value, estimated and won.

  • jackpot.cash_value Premium only

    Cash value of this draw's jackpot. On the free plan it reads This field is for premium subscribers only.

  • next_draw

    Date and time of the next draw, and its estimated jackpot.

  • next_draw.jackpot Premium only

    Estimated jackpot and cash value of the next draw. On the free plan it reads This field is for premium subscribers only.

  • rules_version

    Effective date of the number format in force on this draw date. Use it to read older draws correctly when a game's format changed.

  • revision

    Starts at 1 and increases if the operator corrects the draw.

  • source

    The lottery operator that ran the draw (name, url), when we retrieved it (retrieved_at), and cross_checked: true once a second independent source has confirmed the numbers.

  • message

    Only on the free plan: explains the 60-minute delay and the premium fields.

Live Demo

Live demo · no API key required
Query parameters
game
state
country
date
session
draw_number

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v1/lottery?game=powerball
Sample response
{
"game": "powerball",
"game_name": "Powerball",
"country": "US",
"draw_date": "2026-10-05",
"draw_time": "2026-10-05T22:59:00-04:00",
"main_numbers": [
16,
23,
32,
36,
54
],
"bonus_numbers": [
9
],
"bonus_name": "Powerball",
"multiplier": 2,
"multiplier_name": "Power Play",
"secondary_draws": [
{
"name": "Double Play",
"main_numbers": [
7,
22,
29,
35,
51
],
"bonus_numbers": [
20
]
}
],
"jackpot": {
"currency": "USD",
"amount": 467000000,
"cash_value": 192400000,
"estimated": true,
"won": false
},
"next_draw": {
"draw_date": "2026-10-07",
"draw_time": "2026-10-07T22:59:00-04:00",
"jackpot": {
"currency": "USD",
"amount": 485000000,
"cash_value": 199800000,
"estimated": true
}
},
"rules_version": "2015-10-07",
"revision": 1,
"source": {
"name": "Pennsylvania Lottery",
"url": "https://www.palottery.pa.gov/feeds/Games.aspx",
"retrieved_at": "2026-10-06T03:06:02Z",
"cross_checked": false
}
}

Code Examples

curl -X GET "https://api.api-ninjas.com/v1/lottery?game=powerball" \ -H "X-Api-Key: YOUR_API_KEY"

https://api.api-ninjas.com/v1/lotteryhistorical

Returns past draws for a game, newest first. The free plan gets the latest 10 draws (each visible about 60 minutes after the draw); Developer plans a rolling two years; Business tier and above the full archive.

Parameters

  • game  required

    Game slug.

  • start  optional

    Earliest draw date to include (YYYY-MM-DD).

  • end  optional

    Latest draw date to include (YYYY-MM-DD).

  • session  optional

    Only draws from this session, for games with several draws a day.

  • limit  optional

    Number of draws to return (1-1000). Default 100.

  • offset  optional

    Number of draws to skip, for paging. Default 0.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

The /v1/lotteryhistorical endpoint returns a JSON array of draw objects (same fields as /v1/lottery), or an error.

Live Demo

Live demo · no API key required
Query parameters
game
start
end
session
limit
offset

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v1/lotteryhistorical?game=powerball
Sample response
[
{
"game": "powerball",
"game_name": "Powerball",
"country": "US",
"draw_date": "2026-10-05",
"draw_time": "2026-10-05T22:59:00-04:00",
"main_numbers": [
16,
23,
32,
36,
54
],
"bonus_numbers": [
9
],
"bonus_name": "Powerball",
"multiplier": 2,
"multiplier_name": "Power Play",
"secondary_draws": [
{
"name": "Double Play",
"main_numbers": [
7,
22,
29,
35,
51
],
"bonus_numbers": [
20
]
}
],
"jackpot": {
"currency": "USD",
"amount": 467000000,
"cash_value": 192400000,
"estimated": true,
"won": false
},
"next_draw": {
"draw_date": "2026-10-07",
"draw_time": "2026-10-07T22:59:00-04:00",
"jackpot": {
"currency": "USD",
"amount": 485000000,
"cash_value": 199800000,
"estimated": true
}
},
"rules_version": "2015-10-07",
"revision": 1,
"source": {
"name": "Pennsylvania Lottery",
"url": "https://www.palottery.pa.gov/feeds/Games.aspx",
"retrieved_at": "2026-10-06T03:06:02Z",
"cross_checked": false
}
},
"..."
]

Code Examples

curl -X GET "https://api.api-ninjas.com/v1/lotteryhistorical?game=powerball" \ -H "X-Api-Key: YOUR_API_KEY"

https://api.api-ninjas.com/v1/lotterygames

Lists the covered games with their number format, draw schedule, jackpot odds, prize tiers, rule-change history and archive range.

Parameters

  • game  optional

    Return one game.

  • state  optional

    Return the games of one US state or territory, e.g. IL.

  • country  optional

    Return the games of one country.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

The /v1/lotterygames endpoint returns a JSON array of game objects, or an error.

  • matrix

    Current number format: count and range of main and bonus numbers.

  • sessions

    Named draws per day, in order (e.g. ["midday", "evening"]).

  • rapid

    true for games that draw every few minutes; their draws are identified by draw_number.

  • draw_schedule

    Draw days, local time and IANA time zone; for rapid games, the interval in minutes and the first and last draw times.

  • jackpot_odds

    Odds of the top prize as N in 1 in N.

  • prize_tiers

    Prize table, where the game has fixed prizes.

  • rules_history

    Every number-format change with its effective date.

  • extras

    Description of each game-specific key that draws of this game may carry in extras.

  • history_start, latest_draw_date

    Range of the archive.

  • endpoints, docs

    Where to query the game and its documentation page.

Live Demo

Live demo · no API key required
Query parameters
game
state
country

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v1/lotterygames?game=powerball
Sample response
[
{
"game": "powerball",
"name": "Powerball",
"country": "US",
"subdivision": null,
"operator": "Multi-State Lottery Association",
"currency": "USD",
"ticket_price": 2,
"status": "active",
"sessions": null,
"draw_schedule": {
"days": [
"mon",
"wed",
"sat"
],
"time": "22:59",
"timezone": "America/New_York"
},
"matrix": {
"main": {
"count": 5,
"min": 1,
"max": 69,
"unique": true
},
"bonus": {
"count": 1,
"min": 1,
"max": 26,
"same_pool": false
}
},
"bonus_name": "Powerball",
"add_ons": [
"Power Play",
"Double Play"
],
"jackpot_odds": 292201338,
"prize_tiers": [
{
"tier": "5+1",
"match_main": 5,
"match_bonus": 1,
"prize": "jackpot"
},
{
"tier": "5+0",
"match_main": 5,
"match_bonus": 0,
"prize": 1000000
},
"..."
],
"prize_tiers_per_draw": false,
"rules_history": [
{
"effective": "2009-01-07",
"main": {
"count": 5,
"min": 1,
"max": 59
},
"bonus": {
"count": 1,
"min": 1,
"max": 39
}
},
{
"effective": "2012-01-15",
"main": {
"count": 5,
"min": 1,
"max": 59
},
"bonus": {
"count": 1,
"min": 1,
"max": 35
}
},
{
"effective": "2015-10-07",
"main": {
"count": 5,
"min": 1,
"max": 69
},
"bonus": {
"count": 1,
"min": 1,
"max": 26
}
}
],
"history_start": "2010-02-03",
"latest_draw_date": "2026-10-05",
"sources": [
{
"name": "Pennsylvania Lottery"
},
{
"name": "New York State Gaming Commission (data.ny.gov)"
}
],
"endpoints": [
"/v1/lottery?game=powerball",
"/v1/lotteryhistorical?game=powerball"
],
"docs": "https://api-ninjas.com/api/powerball"
}
]

Code Examples

curl -X GET "https://api.api-ninjas.com/v1/lotterygames?game=powerball" \ -H "X-Api-Key: YOUR_API_KEY"

Premium only

https://api.api-ninjas.com/v1/lotterycheck

Scores a ticket against a draw and returns the matched prize tier and prize. Supports Powerball (with Power Play and Double Play), Mega Millions (with the ticket's built-in multiplier) and Millionaire for Life. Ticket numbers are never stored. The result is not a prize claim.

Parameters

  • game  required

    powerball, megamillions or millionaireforlife.

  • date  required

    Draw date (YYYY-MM-DD). Developer plans: the last two years. Business tier and above: any supported draw.

  • numbers  required

    Main numbers on the ticket, comma separated.

  • bonus  required

    Bonus ball on the ticket (Powerball, Mega Ball or Millionaire Ball).

  • power_play  optional

    Powerball only: true if the ticket has Power Play.

  • double_play  optional

    Powerball only: true to also score the Double Play draw.

  • multiplier  optional

    Mega Millions only: the 2x-10x multiplier printed on the ticket (2, 3, 4, 5 or 10). Without it, the prize range is returned.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

The /v1/lotterycheck endpoint returns a JSON object with the following fields, or an error.

  • matched_main, matched_bonus

    How many main and bonus numbers matched.

  • tier

    Prize tier, e.g. 3+1.

  • prize

    Prize amount, "jackpot". Mega Millions without multiplier returns prize_min and prize_max instead.

  • double_play

    Result of the Double Play draw, when requested.

  • disclaimer

    Reminder that only the official lottery pays prizes.

Live Demo

Live demo
Query parameters
game
date
numbers
bonus
power_play
double_play
multiplier

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v1/lotterycheck?game=powerball&date=2026-10-05&numbers=16,23,32,1,2&bonus=9&power_play=true&double_play=true
Sample response
{
"game": "powerball",
"draw_date": "2026-10-05",
"numbers": [
16,
23,
32,
1,
2
],
"bonus": [
9
],
"matched_main": 3,
"matched_bonus": 1,
"tier": "3+1",
"prize": 200,
"currency": "USD",
"double_play": {
"matched_main": 0,
"matched_bonus": 0,
"tier": null,
"prize": null
},
"disclaimer": "This is not a prize claim. Prizes are paid only by the official lottery, under its rules and claim deadlines."
}

Code Examples

curl -X GET "https://api.api-ninjas.com/v1/lotterycheck?game=powerball&date=2026-10-05&numbers=16,23,32,1,2&bonus=9&power_play=true&double_play=true" \ -H "X-Api-Key: YOUR_API_KEY"

Premium only

https://api.api-ninjas.com/v1/lotteryjackpots

Lists the next advertised jackpot for every active game that publishes one, largest first within each currency.

Parameters

  • country  optional

    ISO 3166-1 alpha-2 code, e.g. US.

  • state  optional

    US state or territory code, e.g. TX.

  • currency  optional

    ISO 4217 code, e.g. USD.

  • min  optional

    Only jackpots of at least this amount.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

The /v1/lotteryjackpots endpoint returns a JSON array of jackpot objects, or an error.

  • game, game_name, country

    The game.

  • draw_date, draw_time

    When the jackpot will be drawn.

  • amount, cash_value, currency

    Advertised jackpot and its cash value, where published.

  • last_draw_date

    Date of the draw that set this estimate.

Live Demo

Live demo
Query parameters
country
state
currency
min

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v1/lotteryjackpots
Sample response
[
{
"game": "powerball",
"game_name": "Powerball",
"country": "US",
"draw_date": "2026-10-07",
"draw_time": "2026-10-07T22:59:00-04:00",
"currency": "USD",
"amount": 485000000,
"cash_value": 199800000,
"estimated": true,
"last_draw_date": "2026-10-05"
},
{
"game": "megamillions",
"game_name": "Mega Millions",
"country": "US",
"draw_date": "2026-10-06",
"draw_time": "2026-10-06T23:00:00-04:00",
"currency": "USD",
"amount": 345000000,
"cash_value": 139600000,
"estimated": true,
"last_draw_date": "2026-10-02"
},
"..."
]

Code Examples

curl -X GET "https://api.api-ninjas.com/v1/lotteryjackpots" \ -H "X-Api-Key: YOUR_API_KEY"

Frequently Asked Questions

  • Yes, but you must have a premium subscription. Commercial use of the Lottery API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.
  • The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.
  • Powerball, Mega Millions and Millionaire for Life; New York's NY Lotto, Take 5, Pick 10, Numbers and Win 4; Pennsylvania's Match 6, Cash 5, Treasure Hunt and Pick 2 to Pick 5; and the retired Cash4Life archive. Call /v1/lotterygames for the live list with each game's number format, draw schedule and odds. Game pages: Powerball API, Mega Millions API.
  • On paid plans, results are collected every two minutes from official lottery publications, so a Powerball draw at 10:59 pm ET is typically available within about ten minutes. On the free plan, each result appears about 60 minutes after it is published. Each draw is cross-checked against a second official source; source.cross_checked tells you whether that has happened yet.
  • The free plan gets the latest 10 draws per game. Developer plans get a rolling two years. The Business tier and above gets the full archive: Powerball from 2010, Mega Millions from 2002, and New York's Numbers and Win 4 from 1980.
  • Paid plans add results within minutes instead of about an hour, the jackpot cash value and next-draw jackpot estimate, the /v1/lotteryjackpots endpoint, date lookups and the /v1/lotterycheck ticket checker. Fetching every game in a country with one country call is included with the Business tier and above, or any annual plan.
  • Yes, on paid plans. /v1/lotterycheck scores a ticket against a draw and returns the matched tier and prize, including Power Play, Double Play and the Mega Millions multiplier, for Powerball, Mega Millions and Millionaire for Life. It is not a prize claim: only the official lottery pays prizes, under its own rules and deadlines.
  • No. API Ninjas is not affiliated with or endorsed by any lottery operator. Results come from official public lottery publications, but in any discrepancy the official lottery's records prevail, so always verify winning tickets with the official lottery.

API Ninjas is not affiliated with or endorsed by any lottery operator. Powerball and Mega Millions are trademarks of their respective owners. Results are compiled from publicly available lottery results; in any discrepancy the official lottery's records prevail, so always verify winning tickets with the official lottery.