Use case: arbitrage
Arbitrage betting API for Australian bookmakers
For an Australian scanner, start from the tested AFL one: build an AFL arbitrage scanner in Python. The odds routes return raw prices for the AFL, the NRL and every other league, not ready-made arbs, so on any plan you can compute them as this page shows. From the free Developer plan up, every plan reads every listed book but bet365, the small ones where prices drift furthest among them; Pro and Business add bet365 and an arbitrage endpoint that works the arbs out for you.
An arbitrage appears when the best price on each outcome, taken from different bookmakers, adds up to less than 100% implied. Spotting one means seeing every book's price on the same market at the same moment, which is exactly the shape of one event response.
The maths
When two prices beat the book
Say a tennis match has the first player at 2.08 with one bookmaker and the second at 2.02 with another. Convert each to an implied chance:
1/2.08 + 1/2.02 = 48.08% + 49.50% = 97.58%
Under 100%, so backing both in the right proportions returns the same amount whoever wins: here 2.48% on the total staked. Split $1,000 as $492.68 and $507.32, and either result pays $1,024.78.
stakeᵢ = total × (1/oddsᵢ) ÷ Σ(1/odds)
What the feed gives you
Everything a scanner needs, per market
- Every book in one response. Every outcome carries all the books'
decimal_oddsinsideprices, sorted from the top down, which makes the leading entry that side's best price. - Availability and age.
availabledrops suspended quotes;observed_attells you how old each one is. - Alternate lines with
alternates=true, for middles and for pairing totals at matching lines. - Shared boards named. The bookmakers page notes the brands that carry another book's prices, so a scanner does not count one price twice.
- Prediction markets in the same response. Kalshi and Polymarket sit beside the books for cross-venue checks.
Code
A head to head arbitrage scanner in Python
This walks every MLB game, takes the best available whole-game price on each side and prints any pair under 100%. Baseball has no draws, which keeps a two-way head to head honest.
import os
import requests
resp = requests.get(
"https://api.sockodds.com/v1/odds",
params={"league": "mlb", "markets": "winner"},
headers={"Authorization": f"Bearer {os.environ['SOCKODDS_KEY']}"},
timeout=20,
)
resp.raise_for_status()
for event in resp.json()["data"]:
# Best price per side. Each outcome lists every book's price, best
# first, so the books line up without any name matching.
best = {} # side -> (decimal price, bookmaker)
for market in event["markets"]:
if market["key"] != "winner" or market["period"] != "full": # whole-game head to head
continue
for o in market["outcomes"]:
live = [p for p in o["prices"] if p["available"]]
if live:
best[o["side"]] = (live[0]["decimal_odds"], live[0]["bookmaker"])
if "home" not in best or "away" not in best:
continue
(home, home_book), (away, away_book) = best["home"], best["away"]
total = 1 / home + 1 / away
if total < 1:
print(f'{event["name"]}: {home} at {home_book}, '
f'{away} at {away_book}, {1 / total - 1:.2%} return')
Middles
When the lines disagree
A middle is the cousin of an arb. If one book has an NRL total at 40.5 and another at 44.5, the over at 40.5 and the under at 44.5 both win if the game lands on 41 to 44 points. Ask for alternates=true and every line each book offers comes back as its own market, with the number on each outcome's line and alternate: true on the markets away from the main line.
For lines and totals, always compare sides at the same number, because a better price at a worse line is not an arb. Grouping by outcome ID does this for you: a total at a different number is a different market, with different IDs.
The traps, said plainly.
- A price can be up to ten minutes old before it is withheld, so an arb on screen can be gone at the bookmaker. Check the price there before acting.
- Draws break two-way maths. In the AFL a drawn head to head is usually settled as a dead heat, and soccer's 1X2 has three outcomes.
- Two brands on one shared price board are one opinion, not two.
- Bookmakers can limit accounts that bet this way and can void bets placed on obvious pricing errors. Read each book's terms.
Fast Odds API supplies data only. Whether and how you bet is your call.
Questions
Arbitrage and the API
Related: odds comparison, prediction markets.
Step by step: build an AFL arbitrage scanner in Python, every two-way market and the full tested file.
Which plan suits an arbitrage scanner?
Starter or Pro, in practice. Arbs tend to sit with the smaller books whose prices lag the market, and every plan reads them; what changes is the credits a month (Starter's 30,000 or Pro's 5,000,000), every league from Starter, and bet365 and an arbitrage endpoint from Pro. Build on the free plan first; the code does not change.
How often should a scanner poll?
SockOdds states no single refresh interval, so a poll faster than every few minutes mostly returns the same prices. Compare each price's observed_at with your last copy to skip what has not changed.
Can I scan player props for arbs?
Yes. Props come back in the same event response with every book's line and price. Pair over and under at the same line, because books often hang different numbers on the same player.
Does the API place the bets?
No. It is a read-only data feed. A person places any bet at the bookmaker, under that bookmaker's rules.
Start now
Your first Australian price is one request away.
Free key, no card, AFL and NRL included. Keys are issued on sockodds.com.