Get a free key

League: Australian football

AFL odds API

The AFL is in the free Developer plan in season, which reads every book on sockodds.com's list but bet365; Pro and Business add bet365. Below, in order: the books on each plan, the market keys, the request, a sample of what comes back and how to get a free key.

Key afl, from plan Developer. Filter with league=afl; every league and its key. Fast Odds API answers at https://api.sockodds.com/v1; send your key as a Bearer token. For every market type defined for the AFL, each with its key, sides and periods, and the plans that include it, see SockOdds' AFL odds API page.

Bookmakers

Which books price the AFL on each plan

PlanPriceBooks on the AFL
DeveloperFree, no card, 1,000 credits a month, in seasonEvery book on sockodds.com's list but bet365: the Australian books on the bookmaker list, with Pinnacle, the exchanges and the prediction markets
StarterUS$39 a monthThe same books, on every league, with the recorded price history
ProUS$99 a monthEvery book, bet365 too, with opening and closing prices and the stream

A plan sets which books your key sees; a book shows up on a game once it prices it. Which books priced the AFL on the day we read the feed is in the measured note further down.

Market keys

What you can ask for

Market keyWhat it prices
winnerThe head to head, sides home and away.
handicapThe line. The two sides hold opposite figures: the home side at -6.5 against the away side at +6.5.
total_pointsThe total, sides over and under, each outcome with its line.
player_disposals_over_underA player's disposals line, sides over and under; the market's subject names the player.

Periods and props

Halves, quarters and players

Each market comes with a period: full for the whole game; this sport also carries halves and quarters (half_1, half_2, quarter_1 to quarter_4). A different line is a different market with its own outcome IDs, so group by line before ranking prices.

The books price the head to head, the line and the total, for the whole game and by halves and quarters, with alternate lines where a book hangs them. Player props: disposal, kick, handball, mark, tackle and hitout lines, plus anytime, first and last goalscorer. Each price carries the time it was seen, and one over ten minutes old is withheld, never served as current.

/v1/markets?league=afl lists every market the AFL can carry; which ones a game carries is up to the books pricing it.

The request

The best price on every AFL outcome

One request to /v1/odds with league=afl returns the games in the window with every market and every bookmaker your plan covers. Each outcome's prices come best first, so the first entry is the top price and the book quoting it. Name the markets you show to keep the response small.

The example asks for the disposals prop too, player_disposals_over_under, which names the player as its subject. Each number is its own market with its own outcome IDs, so one book at 28.5 and another at 30.5 are two markets: group by line before ranking prices.

Step by step, with the full tested file: build an AFL arbitrage scanner in Python.

Big leagues come back in pages: follow links.next until it is null. Each plan meters credits, with a league's featured markets at a credit apiece for each region, counted once a page of up to 25 games.

curl -G https://api.sockodds.com/v1/odds \
  -d league=afl \
  -d markets=winner,handicap,total_points,player_disposals_over_under \
  -H "Authorization: Bearer $SOCKODDS_KEY"

What comes back

A sample response

The same request with markets=winner,player_disposals_over_under and bookmakers=sportsbet,tab. Each event holds its markets, each market its outcomes, each outcome every book's price, best first, with the time it was seen. A game market's subject is null; on the prop it names the player, here a Carlton midfielder.

Trimmed to one outcome per market. The game, IDs and prices are the test fixture's, illustrative and not a live read; the shape is the real one.

response.json
{
  "data": [{
    "id": "ev_t03024es3aee",
    "name": "Carlton v Richmond",
    "league": {"key": "afl", "name": "AFL"},
    "scheduled_start": "2027-03-12T08:40:00Z",
    "status": "scheduled",
    "participants": [
      {"role": "home", "identity": {"key": "carlton", "name": "Carlton"}},
      {"role": "away", "identity": {"key": "richmond", "name": "Richmond"}}
    ],
    "markets": [
      {
        "id": "mk_9tx4j2sg5emc36qv",
        "key": "winner",
        "name": "Winner",
        "period": "full",
        "subject": null,
        "alternate": false,
        "outcomes": [{
          "id": "oc_f0a48xpz2qd0qt1h",
          "name": "Carlton",
          "side": "home",
          "line": null,
          "prices": [
            {
              "bookmaker": "sportsbet",
              "decimal_odds": 1.72,
              "implied_probability": 0.581395,
              "available": true,
              "observed_at": "2027-03-12T06:58:14Z"
            },
            {
              "bookmaker": "tab",
              "decimal_odds": 1.6,
              "implied_probability": 0.625,
              "available": true,
              "observed_at": "2027-03-12T06:58:14Z"
            }
          ]
        }]
      },
      {
        "id": "mk_a18ctbz0ckbevgqw",
        "key": "player_disposals_over_under",
        "name": "Player disposals over/under",
        "period": "full",
        "subject": {"id": "pl_3w13ea8whnng", "name": "Patrick Cripps"},
        "alternate": false,
        "outcomes": [{
          "id": "oc_7wr52fq8d00avaw3",
          "name": "Over",
          "side": "over",
          "line": 28.5,
          "prices": [{
            "bookmaker": "sportsbet",
            "decimal_odds": 1.85,
            "implied_probability": 0.540541,
            "available": true,
            "observed_at": "2027-03-12T06:58:14Z"
          }]
        }]
      }
    ]
  }],
  "meta": {"count": 1, "cursor": null},
  "links": {"next": null}
}

Get a key

From no key to the AFL prices

  1. Sign up free

    An email and a text message to verify. No card needed for the free plan.

  2. Send the key

    Put it in the Authorization header as a Bearer token, as in the request above.

  3. Ask for the AFL

    Run the request with league=afl. The quickstart walks the first call through in curl and Python.

Get a free key

No AFL games were priced when we read the feed on 15 Oct 2026 (GET /v1/odds?league=afl&limit=100, a Pro key, which sees every bookmaker on every league). The season runs from March to the grand final at the end of September, so 15 Oct 2026 was the off season. The count will be re-measured and re-dated.

Settling a draw

A drawn AFL head to head is a dead heat

winner has no draw side. /v1/results grades a drawn AFL head to head dead_heat with a dead_heat_factor of 0.5, which settles half your stake as a winner at the quoted price and half as a loser. Settle your own records the same way.

Settlement

How AFL games settle

/v1/results?league=afl grades each finished game outcome by outcome on the same IDs as the prices: won, lost, void or dead_heat. Markets settle one at a time, each once official evidence covers every outcome in it, so a game's result can come back with settlement: partial while some of its markets wait.

Questions

The AFL and the API

What to build with it: odds comparison, arbitrage, betting and tipping apps and backtesting, each with code in the v1 shape.

Is the AFL on the free plan?

Yes, in season: it is in the Developer plan, which costs nothing and asks for no card: the NBA, NBL, NFL and English Premier League, with the AFL, NRL and MLB in season, from every book on sockodds.com's list but bet365, within 1,000 credits a month.

Which bookmakers price the AFL?

The free plan reads every book on sockodds.com's list but bet365, and so does Starter; Pro and Business add bet365. A book shows up on a game only once it prices it, so the measured list on this page is the answer for the date it names.

What is the AFL's league key?

afl. Pass it as league=afl; a league key implies its sport, so it is the only filter needed to pick the competition. /v1/leagues returns the current list with each league's sport and region.

Are AFL player props included?

Yes, on every plan that includes the AFL, the free one too, per the pricing page, read 12 Oct 2026, from the same request as the game lines: disposal, kick, handball, mark, tackle and hitout lines, plus anytime, first and last goalscorer, wherever the books hang them. A prop is a market whose subject is the player.

Can I get AFL results from the feed?

Yes. /v1/results?league=afl grades each finished game outcome by outcome, on the same IDs as the prices: won, lost, void or dead heat. An outcome that official evidence does not settle is never guessed: it stays out of the results.

Start now

Your first Australian price is one request away.

Free key, no card, AFL and NRL included. Keys are issued on sockodds.com.