The lottery games with results available: Powerball, Mega Millions and New York draw games, with their ball names, draw times and history start.
curl -X POST "https://api.primaryapi.com/v1/run/lottery.games" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"games": [
{
"name": "Powerball",
"mainCount": 5,
"hasDoublePlay": true,
"checkable": true, …
}, …
]
}
},
"credits": 1
}Input and output
0 fields
This API takes no input.
13 fields
game.Good to know
A fixed list that changes only when a game is added or retired.
Terms of use. Results come from official state lottery open data; in a discrepancy, the lottery’s certified drawing results prevail. Always confirm numbers with the official lottery before acting on them. Informational only: no prize amounts, odds advice or ticket sales. Powerball and Mega Millions are trademarks of their owners.
More from Lottery. Same key, same credits.
The same key and credits work for every API.