This API endpoint will generate a set of Powerball numbers, white balls and the red powerball.
To use this API, you need to authenticate using your e-mail address. Here’s how you can do it:
Authorization: Bearer YOUREMAILADDRESS
Generate Powerball Numbers
GET https://lottery.handyfunctions.com/?type=generatePowerball https/1.1
Host: lottery.handyfunctions.com
Authorization: Bearer YOUREMAILADDRESS
{
"type": "powerball",
"whiteBalls": [
6,
21,
50,
59,
66
],
"redBall": 22
}
Common error codes and their meanings:
400 - Bad Request: The request was invalid or cannot be served.401 - Unauthorized: The request requires user authentication.404 - Not Found: The server has not found anything matching the request URI.500 - Internal Server Error: An error occurred on the server.