Active Region: Massachusetts (MA)
Massachusetts Lottery JSON API
Developer-friendly REST API for Massachusetts Lottery winning numbers. Get reliable, real-time results for Mass Cash, Megabucks, and The Numbers Game with JSON payloads.
Supported MA Games
Mass Cash
MA Mass Cash API
Daily drawings. Pick 5 numbers.
GET /v1/states/ma/mass-cash/latest
Megabucks
MA Megabucks API
Drawings Mon, Wed, Sat. Pick 6 numbers.
GET /v1/states/ma/megabucks/latest
The Numbers Game
MA The Numbers Game (Midday) API
Daily Midday drawings.
GET /v1/states/ma/the-numbers-game-midday/latest
The Numbers Game
MA The Numbers Game (Evening) API
Daily Evening drawings.
GET /v1/states/ma/the-numbers-game-evening/latest
Quick Integration
cURL ExampleMA Mass Cash
curl -X GET "https://api.uslotteryapi.com/v1/states/ma/mass-cash/latest" \ -H "X-API-Key: YOUR_API_KEY"
Node.jsMA Mass Cash
const res = await fetch('https://api.uslotteryapi.com/v1/states/ma/mass-cash/latest', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const { data } = await res.json();
console.log(data.winning_numbers);Start Building Today
Access Massachusetts endpoints and 20+ other US states with our free developer tier.
Get Free API KeyFrequently Asked Questions
Which Massachusetts lottery games are supported via API?
Currently, we provide endpoints for MA Mass Cash, Megabucks, and The Numbers Game (Midday & Evening). All support latest draws and historical archives.
How often does the Massachusetts API update?
The API updates within 5 minutes of the official Massachusetts Lottery drawing time for each specific game.
Do I need an API key to test the endpoints?
Yes, you need a free API key. We offer a developer tier with 500 free requests per month.