GET /v1/history/all · Unified 30+ Games Archive
US Lottery Historical Data API Hub
Query over 15+ years of verified draw archives across 30+ US lottery games. Designed for data science, AI model training, statistical analytics, and historical auditing.
API Endpoint
GET
https://api.uslotteryapi.com/v1/history/allFormats: JSON & CSV Stream
Request Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| game | string | Optional | Game slug (e.g. powerball, mega-millions, ny-lotto). Omit for all games. |
| from | string | Optional | Start draw date (YYYY-MM-DD). |
| to | string | Optional | End draw date (YYYY-MM-DD). |
| limit | integer | Optional | Number of draw records per call (1 to 200). Default: 50. |
| format | string | Optional | Payload output format (json or csv). Default: json. |
Sample Bulk JSON Response Payload
{
"status": "success",
"query": {
"games": ["powerball", "mega-millions"],
"from": "2026-07-01",
"to": "2026-08-01"
},
"pagination": {
"total_records": 24,
"current_page": 1,
"per_page": 2
},
"data": [
{
"game": "Powerball",
"draw_date": "2026-08-01",
"winning_numbers": [12, 24, 38, 52, 67],
"special_ball": { "name": "Powerball", "number": 18 },
"multiplier": "3x"
},
{
"game": "Mega Millions",
"draw_date": "2026-07-31",
"winning_numbers": [8, 17, 29, 41, 55],
"special_ball": { "name": "Mega Ball", "number": 14 },
"multiplier": "4x"
}
]
}Python (Bulk Exporter)Analytics
import requests
url = "https://api.uslotteryapi.com/v1/history/all?from=2024-01-01&format=json"
headers = {"X-API-Key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
dataset = response.json()['data']
print("Total Historical Draws Fetched:", len(dataset))cURL CSV StreamTerminal
curl -X GET "https://api.uslotteryapi.com/v1/history/all?game=powerball&format=csv" \ -H "X-API-Key: YOUR_API_KEY" \ -o powerball_history.csv
Start Querying Historical Archives
Access 500 free requests per month. Developer and Enterprise tiers offer unlimited pagination & CSV streaming.
Frequently Asked Questions
Which lottery games are included in the historical data API?
The historical endpoint includes Powerball, Mega Millions, Lucky for Life, Cash4Life, Lotto America, as well as state games in NY, FL, TX, CA, GA, and more.
Can I download full historical datasets as CSV files?
Yes. Simply append `format=csv` to your GET query to receive streamable CSV formatted records.
How far back does the historical draw data stretch?
Multi-state games cover 2010 to present (15+ years). State games cover 2015 to present.