# AFL Odds API

The Odds API covers AFL odds for live and upcoming games in a simple JSON API.

Not a developer? Current AFL odds can also be accessed in Excel or Google Sheets. For website owners, the odds widget brings bookmaker odds into websites with a simple HTML tag.

# Features

  • AFL odds are covered for live and upcoming games.

  • Featured markets, including head-to-head, handicap, over/under are covered for several bookmakers. See the full list of bookmakers.

  • Additional markets including player props, quarter and half time markets, and more are covered for most AU bookmakers. See the full list of betting markets.

  • Odds are refreshed at regular intervals. More information on update intervals can be found here.

  • AFL scores are covered, with final scores available for games completed up to 3 days ago.

  • Current odds data and scores are available on all usage plans, including the free usage plan.

  • Historical AFL odds data is available on paid usage plans. Historical odds for featured markets (head-to-head, handicap, over/under) are available from mid-2020. Historical odds for other markets are available from mid-2023. More information on historical odds data can be found here.

  • The API response includes deep links to bookmaker websites.

# Querying AFL Odds

Featured markets (head-to-head, handicap and totals) can be queried using the odds endpoint. For additional markets including player props, use the event-odds endpoint.

Parameters

To query current AFL odds for featured markets, the following parameters need to be provided:

  • sport   In this case aussierules_afl
  • regions   Regions of bookmakers to return, for example au
  • markets   For example, h2h for head-to-head, spreads for handicap, and totals for over/under
  • apiKey   Get a free API key

See the documentation for more options

Example API Request

https://api.the-odds-api.com/v4/sports/aussierules_afl/odds?regions=au&markets=h2h,spreads,totals&oddsFormat=decimal&apiKey=YOUR_API_KEY

Example API Response

The API will return live and upcoming AFL games, including start times, home and away teams, and odds from bookmakers for the specified regions and markets.

[{
    "id": "42e281a1a490751d30ba951bfcaefd76",
    "sport_key": "aussierules_afl",
    "sport_title": "AFL",
    "commence_time": "2025-04-17T09:30:00Z",
    "home_team": "Brisbane Lions",
    "away_team": "Collingwood Magpies",
    "bookmakers": [
        {
            "key": "sportsbet",
            "title": "SportsBet",
            "last_update": "2025-04-16T04:29:44Z",
            "markets": [
                {
                    "key": "h2h",
                    "last_update": "2025-04-16T04:29:44Z",
                    "outcomes": [
                        {"name": "Brisbane Lions", "price": 1.53},
                        {"name": "Collingwood Magpies", "price": 2.51}
                    ]
                },
                {
                    "key": "spreads",
                    "last_update": "2025-04-16T04:29:44Z",
                    "outcomes": [
                        {"name": "Brisbane Lions", "price": 1.9, "point": -10.5},
                        {"name": "Collingwood Magpies", "price": 1.9, "point": 10.5}
                    ]
                },
                {
                    "key": "totals",
                    "last_update": "2025-04-16T04:29:44Z",
                    "outcomes": [
                        {"name": "Over", "price": 1.88, "point": 175.5},
                        {"name": "Under", "price": 1.88, "point": 175.5}
                    ]
                }
            ]
        },
        ...

The usage cost of the API call in this example is

usage cost = [number of markets] x [number of regions] = 3 x 1 = 3 credits

See the API documentation for details.

# Query Any AFL Market

Any supported AFL markets can be queried one game at a time using the event-odds endpoint.

Parameters

To query current AFL odds for any market, including player props, half and quarter time markets and more, the following parameters need to be provided:

  • sport   In this case aussierules_afl
  • eventId   This example uses the id of Brisbane Lions v Collingwood Magpies (id 42e28...). A list of current event ids can be queried using the events endpoint.
  • regions   Regions of bookmakers to return, for example au
  • markets   For example h2h_q1 (1st quarter head-to-head), player_disposals, player_goal_scorer_anytime
  • apiKey   Get a free API key

See the documentation for more options.

Example API Request

https://api.the-odds-api.com/v4/sports/aussierules_afl/events/42e281a1a490751d30ba951bfcaefd76/odds?regions=au&markets=h2h_q1,player_disposals,player_goal_scorer_anytime&oddsFormat=decimal&apiKey=YOUR_API_KEY

Example API Response

The response will contain the specified AFL game including odds from the specified bookmakers and markets.

{
    "id": "42e281a1a490751d30ba951bfcaefd76",
    "sport_key": "aussierules_afl",
    "sport_title": "AFL",
    "commence_time": "2025-04-17T09:30:00Z",
    "home_team": "Brisbane Lions",
    "away_team": "Collingwood Magpies",
    "bookmakers": [
        {
            "key": "ladbrokes_au",
            "title": "Ladbrokes",
            "markets": [
                {
                    "key": "h2h_q1",
                    "last_update": "2025-04-16T04:40:00Z",
                    "outcomes": [
                        {"name": "Brisbane Lions", "price": 1.7},
                        {"name": "Collingwood Magpies", "price": 2.15}
                    ]
                },
                {
                    "key": "player_goal_scorer_anytime",
                    "last_update": "2025-04-16T04:40:00Z",
                    "outcomes": [
                        {"name": "Yes", "description": "Eric Hipwood", "price": 1.1},
                        {"name": "Yes", "description": "Logan Morris", "price": 1.12},
                        ...
                    ]
                },
                {
                    "key": "player_goals_scored_over",
                    "last_update": "2025-04-16T04:40:00Z",
                    "outcomes": [
                        {"name": "Over", "description": "Eric Hipwood", "price": 6.2, "point": 3.5},
                        {"name": "Over", "description": "Logan Morris", "price": 7, "point": 3.5},
                        ...
                    ]
                }
            ]
        },
        ...

The usage cost of the API call in this example is

usage cost = [number of markets] x [number of regions] = 3 x 1 = 3 credits

If you only need featured markets (head-to-head, handicap, totals), it will be more cost-efficient to query the odds endpoint since it will return multiple games.

See the API documentation for details.

# Other Sports

See the full list of sports covered by The Odds API.

# Stay Updated

Follow us on X.com or Bluesky to stay updated on new sports, bookmakers, markets and features.