Powerball · Oz Lotto · Saturday Lotto · Weekday Windfall
Create a free account, enable API access from your profile, and generate your key in seconds.
Create account Sign in
The G Network Lottery API is a focused REST JSON feed for Australian lottery results.
One endpoint, two required parameters: pick a draw night (day) and an
output mode (output), and get back the most recent draw we have for that night.
Covers Saturday Lotto, Powerball, Oz Lotto, and Weekday Windfall (Monday, Wednesday, Friday).
API discovery. Returns version info and available endpoints. Does not count against rate limit.
Returns the most recent draw in the database for the specified night. Both parameters are required.
| Parameter | Required | Values |
|---|---|---|
day |
Required |
mondaytuesdaywednesdaythursdayfridaysaturday
|
output |
Required |
1:numbers & draw meta2:divisions & payouts3:full draw (all fields) |
| HTTP | Code | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED | No API key provided |
| 401 | INVALID_KEY | Key not found or revoked |
| 400 | MISSING_PARAM | Required parameter day or output not provided |
| 400 | INVALID_DAY | Unrecognised day value |
| 400 | INVALID_OUTPUT | output is not 1, 2, or 3 |
| 404 | NOT_FOUND | No draw found for the requested day, or unknown endpoint |
| 429 | RATE_LIMITED | 60 req/hour limit exceeded. Check the Retry-After header. |
| 500 | SERVER_ERROR | Something went wrong on our end |
data_freshness note is included in every API response.
?day=saturday&output=1 for the latest winning numbers, or output=3 for the full draw including division payouts and YouTube link. The API always returns the most recent Saturday Lotto draw in the database.
X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Window response headers. Exceeding the limit returns HTTP 429 with a Retry-After header.
ok field, a draw object, and a meta block. The draw object's fields vary by output mode: output=1 returns game info and ball numbers; output=2 returns the division prize table; output=3 returns all fields including youtube_id. Rate limit headers are also included on every response.
requests or httpx), JavaScript/Node.js (fetch), PHP (cURL), R, Ruby, and Go. Excel users can consume the JSON feed directly via Power Query for spreadsheet-based lottery analysis.
429 and Retry-After, poll after draw time rather than on a loop, and cache what you receive.Read the full Terms of Use · AI agents: /tos.md
?output=1
Ball numbers, draw number, date, and game info. Use this to check the latest result quickly.
?output=2
Division prize table only - how much each division paid out and how many winners.
?output=3
All fields from outputs 1 & 2, plus youtube_id - the raw YouTube video ID for the draw, or null if not yet linked.