API Documentation: Get Latest Powerball Numbers

Introduction

This API endpoint will retrieve the latest Powerball winning numbers, including white balls, powerball and multiplier along with draw date.

Authentication

To use this API, you need to authenticate using your e-mail address. Here’s how you can do it:

Authorization: Bearer YOUREMAILADDRESS

Endpoints

GET https://lottery.handyfunctions.com/?type=getLatestPB

Get Latest Powerball Numbers

Example

Request

GET lottery.handyfunctions.com/?type=getLatestPB https/1.1
Host: lottery.handyfunctions.com
Authorization: Bearer YOUREMAILADDRESS

Response

{
            "drawdate": "12/9/2024",
            "pbWhiteBalls": [
                "35",
                "37",
                "40",
                "45",
                "51"
            ],
            "pbRedBall": "24",
            "pbMultiplier": "2"
        }

Errors

Common error codes and their meanings: