API Reference
Lists events and returns each one's epk — the identity string that
Place Bet and
Price Check both accept in place of
sport + competition + event.
Use this instead of constructing an EPK yourself. An EPK looks
predictable — aussie_rules/au/afl/st_kilda_saints_v_gold_coast_suns/2026-08-20
— but building one from names means guessing our slugging, our country code
and our league key for every fixture, and a near-miss resolves to nothing.
This endpoint makes an EPK something you select, not something you spell.
Base URL: https://api.b337.ai · Header: X-API-Key: YOUR_API_KEY
| Param | Type | Default | Description |
|---|---|---|---|
sport | string | — | Sport group (aussie_rules) or league (afl). Either works — see below. |
league | string | — | League, explicitly. Narrows sport when both are given. |
date | string | — | Event day, YYYY-MM-DD. |
country | string | — | Country segment, e.g. au, gb, int. |
book | string | — | Only events this bookie is bound to (and can therefore be bet through). |
include_outrights | bool | false | Include outright/futures markets. |
limit | int | 200 | Max rows (1–1000). |
offset | int | 0 | Rows to skip, for pagination. See Paging past limit below. |
Filters are AND-ed, and all of them, including book, apply before
limit/offset slice the result, so matched and truncated always
describe the filtered answer. include_outrights is the one exception: it
is applied to each page after the cut (see Paging past limit).
sport accepts either grainafl is a league; its sport group is aussie_rules. You can pass
either, and the response's resolved block tells you which reading was used:
Passing sport=aussie_rules instead returns AFL and AFLW, with
"interpreted_as": "sport". To discover the leagues inside a sport, ask for
the sport and read the league field off the rows.
If a token happens to be both a sport group and a league (boxing currently
is), the sport group wins — you get the superset. Pass league= if you
want the narrower read.
| Field | Meaning |
|---|---|
count | Rows returned. |
matched | Rows that matched all the filters (including book) before limit/offset. Outrights hidden by include_outrights=false are still counted here. |
offset | Echo of the offset you sent. |
truncated | true when rows exist beyond this page: request again with a higher offset. |
hidden_outrights | Outrights suppressed by include_outrights=false. |
resolved | How sport was interpreted. null when sport was not passed. |
status | Live lifecycle: prematch → in_play → finalised. scheduled appears only as a fallback when the live lifecycle has not been decided for that event yet. |
books | Bookies bound to this event. Not cosmetic — a book absent here cannot bet this event. |
The event index is cached for about 10 seconds, so a freshly listed event can take that long to appear.
limitWhen truncated is true, the page is not the whole answer: re-request
with offset advanced by limit until it is false:
Pages walk the matched set in a stable (epk) order, so offset=limit is
page 2. Page on truncated, never on count: outrights suppressed by
include_outrights=false are counted in matched but removed from each
page after the cut (and reported in hidden_outrights), so a page can hold
fewer than limit rows, even none, and still have more after it.
Place Bet's EPK shortcut only covers head-to-head/team events, so outright EPKs cannot be bet the way the rest of this response implies — they are hidden unless you ask.
This matters most for motorsport and snooker, which are currently
100% outright-form, so they return count: 0 by default. That is not "no
coverage" — check hidden_outrights, then re-request. Golf is mixed:
head-to-head matchups list by default, while tournament-winner markets are
outrights (one league per tournament):
An unrecognised sport returns 404 with the valid list, rather than an
empty array — "that sport does not exist" and "nothing is on today" are
different problems and should not look alike:
GET /v3/events?sport=afl&date=2026-08-20 → copy an epk.POST /v3/price_check with that
epk + market + selection to confirm the price.POST /v3/place_bet with the same
body + stake.401 — invalid API key (403 for a lapsed subscription; 422 if the X-API-Key header is missing)404 — unknown sport/league token (response carries valid_sports)422 — limit outside 1–1000429 — more than 60 requests/minute on your key. Honour the Retry-After header; the body is {"error": "rate limit exceeded for /v3/events", "retry_after_seconds": N, "hint": "..."}. Cache the response or narrow it with sport/date — the catalogue changes when events are listed, not per second.503 — event index temporarily unavailable ({"error": "..."})To discover the valid league tokens up front, see
GET /v3/leagues.
epk you just found (takes session_id, singular)epk, no stake (takes session_ids, a list)