Developers
Public datasets are available without auth. Please cache for 24h for heavy usage.
Endpoints
/datasets/latest-draws.json
/datasets/latest-draws.csv
Examples
# curl
curl -s https://whatwouldyoudoifyouwonthelottery.com/datasets/latest-draws.json | jq .records[0]
# node
const res = await fetch("https://whatwouldyoudoifyouwonthelottery.com/datasets/latest-draws.json");
const data = await res.json();
# python
import pandas as pd
df = pd.read_csv("https://whatwouldyoudoifyouwonthelottery.com/datasets/latest-draws.csv")
print(df.head())