MyLottoData API
Access historical lottery draw data programmatically via our REST API.
Authentication
All requests require an API key passed in the X-API-Key header.
curl -H "X-API-Key: YOUR_KEY" https://api.mylotterydata.com/v1/games
Pricing
Free
$0
- 100 requests / day
- All endpoints
- JSON responses
Pro
$9.99/mo
- 10,000 requests / day
- All endpoints
- Priority support
Endpoints
GET
/v1/gamesList all available games with latest draw numbers.
GET
/v1/draws/recentGet the most recent draws for a game.
Params: game, count
GET
/v1/draws/date/{date}Get all draws on a specific date (YYYY-MM-DD).
Params: game_type (optional)
GET
/v1/draws/searchSearch for a number across all games (exact + box match).
Params: number, game_type (optional)
GET
/v1/draws/by-sumFind draws where digits add up to a specific sum.
Params: sum, game, limit
GET
/v1/draws/by-pairFind draws containing a specific 2-digit pair.
Params: pair, game, limit
GET
/v1/draws/historyGet all draws for a game in a specific year.
Params: game, year
GET
/v1/statsGet statistics: total draws, date range, top sums, hot numbers.
Params: game
GET
/v1/overviewGet a summary of all games with draw counts and date ranges.
Example Response
{
"draws": [
{
"date": "2026-05-09",
"tod": "Evening",
"numbers": [
"2",
"8",
"1",
"6"
],
"number_str": "2816",
"normalized": "1268",
"digits_sum": 17,
"game": "pick-4-evening",
"game_name": "Pick 4 Evening",
"game_type": "pick4",
"pairs_2dp": [
"12",
"16",
"18",
"26",
"28",
"68"
]
}
],
"total": 12727,
"game": "pick-4-evening"
}