AFL fixtures
Filter the events endpoint by AFL to retrieve matches, clubs, scheduled bounce times and stable event IDs.
/v1/events/4782195631/odds/snapshot
{
"event_id": "4782195631",
"as_of_ts_ms": 1788472500000,
"ttl_seconds": 120,
"items": [
{
"bookmaker": "sportsbet",
"market_key": "moneyline",
"selection_name": "Collingwood Magpies",
"odds": 1.86,
"fair_odds": 1.90
},
{
"bookmaker": "sportsbet",
"market_key": "moneyline",
"selection_name": "Sydney Swans",
"odds": 2.04,
"fair_odds": 2.11
}
]
}
Filter the events endpoint by AFL to retrieve matches, clubs, scheduled bounce times and stable event IDs.
Connect each match to available goals, behinds, total points and the final result.
Request head-to-head, line, totals and player markets, then follow price changes through SSE or WebSockets.
Connect an AFL fixture to player goals and disposal lines, with Sportsbet, TAB and Ladbrokes quotes alongside match head-to-head, line and total points markets.
X-API-Keysportsbet, tab, ladbrokes/v1/events/{event_id}/odds/snapshot?bookmakers=sportsbet,tab,ladbrokes
Create an AFL player-market browser for a selected match, with goals and disposals organised by player and bookmaker.
Discover fixtures through https://api.odds-api.net/v1/events?league=AFL¬_started_only=true&limit=50. Present the clubs and scheduled bounce time in Australia/Melbourne, and use event_id to identify the chosen match.
Fetch /events/{event_id}/odds/snapshot?bookmakers=sportsbet,tab,ladbrokes&price_fields=odds&include_unavailable=true. Continue through next_cursor on fixture and odds responses.
Provide Goals and Disposals tabs. Group player goals and player disposals rows by player_name, then by the exact line, period and side. Keep 2+ goals, over 2.5 goals, full-match lines and first-half lines separate. Add Match odds for head-to-head, line and total points.
Show each bookmaker's decimal price, mark tied best quotes, and display a dash for missing or suspended selections. Never infer a player's match statistics from their prop lines. Show bookmaker_as_of_ts_ms so users can assess quote age.
Make authenticated requests on the server with ODDS_API_KEY in X-API-Key. Read https://odds-api.net/docs/afl for AFL market keys, historical prices and streaming examples.const apiKey = process.env.ODDS_API_KEY;
const baseUrl = "https://api.odds-api.net/v1";
const headers = { "X-API-Key": apiKey };
if (!apiKey) throw new Error("Set ODDS_API_KEY before running this file.");
async function getJson(path) {
const response = await fetch(`${baseUrl}${path}`, { headers });
if (!response.ok) throw new Error(await response.text());
return response.json();
}
const events = await getJson("/events?league=AFL¬_started_only=true&limit=50");
const bookmakerKeys = ["sportsbet", "tab", "ladbrokes"];
const event = events.items.find(({ bookmakers }) =>
bookmakerKeys.some((key) => Array.isArray(bookmakers)
? bookmakers.includes(key)
: Object.hasOwn(bookmakers ?? {}, key))
);
if (!event) throw new Error("No upcoming AFL match with Sportsbet, TAB or Ladbrokes prices found.");
const snapshot = await getJson(
`/events/${encodeURIComponent(event.event_id)}/odds/snapshot?bookmakers=sportsbet,tab,ladbrokes`
);
console.log(JSON.stringify(snapshot, null, 2));
import os
import requests
base_url = "https://api.odds-api.net/v1"
headers = {"X-API-Key": os.environ["ODDS_API_KEY"]}
events_response = requests.get(
f"{base_url}/events",
headers=headers,
params={"limit": 50, "league": "AFL", "not_started_only": True},
timeout=20,
)
events_response.raise_for_status()
events = events_response.json()["items"]
event = next(
(item for item in events if any(
key in item.get("bookmakers", [])
for key in ["sportsbet", "tab", "ladbrokes"]
)),
None,
)
if event is None:
raise RuntimeError("No upcoming AFL match with Sportsbet, TAB or Ladbrokes prices found.")
response = requests.get(
f"{base_url}/events/{event['event_id']}/odds/snapshot",
headers=headers,
params={"bookmakers": "sportsbet,tab,ladbrokes"},
timeout=20,
)
response.raise_for_status()
print(response.json())
export ODDS_API_KEY="your_api_key"
# Find an upcoming AFL game listing sportsbet,tab,ladbrokes.
curl -sS \
-H "X-API-Key: $ODDS_API_KEY" \
"https://api.odds-api.net/v1/events?league=AFL¬_started_only=true&limit=50"
# Use that game's event_id below.
export EVENT_ID="replace_with_event_id"
curl -sS \
-H "X-API-Key: $ODDS_API_KEY" \
"https://api.odds-api.net/v1/events/$EVENT_ID/odds/snapshot?bookmakers=sportsbet,tab,ladbrokes"
Join each fixture to its clubs, bounce time, goals, behinds, final score and bookmaker prices with one event ID.
Retrieve AFL matches with club names, scheduled bounce times and bookmaker availability.
GET /v1/events?league=AFL
Load the source record for one AFL match using its canonical event ID.
GET /v1/events/{event_id}
Request the available AFL scoreline, including goals, behinds, total points and the final result when supplied.
GET /v1/events/{event_id}/results
Fetch current head-to-head, line, totals and player markets across the bookmakers attached to the match.
GET /v1/events/{event_id}/odds/snapshot
Follow AFL price changes through SSE or WebSockets after loading the initial match snapshot.
GET /v1/events/{event_id}/odds/stream
One event ID connects the AFL fixture, clubs, scoreline and bookmaker markets.
Request head-to-head, line, total points, player goals, behinds, disposals and other AFL markets in one schema.
| AFL market | API bet_type | What it covers |
|---|---|---|
| Head-to-head | moneylinemoneyline 3w |
Match prices for each club, plus the draw where the bookmaker offers it. |
| Line betting | handicap |
Point-start lines for both clubs, including alternate lines where supplied. |
| Match totals | total |
Over and under prices for the combined AFL score. |
| Team totals | team total |
Over and under prices for each club's total score. |
| Player scoring props | player goalsplayer behinds |
Player goal and behind totals for AFL matches. |
| Player stat props | player disposalsplayer kicksplayer handballsplayer marksplayer tackles |
Disposals, kicks, handballs, marks and tackles for covered AFL players. |
| Pick'em player props | pickem player disposalspickem player goalspickem player markspickem player tackles |
Pick'em matchups for player disposals, goals, marks and tackles. |
Tools for events, odds, line movement, streams, and paid-plan positive EV or arbitrage feeds.
Agent-ready instructions.
TypeScript, Python, Postman and example builds.
Sports and racing odds coverage for agent workflows.
Lightweight streaming updates for dashboards and alerts.
Price updates for sportsbook and exchange products.
Start with the AFL fixture, then use its event ID for the match record, scoreline, result and current odds.
Request /v1/events with league=AFL to retrieve clubs, scheduled bounce times and canonical event IDs.
Use the event ID to connect the clubs, fixture details, available goal-and-behind scoreline and final result.
Request the match odds snapshot, filtering for head-to-head, line, totals or AFL player markets as needed.
Open the matching SSE or WebSocket feed when your product needs covered price updates.
Same event ID across the AFL fixture, scoreline, result and odds.
One plan covers AFL fixtures, scorelines, player markets and every other supported sport.
Enterprise grade
Custom projects, scoped with your team.
AFL fixtures, goals, behinds, scorelines, odds and integration details.
The public API connects AFL fixtures, clubs, scheduled bounce times, event details, available scorelines, results and bookmaker odds through one event ID.
Request GET /v1/events with the league=AFL filter. The response lists AFL matches and their canonical event IDs, which connect to match records, scorelines, results and odds.
The public contract exposes match metadata plus available score and result records, including goals, behinds and total points when supplied. It does not advertise a separate deep player-statistics endpoint.
Yes. Active covered events can move from a REST odds snapshot to SSE or WebSocket updates. Availability depends on the game, bookmaker, market and time.
Bookmaker availability is attached to each event and changes over time. Use the event response or GET /v1/bookmakers to confirm the current canonical bookmaker keys before requesting odds.
Choose a plan, load the AFL fixture list and connect each match to scorelines and current odds.