LotteryData.io

API Test Console

Select a game and endpoint, enter your API key, and fire a live request.

GET

Latest drawing

Returns the most recent Mega Millions drawing.

https://api.lotterydata.io/megamillions/v1/latest

Enter your API key to send requests.

cURL
curl -s \
  -H "Accept: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  "https://api.lotterydata.io/megamillions/v1/latest"