Compare your numbers with a Powerball, Mega Millions or New York lottery draw: which numbers matched, whether the special ball matched, and the match pattern.
curl -X POST "https://api.primaryapi.com/v1/run/lottery.check" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"game":"powerball","numbers":[9,12,44,51,60],"specialBall":4}'{
"output": {
"found": true,
"data": {
"yourSpecialBall": 4,
"matchCount": 3,
"specialBallMatched": true,
"game": "powerball", …
}
},
"credits": 1
}Input and output
4 fields
powerball.[9,12,44,51,60].4.10 fields
Good to know
A pure comparison. It reports which of your numbers were drawn and the match pattern (for example "4 + Powerball").
It does not say what a ticket won. Prize amounts depend on the game rules, multipliers and state, so check them with the official lottery.
A date with no draw returns found: false. A miss is an answer, not an error.
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.