US Lottery API Logo
US Lottery API
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

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 Key

Frequently 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.

Explore State Lottery APIs