🎄 Christmas raffle: win $25. See how to get tickets
Growing Discord community — direct access to the developer, live coverage & picks. Join the Discord Join now →
Matches Leagues Predictions News Stats Coverage
Docs / Odds Pro addon

Odds Pro: live odds WebSocket#

Odds Pro streams football odds as they change. You open one WebSocket, subscribe to matches, leagues or everything, and receive a snapshot of every current price followed by an update each time a bookmaker moves a line. There is nothing to poll.

  • Every bookmaker on its own row, pre-match and in-play: each price, the price it replaced, and every change.
  • In-play: the board is checked every 8 seconds; when a match moves, its match-result (1X2) prices are re-read straight away, and at least every 15 seconds. Other markets are refreshed every 60 seconds.
  • Pre-match: every covered match in the next 7 days is revisited, faster as kick-off approaches: every 4 hours a week out, every hour on the day, every 15 minutes in the last 6 hours and every 5 minutes in the last hour.
  • Gap-free: every change carries a sequence number (seq). Reconnect with the last one you saw and you get exactly what you missed.
  • Keyed to BSD match ids, the same event_id used by the football API. Home and away always follow our fixture, never the bookmaker's.

Football only today, and not every fixture: lower divisions and some cups are covered in part. Check before you buy:

  • By league: the coverage table on Odds Pro, the next 7 days, refreshed every 15 minutes.
  • By match: realtime_odds: true on the football events API, and a Real-time odds badge on the match page.
  • Bookmakers: the full list on the stream is on the Odds Pro page.

How it differs from the other plans#

Plan What you get Freshness How
Free Consensus price per market Refreshed every 15 minutes REST, you fetch
Football Unlimited Every bookmaker, pre-match and in-play, opening / current / closing Snapshot every 15 minutes REST, you fetch
Odds Pro Every bookmaker, every change, with match minute and score Seconds Pushed to you

Access#

Odds Pro is a paid add-on: $50/month, or $35/month with a Founder badge. Subscribe from the Odds Pro page or your dashboard.

Authentication is your normal BSD API key from the dashboard, the same token the REST API uses. On the WebSocket it goes in the query string; on the REST endpoints below, either there or in an Authorization: Token YOUR_API_KEY header.

wss://sports.bzzoiro.com/ws/odds-stream/?token=YOUR_API_KEY
Limit Value
Connections per account 3 at a time
Matches per connection 50 (subscribed one by one)
Leagues per connection 20
REST requests 60 per minute per account
Resume window 6 days

The subscription is checked when you connect and again every 10 minutes. If it lapses while you are connected, you receive an error frame with code subscription_expired and the socket closes with code 4402.

Connection errors#

The handshake is refused with a plain HTTP status before the socket opens:

Status Meaning
403 Missing or unknown token
402 Valid token, but no active Odds Pro subscription
429 This account already has 3 open connections

Quick start#

const ws = new WebSocket(
  "wss://sports.bzzoiro.com/ws/odds-stream/?token=YOUR_API_KEY&events=123456"
);

let lastSeq = 0;
ws.onmessage = (e) => {
  const msg = JSON.parse(e.data);
  if (msg.seq) lastSeq = Math.max(lastSeq, msg.seq);
  if (msg.type === "snapshot") console.log("all prices", msg.prices.length);
  if (msg.type === "update") for (const p of msg.prices)
    console.log(p.bookmaker, p.market, p.outcome, p.prev, "→", p.odds);
};
import asyncio, json, websockets

URL = "wss://sports.bzzoiro.com/ws/odds-stream/?token=YOUR_API_KEY"

async def main():
    async with websockets.connect(URL) as ws:
        await ws.send(json.dumps({"action": "subscribe", "league_id": 1}))
        async for raw in ws:
            msg = json.loads(raw)
            print(msg["type"], msg.get("event_id"), msg.get("seq"))

asyncio.run(main())

You can subscribe from the URL, on connect, with events= (comma-separated match ids), leagues= (league ids) and/or all=1, plus since= to resume. You can also subscribe and unsubscribe at any time by sending messages.

Client → server#

{"action": "subscribe",   "event_id": 123456}
{"action": "subscribe",   "event_ids": [123456, 123457]}
{"action": "subscribe",   "league_id": 1}
{"action": "subscribe",   "league_ids": [1, 2]}
{"action": "subscribe",   "all": true}
{"action": "subscribe",   "event_id": 123456, "since": 918273}
{"action": "unsubscribe", "event_id": 123456}
{"action": "unsubscribe", "league_id": 1}
{"action": "unsubscribe", "all": true}
{"action": "events"}
  • By match: a snapshot per match, then its updates.
  • By league: a snapshot of every match of that league on the stream right now, then updates for every match of the league, including ones that appear later. League ids are the ones the football API uses.
  • Everything (all): updates for every match on the stream. No snapshots are sent (that would be hundreds of matches at once): fetch the ones you need from /snapshot/ and continue from its seq.
  • events returns every match that has odds on the stream right now, with its league. Use it to discover what you can subscribe to.

Server → client#

snapshot#

Sent when you subscribe to a match (or a league): every current price, plus the match state. seq is the position of the stream when the snapshot was taken.

{
  "type": "snapshot",
  "event_id": 123456,
  "seq": 918273,
  "match": {"status": "1st_half", "minute": 37, "score": [1, 0]},
  "prices": [
    {"market": "1x2", "period": "ft", "line": null, "outcome": "home",
     "bookmaker": "Bookmaker name", "bookmaker_id": 16, "odds": 1.62, "at": "2026-12-04T18:31:07Z"}
  ]
}

update#

Sent each time one or more prices of a match change. Each price carries prev, the price it replaced, and its own seq; the frame's seq is the highest one in it.

{
  "type": "update",
  "event_id": 123456,
  "seq": 918301,
  "prices": [
    {"market": "total_goals", "period": "ft", "line": 2.5, "outcome": "over",
     "bookmaker": "Bookmaker name", "bookmaker_id": 16, "odds": 1.95, "prev": 1.91, "seq": 918301,
     "at": "2026-12-04T18:31:09Z"}
  ]
}

Updates sent because you resumed with since carry "replay": true.

subscribed / unsubscribed#

Confirms a subscription, with the matches it covers and the current seq.

{"type": "subscribed", "league_id": 1, "event_ids": [123456, 123457], "seq": 918301}
{"type": "subscribed", "all": true, "seq": 918301}

match#

Sent when the status, minute or score of a match you follow by id changes.

The match state comes from the BSD fixture itself, so status, minute and score are exactly what the football API returns for that event_id: notstarted, 1st_half, halftime, 2nd_half, extra_time, penalties, finished, postponed, canceled… score is [home, away], or null before kick-off. It is checked every 5 seconds while you are subscribed.

{"type": "match", "event_id": 123456, "match": {"status": "1st_half", "minute": 38, "score": [1, 1]}}

events#

The answer to {"action": "events"}:

{"type": "events", "events": [
  {"event_id": 123456, "home": "Home FC", "away": "Away FC",
   "kickoff": "2026-12-04T19:00:00Z", "league": "League name", "league_id": 1,
   "markets": ["1x2", "handicap", "total_goals", "btts"]}
]}

error#

{"type": "error", "code": "not_covered", "event_id": 999}
Code Meaning
not_covered No odds for that match on the stream (yet)
too_many_subscriptions This connection already follows 50 matches or 20 leagues
cursor_expired since is older than the 6-day resume window; snapshots follow instead
replay_too_large More than 20,000 changes to replay; page through /changes/
bad_event_id Nothing to subscribe to: no event_id, league_id or all
unknown_action action is not one of the ones above
bad_json The message was not valid JSON
subscription_expired Odds Pro lapsed; the socket closes next

The price object#

Field Values
market 1x2 · btts · total_goals · handicap
period ft (full time) · 1h (first half)
line null for 1X2 and BTTS; the line for totals (e.g. 2.5) and handicaps
outcome home · draw · away · over · under · yes · no
bookmaker Bookmaker name
bookmaker_id Bookmaker id, stable across names; its logo is at /img/bookmakers/{bookmaker_id}/
odds Decimal odds
prev Previous decimal odds (updates only)
seq Sequence number of this change (updates only)
at When the price was observed (UTC, ISO 8601)

A price is identified by (market, period, line, outcome, bookmaker). An update replaces the price with the same key, so keeping a dictionary keyed that way gives you the current board at all times.

Handicap lines are from the home team's side. A line of -0.5 means home −0.5; the away price on the same row is away +0.5.

In-play Asian handicaps count goals from now on. Once a match has started, a handicap price settles on the goals scored for the rest of the match, not on the final score. At 1-0, home 0.0 is "home outscores away from here", which is why the leading side is not automatically the favourite at line 0.

Bookmaker logos#

Every bookmaker's logo is served from our domain, so you can show it next to its prices without hotlinking anyone:

https://sports.bzzoiro.com/img/bookmakers/{bookmaker_id}/

A PNG of about 150×64 px, cached for a day. A bookmaker without a logo returns 204 (empty), so an <img onerror> fallback to the name is enough. No key needed. See the Image API.

Markets#

Market market period
Match result 1x2 ft
Both teams to score btts ft
Total goals total_goals ft
Asian handicap handicap ft
1st half result 1x2 1h
1st half total goals total_goals 1h
1st half handicap handicap 1h
1st half both teams to score btts 1h

Reconnecting without gaps#

seq grows with every price change across the whole stream, so the numbers you see have gaps (those are changes of matches you do not follow). Keep the highest seq you have received. When the socket drops, reconnect with a short backoff and subscribe again with since:

{"action": "subscribe", "event_ids": [123456, 123457], "since": 918301}

Instead of snapshots you receive every change after that seq (as update frames with "replay": true), then live updates continue. If since is older than 6 days you get cursor_expired and fresh snapshots. Connections are kept alive with pings every 20 seconds.

REST#

Same host and token as the socket. Responses are JSON.

REST: changes#

GET https://sports.bzzoiro.com/ws/odds-stream/changes/?cursor=918301&events=123456,123457
GET https://sports.bzzoiro.com/ws/odds-stream/changes/?cursor=918301&league=1
GET https://sports.bzzoiro.com/ws/odds-stream/changes/?cursor=918301&limit=5000

Every change after cursor, oldest first. Filter by events (up to 50) or league; with neither, everything. limit is 1,000 by default and at most 5,000. Pass next_cursor back as cursor until has_more is false.

{
  "changes": [
    {"event_id": 123456, "seq": 918302, "market": "1x2", "period": "ft", "line": null,
     "outcome": "home", "bookmaker": "Bookmaker name", "bookmaker_id": 16, "odds": 1.66, "prev": 1.62,
     "at": "2026-12-04T18:31:12Z", "live": true, "minute": 38, "score": [1, 0]}
  ],
  "next_cursor": 918302,
  "has_more": false
}

live, minute and score are the state of the match when the change was seen. A cursor older than 6 days returns 410.

REST: snapshot#

GET https://sports.bzzoiro.com/ws/odds-stream/snapshot/?events=123456,123457

The current board of up to 50 matches, with the seq to continue from:

{"seq": 918301, "events": [
  {"event_id": 123456, "match": {"status": "notstarted", "minute": null, "score": null},
   "prices": [{"market": "1x2", "period": "ft", "line": null, "outcome": "home",
               "bookmaker": "Bookmaker name", "bookmaker_id": 16, "odds": 1.62, "at": "2026-12-04T18:31:07Z"}]}
]}
Status Meaning
400 Missing cursor (changes) or events (snapshot)
402 / 403 No Odds Pro / bad token
410 cursor older than the 6-day window: take a new snapshot
429 More than 60 requests in a minute

Coming next#

Included in Odds Pro as they ship:

  • Full line-movement history for backtesting: every recorded change per match, bookmaker and market, opening to close, beyond the 6-day window.
  • More markets on the same message format (double chance, draw no bet, European handicap, correct score).
View this page as Markdown · Found a mistake? Tell us