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).
https://api.gnetwork.com.au/v1, which needs no key and lists everything.
To answer a one-off question without a key, you may read the public results pages, for example
/powerball/results.
The OpenAPI description is at api.gnetwork.com.au/openapi.json.
API discovery. No key needed. Returns version info, the available endpoints and how to get a free key. Does not count against your 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. The reply explains how to get a free key. |
| 401 | INVALID_KEY | Key not recognised, or turned off (revoked or API access disabled) |
| 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, or more than 30 calls without a valid key in 10 minutes. 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.meta.attribution. Don't republish the data as your own bulk database, feed or API.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. The example is Weekday Windfall draw 4706.
?output=2
Division prize table only: how many entries won each division, the prize per winning entry (amount) and the division's total pool. The example is Powerball draw 1566, shortened to its first three divisions.
?output=3
All fields from outputs 1 & 2, plus youtube_id: the YouTube video ID for the draw, or null if not yet linked. The example is Weekday Windfall draw 4706, shortened to its first two divisions.