GET
Latest drawing
Returns the most recent The Numbers Game (Massachusetts) drawing.
Path: /numbersgame/v1/latest
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1/latest"
export LOTTERY_API_KEY="YOUR_KEY"
GET
Latest 10 drawings
Returns the 10 most recent The Numbers Game (Massachusetts) drawings.
Path: /numbersgame/v1/latest10
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1/latest10"
export LOTTERY_API_KEY="YOUR_KEY"
GET
Latest 30 drawings
Returns the 30 most recent The Numbers Game (Massachusetts) drawings.
Path: /numbersgame/v1/latest30
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1/latest30"
export LOTTERY_API_KEY="YOUR_KEY"
GET
Latest 60 drawings
Returns the 60 most recent The Numbers Game (Massachusetts) drawings.
Path: /numbersgame/v1/latest60
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1/latest60"
export LOTTERY_API_KEY="YOUR_KEY"
GET
Latest 90 drawings
Returns the 90 most recent The Numbers Game (Massachusetts) drawings.
Path: /numbersgame/v1/latest90
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1/latest90"
export LOTTERY_API_KEY="YOUR_KEY"
GET
Get drawing by date
Returns the The Numbers Game (Massachusetts) drawing for the specified date.
Path: /numbersgame/v1/drawing/{date}
Parameters
date — Draw date in YYYY-MM-DD format (required)
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1/drawing/{date}"export LOTTERY_API_KEY="YOUR_KEY"
GET
Between dates
Returns The Numbers Game (Massachusetts) drawings between two dates, inclusive.
Path: /numbersgame/v1/betweendates/{first_date}/{second_date}
Parameters
first_date — Start date in YYYY-MM-DD format (required)second_date — End date in YYYY-MM-DD format (required)
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1/betweendates/{first_date}/{second_date}"export LOTTERY_API_KEY="YOUR_KEY"
GET
Draw query
Returns The Numbers Game (Massachusetts) drawings within a date window. Supports ?min=YYYY-MM-DD&max=YYYY-MM-DD.
Path: /numbersgame/v1
curl -s -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $LOTTERY_API_KEY" \
"https://api.lotterydata.io/numbersgame/v1"
export LOTTERY_API_KEY="YOUR_KEY"