Developers
Boxing win probability API
Short answer. The Boxerbook API gives forecast.p_a, a model probability that side a wins, for scheduled bouts where both boxers are rated: in /v1/schedule without a key, and in /v1/bouts/{id} (free key) together with the signals it reads: age, layoff, form, stoppage share, home ground and the rating of both corners. On 1,612 bouts it had never seen the model picked 82.3% of winners; the rating alone picked 77.1%.
What the model is
A logistic model on top of a Glicko-2 type rating, fitted on 26,662 bouts. It is scored on unseen bouts and against the closing market, and the scores are published:
| Test | Bouts | Rating | Model | Market |
|---|---|---|---|---|
| Bouts from 2025 on, unseen | 1,612 | 77.1% | 82.3% | n/a |
| Bouts with a market, forward-chained | 1,243 | 74.1% | 80.6% | 82.3% |
What each signal adds: the study on 34,414 bouts.
Read it
"""The pre-fight signals of one bout: what the forecast model reads for each corner.
export BOXERBOOK_API_KEY=... # free key: https://boxerbook.com/developers
python3 bout_signals.py 193203
"""
import json, os, sys, urllib.request
bout_id = int(sys.argv[1])
req = urllib.request.Request("https://boxerbook.com/v1/bouts/%d" % bout_id,
headers={"Authorization": "Bearer " + os.environ["BOXERBOOK_API_KEY"], "User-Agent": "bout-signals-example"})
with urllib.request.urlopen(req, timeout=30) as r:
bout = json.load(r)
signals = bout.get("signals") or {}
print("%s vs %s, %s" % (bout["a"]["name"], bout["b"]["name"], bout["date"]))
print("%-18s %14s %14s" % ("signal", "a", "b"))
for key in ("record", "age", "layoff_days", "last5", "ko_rate", "home", "stance", "height_cm", "reach_cm", "mu"):
print("%-18s %14s %14s" % (key, signals.get("a", {}).get(key), signals.get("b", {}).get(key)))
for name, block in (("rating only", {"p_a": signals.get("p_rating")}), ("model", bout.get("forecast")), ("market", bout.get("market"))):
if block and block.get("p_a") is not None:
print("%-18s P(a wins) = %.1f%%" % (name, 100 * block["p_a"]))
print("Cite:", bout["url"])A probability describes a group of similar bouts. It is information, not advice.
More: developer quickstart · fields and files · keys and plans on boxerbook.com