Euro365 Sports Odds API

Real-time pre-match and live odds, scores, and event data for 25+ sports. Authenticate with an API key, then consume via REST, WebSocket, or the legacy RDSTN passthrough.

Also available on the RapidAPI marketplace — same endpoints, monthly card billing. Subscribe via RapidAPI ›

New — Match Explorer. Pick any live event and see every API call needed to integrate it end-to-end — fixture, markets, odds, WebSocket subscribe, scores. Every match has a shareable permalink: https://api.euro365.bet/docs/explore?event=<id>. Open Explorer →

Base URL

https://api.euro365.bet

How integration works

  1. Request an API key from the operator (see Support).
  2. Send the key as the X-API-Key header on every request.
  3. Pull periodic snapshots with REST, or open a single WebSocket for push updates.
  4. For drop-in compatibility with existing RDSTN-based backends, POST to /rdstn.
Tip Use REST for occasional reads and WebSocket for live-update fan-out. The WebSocket sends a full event-list snapshot on connect (fixtures, scores, status — no prices), so REST is not needed to bootstrap your event index. For the actual prices, always call GET /v1/odds?ids=… — the WebSocket frames are your refresh trigger, not the price payload.

Quickstart — 60 seconds #

# 1. List sports that currently have events
curl -H "X-API-Key: $KEY" https://api.euro365.bet/v1/sports

# 2. Pull all live soccer events
curl -H "X-API-Key: $KEY" "https://api.euro365.bet/v1/live?sport=1"

# 3. Pick an event id from the response, fetch its odds
curl -H "X-API-Key: $KEY" "https://api.euro365.bet/v1/odds?ids=s2-43.133873042"

# 4. Cheap liveness probe
curl -H "X-API-Key: $KEY" https://api.euro365.bet/v1/status

That's the whole integration. Read on for response shapes (Event object, Odds shape) and for the push-update WebSocket if you need sub-second updates.

Integrate with an AI agent #

The whole contract on this page is also published as one machine-readable file, /docs/agent.md (indexed in /llms.txt). It is written for coding agents: auth and limits, the event and odds shapes with the exact decoding rules, scores, the WebSocket and the push relay, settlements under the binding policy, the tracker widget, a build plan and acceptance tests. Give your agent this one line and it can build the integration end to end:

Read https://api.euro365.bet/docs/agent.md and integrate the Euro365 Sports Odds API into this project end to end: the live and pre-match event index, odds decoding (price/100, line keys, suspension flags) with the market dictionaries, scores, the WebSocket as the refresh trigger, and settlements after full time under the settlement policy. My API key is in the env var EURO365_API_KEY.

Works with Claude Code, Cursor, GitHub Copilot, ChatGPT, Gemini, Windsurf, Aider — anything that can fetch a URL. For an agent without web access, download the spec into the repo and tell it to read the file:

# then: "Read EURO365_AGENT.md and integrate the Euro365 Sports Odds API into this project"
curl -sL https://api.euro365.bet/docs/agent.md -o EURO365_AGENT.md
Instructions for any AI agent reading this page Fetch https://api.euro365.bet/docs/agent.md and follow its Plan section in order — dictionaries, event index, prices, scores, then settlement. Prices are integers you divide by 100; any outcome with a non-zero flag or a line with s: 1 is locked; the WebSocket carries events, not prices, so re-call /v1/odds on every live_update; batch at most 100 ids; hold at most 5 WebSocket connections per key from the backend; never expose the API key client-side. Ask the operator once for anything the brief leaves to them (stack, sports, polling vs push, sandbox key), then proceed.

Sandbox Mode FREE #

Every account includes a sandbox API key (ek_test_...) for risk-free testing. No credit card required.

Sandbox features
  • 100K EUR virtual test balance
  • Full API access — all endpoints work identically to production
  • Webhook callbacks fire with "sandbox": true flag
  • 60 requests/minute, no charges, no expiration

How to use

  1. Log in to the Portal and copy your sandbox key from the dashboard.
  2. Use it exactly like your live key — pass it as X-API-Key header.
  3. Your webhook endpoint receives callbacks with an extra "sandbox": true field.
  4. When ready for production, switch to your live ek_... key.
# Test with your sandbox key
curl -H "X-API-Key: ek_test_your_sandbox_key_here" https://api.euro365.bet/v1/sports

# Webhook callback will include:
# { "event": "odds_update", "sandbox": true, ... }

Authentication #

Every authenticated request must include your API key. Two equivalent ways:

Header (recommended)

X-API-Key: ek_yourapikeyhere

Query string

?api_key=ek_yourapikeyhere

The key is also accepted on the WebSocket handshake as a query parameter (wss://api.euro365.bet/ws?api_key=…).

Keep keys server-side Never embed your API key in browser JavaScript or mobile binaries. Proxy from your backend.

Errors

  • 401 Invalid or disabled API key — missing, unknown, or admin-disabled key.
  • 429 Rate limit exceeded — see rate limits.

Rate limits #

Limits are per API key, evaluated over a rolling 60-second bucket. No rate limit while your key has credit: all plans get the same unlimited request rate and the same live speed (a 1,000,000 req/min abuse guard stays in place). Only REST calls are charged (€0.0002 each); WebSocket pushes are free and not counted. If credit runs out, the key drops to the free tier (10 requests/minute) and data calls return HTTP 402 wallet_empty until the next top-up. Sandbox keys (ek_test_...): free and unlimited in time, 60 requests/minute.

When the bucket is full the server replies with HTTP 429 and a JSON body:

{
  "error": "Rate limit exceeded",
  "limit": 60,
  "window": "60s",
  "retry_after": 37
}

The retry_after value is seconds until the current minute bucket resets. Back off, then retry — do not hammer.

WebSocket connection limit

A single API key may hold up to 5 concurrent WebSocket connections. Additional handshakes are closed with {"error":"Too many WebSocket connections for this API key"}. Pool connections in your backend rather than opening one per worker.

Error model #

Successful responses return HTTP 200 with a JSON body containing "success": true and a "data" field. Errors return a non-2xx status with an "error" string.

StatusMeaningWhat to do
400Missing or malformed parameter (e.g. no ids).Check the parameter table for the endpoint.
401Invalid or disabled API key.Verify the key, contact support if it should be active.
404Resource not found (unknown event id).Re-fetch from /v1/live or /v1/prematch.
429Rate limit exceeded.Honor retry_after.
500Server error.Retry with exponential backoff; report if persistent.

Example error bodies

// 400 — missing parameter
{ "error": "Missing ids parameter" }

// 401 — bad key
{ "error": "Invalid or disabled API key" }

// 429 — see Rate limits section for full body
{ "error": "Rate limit exceeded", "limit": 60, "window": "60s", "retry_after": 37 }

REST endpoints #

All REST endpoints require authentication unless noted. Responses are JSON unless noted.

GET/v1/sports
List sports that currently have live or pre-match events, with counts.
Example response
{
  "success": true,
  "data": [
    { "id": 1, "name": "Soccer", "live_count": 128, "prematch_count": 3142 },
    { "id": 2, "name": "Basketball", "live_count": 22, "prematch_count": 410 }
  ]
}
GET/v1/live
All live events, optionally filtered to a single sport.
Query parameters
sportintegerSport ID (see reference). Omit for all sports. optional
Example
curl "https://api.euro365.bet/v1/live?sport=1" \
  -H "X-API-Key: ek_yourapikeyhere"
Response — with ?sport=N (flat)
{
  "success": true,
  "ts": 1779281235365,
  "sport": 1,
  "data": {
    "s2-43.133873042": { /* event object */ },
    "s2-43.133874666": { /* event object */ }
  }
}
Response — without sport (grouped by sport)
{
  "success": true,
  "ts": 1779281235365,
  "sport": null,
  "data": {
    "1": { "s2-43.133873042": { /* event */ }, /* … */ },
    "2": { /* basketball events */ },
    "5": { /* tennis events */ }
  }
}

ts is the unix-ms timestamp of the last upstream refresh. See Event object for the per-event payload.

GET/v1/prematch
All upcoming pre-match events, optionally filtered to a single sport.
Query parameters
sportintegerSport ID. Omit for all sports. optional

Response shape mirrors /v1/live but without the ts field.

GET/v1/event Try it live →
Look up a single event by ID across live and pre-match.
Query parameters
idstringEvent ID. Accepts the full key (s2-43.133873042) or just the numeric tail (133873042). required
sportintegerNarrow search to one sport (slightly faster). optional
Example
curl "https://api.euro365.bet/v1/event?id=s2-43.133873042" \
  -H "X-API-Key: ek_yourapikeyhere"
Response
{
  "success": true,
  "data": { /* event object — see Event object reference */ }
}

Returns HTTP 404 + { "error": "Event not found" } if the id is unknown.

GET/v1/odds Try it live →
Bulk lookup of market odds for one or more events.
Query parameters
idsstringComma-separated list of event IDs (max 100 per request). required
Example
curl "https://api.euro365.bet/v1/odds?ids=s2-43.133873042,s2-43.133874666" \
  -H "X-API-Key: ek_yourapikeyhere"
Response shape
{
  "success": true,
  "data": {
    "s2-43.133873042": {
      "1001": {                          // market group id (1001 = soccer Match Result / 1X2)
        "s": {                            // line key — "s" = single line; "s<line>" = AH/total rung (e.g. "s+0.5", "s2.5"); "s<h>:<a>" = correct-score / HT-FT
          "2001": [125, 0, null, 1779279999726], // outcome 2001 (Home) — price 1.25
          "2002": [550, 0, null, 1779279999726], // outcome 2002 (Draw) — price 5.50
          "2003": [1300, 0, null, 1779279999726],// outcome 2003 (Away) — price 13.00
          "s":  0,                           // 0 = open, 1 = suspended
          "ls": 1779279999726                // last-seen unix ms (line-level)
        }
      },
      "1004": {                          // another market group — see "Market groups" below
        "s0:3": { /* outcomes + s + ls */ },
        "s0:4": { "ls": 1779280144053 }    // empty line — last seen only, no current prices
      }
    }
  }
}
Decoding the outcome tuple

Each outcome is a 4-element array [price, flags, special, ts]:

IndexFieldMeaning
0priceDecimal odds × 100. Divide by 100 to render: 125 → 1.25, 1300 → 13.00.
1flagsBitfield. 0 = open. Non-zero values flag suspensions / placeholder rows; treat any non-zero as “do not accept”.
2specialLine value for handicap / total markets (e.g. "-1.5", "+0.5", "2.5"), auto-populated from the line-key suffix. null for plain markets (1X2, BTTS, DC, etc.) and for the bare "s" single-line key.
3tsUnix-ms timestamp of the last price change for this outcome.
Line keys

The line key encodes which rung of a multi-line market the prices belong to. Three shapes:

  • "s" — the single / main line. Used for 1X2, BTTS, Double Chance, DNB, and the consolidated main line of AH (1005) and Goals O/U (1007). special is null.
  • "s<line>" — handicap / total rungs: "s+0.5", "s-0.25", "s2.5", "s-1.25". Strip the leading s to read the line value; the same string is mirrored in the outcome special field. Used by Asian Handicap by-line (1011), Goals O/U ladders (1018), 1H Asian HC (1054), Total O/U (1080), and similar.
  • "s<home>:<away>" — per-scoreline keys for Correct Score / HT-FT-style markets (1004, 1012): "s0:0", "s2:1", "s0:3", etc. Not a numeric line; special carries the literal scoreline (e.g. "2:1").

Empty line objects (only ls, no outcomes) mean the rung is known to exist upstream but currently has no priced outcomes — skip them.

Suspended events A market with s: 1 (or every outcome's flag != 0) is locked — render it greyed out and reject bet attempts. Suspensions are common during goals / VAR / corner kicks and typically clear within a few seconds.
GET/v1/scores
Current scores for all known events (live and recently finished). Cheaper than /v1/live when all you need is the scoreboard.
Example
curl https://api.euro365.bet/v1/scores \
  -H "X-API-Key: ek_yourapikeyhere"
Response
{
  "success": true,
  "data": {
    "s2-43.133842454": { "home": 2, "away": 1, "status": "ended",  "ts": 1779220746925, "clock": "90:00", "ms": 90, "period": "Finished", "match_length": 90, "kickoff": 1779215100 },
    "s5-18921619":    { "home": 87, "away": 83, "status": "ended", "ts": 1779223562305, "kickoff": 1779216000 },
    "s2-43.133873042": { "home": 1, "away": 0, "status": "live",   "ts": 1779281000000, "clock": "48:34", "ms": 48, "period": "Second Half", "match_length": 90, "injury_time": 3, "kickoff": 1779278100 }
  }
}
FieldTypeMeaning
homeintegerHome team score (goals, points, sets, etc — sport-dependent).
awayintegerAway team score.
statusstringOne of: "live" (in-play), "ended" (final), "scheduled" (not started).
tsintegerUnix-ms timestamp of the last time the feed wrote this row. For live events it advances on every poll (about every 8 s) whether or not the score changed, so it is an observation time, not a score-change time. To know how long a score has stood, keep your own record per fixture or use inplay_final, whose observer does exactly that (SCORE_TS_SEMANTICS_V1, 2026-10-20).
kickoffintegerScheduled kickoff time, unix seconds. Present for every event we’ve seen in the live feed at least once.
clockstringElapsed match time in MM:SS (from upstream match clock). Optional — some sports / prematch entries don’t carry it.
msintegerElapsed minute of the match (integer floor of clock). Same semantics as the ms field on event objects. Optional.
periodstringHuman-readable period label from upstream, e.g. "First Half", "Second Half", "Half Time", "1st Set", "Finished". Optional.
match_lengthintegerRegulation match length in minutes (e.g. 90 for soccer, 40 for basketball). Use with ms to compute time remaining. Optional.
injury_timeintegerDerived stoppage-time minutes for the current half: max(0, ms − halfRegulationEnd). Emitted only when period is "First Half" / "Second Half". E.g. ms=93, period="Second Half", match_length=90 → injury_time=3. Reflects elapsed overshoot — not the referee’s announced added time, which upstream does not publish. Optional.
injury_time_announcedintegerReferee-announced added-time minutes as displayed on the fourth official’s board (the +3 shown on TV overlays). Sourced from a secondary provider (API-Football) for a limited set of covered soccer leagues — when this field is absent, no announcement has been made yet or the fixture is outside our covered leagues. Independent of and complementary to injury_time; typical UI: render ms + ‘+’ + injury_time_announced once available. Optional.
About injury_time — elapsed, not announced This is a client-side derivation of "how many minutes past the regulation half-end the match clock has ticked" — it grows every 60 seconds while the ball keeps rolling past minute 45 (or 90). It does not represent the referee’s announced added-time board (the +3 displayed in TV overlays), because the upstream feed does not publish that value on any channel (REST or WebSocket). If the ref announces +4 but only 2 minutes have elapsed so far, you’ll see injury_time: 2, not 4. Most consumer widgets render this as 90+2’ in the score header, which matches wall-clock. If you need the referee-announced total, use injury_time_announced (added below) — it is populated for a limited set of covered soccer leagues via a secondary provider and is absent outside that coverage.
GET/v1/settlements
Per-outcome win / lose / void / pending results for ended events. The engine is deterministic from the final score — for every market line that was active on a finished event, the response tells you how each outcome resolved. Use this to settle bets you accepted against our pricing.

V1 coverage (full-time score-derivable markets):

  • 1X2 / Match Winner, Double Chance, Draw No Bet
  • Total Goals Over/Under, Asian Total, Odd / Even, Goal-band markets
  • Both Teams To Score (BTTS)
  • Correct Score (incl. "other")
  • European Handicap and Asian Handicap (whole / half lines; quarter lines marked void in V1)
  • Home/Away Team total goals (O/U, Exact, O/E)
  • 1X2 + BTTS combos and 1X2 + Totals combos

Currently pending in V1 (engine returns pending with a reason string — you'll need to settle these client-side, or wait for the V2 endpoint):

  • 1st-half / 2nd-half / HT-FT / Highest-Scoring-Half markets (need half-time score — coming in V2)
  • Corner, card, free-kick, shot, foul and other stat-driven markets (need detailed match stats — coming in V3)
  • Scorer markets, "Last team to score", "Wins the rest of the match" (need play-by-play data)
Query parameters
ParamTypeRequiredDescription
idsstringyesComma-separated list of event ids (max 100). Aliases: event_id, fixture_id.
include_inplaybooleannoWhen 1, also settle live events for outcomes that are mathematically locked at the current score (Over X.Y the moment total > X, BTTS yes the moment both teams have scored, Correct Score lose the moment actual exceeds prediction in either dimension, etc.). Flippable markets (1X2 / DC / DNB / Handicap / AH / Combos) stay pending until FT. Each event's response carries a mode field ("final" or "inplay") so you can distinguish. In-play results are a provisional preview, not a payment authorisation (INPLAY_PROVISIONAL_DOC_V1): on a live fixture settlement_status stays pending (see §1a), only lines currently on the live odds board are returned, and a locked result can revert (VAR, abandonment). Pay only from the mode: "final" response after full time, whatever the bet's placement time.
inplay_finalbooleannoDefinitive in-play settlement INPLAY_FINAL_V1 · football phase 1 · Settlement Plus. When 1, every live football fixture carries an inplay_final block whose locked[] lists the outcomes that are definitively settled at the confirmed live score (a score must stand unchanged for confirm_window_s = 120 s before it locks anything; see score_confirmed / confirm_in_s). Each entry: market_id, market, line, line_key, outcome_id, outcome, result (win / lose / void), basis (full_match or first_half), locked_at, score_at_lock. Verdicts are evaluated on a fixed line ladder (not only the lines on the live board), persisted 72 h and never withdrawn: they stand if the match is abandoned later, and a later score reversal is reported as disputed:true + corrections[], never by flipping the verdict. You may pay locked[] entries before full time; everything else still follows §1a. Scope and rules: §8. Other sports return sport_supported:false. Needs the settlements_plus permission (403 otherwise).
Example
curl "https://api.euro365.bet/v1/settlements?ids=s2-43.134044570" \
  -H "X-API-Key: ek_yourapikeyhere"
Response (for a 1-1 final result)
{
  "success": true,
  "version": "v1",
  "policy_url": "https://api.euro365.bet/docs/#settlement-policy",
  "data": {
    "s2-43.134044570": {
      "fixture_id": "s2-43.134044570",
      "status":     "ended",
      "score":      { "home": 1, "away": 1 },
      "settled_at": 1779687757000,
      "coverage":   { "covered": 192, "void": 14, "pending": 67, "markets": 25 },
      "markets": {
        "1001": {                                   // 1X2
          "name": "1x2",
          "lines": {
            "s": {
              "line": null,
              "outcomes": {
                "2001": { "name": "1", "result": "lose" },
                "2002": { "name": "x", "result": "win"  },
                "2003": { "name": "2", "result": "lose" }
              }
            }
          }
        },
        "1018": {                                   // Total Goals O/U - all lines
          "name": "Total Goals - Over / Under",
          "lines": {
            "s2.5": { "line": "2.5", "outcomes": { /* over=lose, under=win */ } },
            "s1.5": { "line": "1.5", "outcomes": { /* over=win,  under=lose */ } }
          }
        },
        "1003": {                                   // Correct Score
          "name": "Anytime Correct Score",
          "lines": { "s": { "outcomes": { /* "1:1" = win, everything else = lose */ } } }
        },
        "1009": {                                   // Draw No Bet — voids on a draw
          "name": "Draw No Bet",
          "lines": { "s": { "outcomes": {
            "2001": { "name": "1", "result": "void", "reason": "push" },
            "2003": { "name": "2", "result": "void", "reason": "push" }
          } } }
        },
        "1128": {                                   // Total Corners — pending in V1
          "name": "Total Corners - Over / Under",
          "lines": { "s9.5": { "outcomes": {
            "2472": { "name": "over",  "result": "pending", "reason": "match stats not yet published" },
            "2473": { "name": "under", "result": "pending", "reason": "match stats not yet published" }
          } } }
        }
      }
    }
  }
}
Result values
ResultMeaningHow to pay out
winOutcome was correct against the final score.Pay out at the offered price.
loseOutcome was incorrect.Keep the stake.
voidPush, suspended at last read, or Asian-quarter half-line. reason explains why.Refund the stake (price = 1.00).
pendingEngine can't resolve this market from final score alone. reason explains what's missing.Settle client-side, or wait for V2 / V3 to expand coverage.

Read the binding Settlement Policy below for tie-breaking rules, abandoned matches, VAR reversals and dispute handling.

Settlement Plus — enriched coverage #

Base v1 settles roughly the score-derivable ~17% of soccer market types automatically (mainstream 1x2, Total Goals, BTTS, Handicap, Asian Handicap, Correct Score, Draw No Bet, Clean Sheet, Winning Margin, and their combos — usually 85–95% of retail turnover). Everything else — halftime, stat and player markets — returns pending.

Settlement Plus is an opt-in add-on (€69/month, cancel any time from the portal) that layers an enrichment pass on top of v1, filling pending outcomes from an authoritative match-stat feed:

  • Halftime, period & HT/FT markets — 1st Half 1x2, HT Total Goals, HT/FT combined, Highest Scoring Half, Both Halves To Score, HT Correct Score
  • Stat markets — Corners, Cards, Yellow Cards, Shots, Shots on Target, Fouls, Offsides, Saves, Tackles, Throw-Ins — totals + per-team + per-half variants + 3-way + Race-to-Nth-Corner
  • Scorer & timed goal markets — Anytime Goalscorer, First / Last Goal Scorer, Multi Scorers, Player To Score 2+, Player To Score In First / Second Half, Player To Assist, Player To Score or Assist, "Nth goal will be scored till minute X" families, 1x2 Till Nth Minute
  • Chronology & combos — First / Last Team To Score, Home/Away Wins From Behind, 1x2 & BTTS, 1x2 & Totals, Both Teams To Score In Both Halves, To Win Either / Both Halves, Race To N Goals
  • Bonus — unlocks the GET /v1/stats endpoint (possession, xG, shot map, incident feed with player names) for widget and match-page use

Enrichment is transparent: same endpoint, same response shape. When it fires, an _enriched block appears alongside coverage, telling you how many pending outcomes got resolved:

{
  "fixture_id": "s2-43.139088353",
  "status": "ended",
  "coverage":   { "covered": 533, "void": 72, "pending": 194, "markets": 65 },
  "_enriched":  {                                // only present for Settlement Plus subscribers
    "attempted":  true,
    "matched":    true,
    "confidence": 1.0,                    // team-name match confidence 0-1
    "filled":     325                     // pending outcomes resolved by the enricher
  },
  "markets": { /* per-outcome result as before */ }
}

Real numbers from a mid-tier fixture (UEFA Nations League, 65 markets, 799 priced outcomes):

LayerOutcomes settled% of total
v1 alone (win/lose + void)28035%
+ Settlement Plus enrichment+325+41 pp
Combined coverage60576%
Remaining pending19424%

The residual 24% is player prop O/U on players who don't appear in incidents (Player Shots, Player Passes), in-play-only markets ("Next 10 Minutes Total") and sportsbook-specific codes we don't map. Enrichment is fail-safe: if the stat provider is unreachable or a fixture doesn't match, the response falls back to raw v1 output exactly — you never lose coverage you already had.

Enable Settlement Plus: log in to the portal, top up your wallet, and click Subscribe on the Settlement Plus card. Charged from your wallet as a flat €69 every 30 days; auto-renews while your balance covers it. Cancel any time — enrichment stays active until the paid period ends.

GET/v1/stats
Rich in-match statistics for widget and match-page rendering: possession, xG, shot map, corners, cards, incident feed with player names. Same event id as everywhere else. Requires the settlements_plus permission (Settlement Plus add-on).
Example
curl "https://api.euro365.bet/v1/stats?id=s2-43.139088353" \
  -H "X-API-Key: ek_yourapikeyhere"
Response (soccer, in-progress)
{
  "success": true,
  "event": {
    "id":            "s2-43.139088353",
    "home":          "Andorra",
    "away":          "Malta",
    "status":        "inprogress",       // inprogress | finished | notstarted | canceled
    "status_detail": "2nd half",
    "home_score":    1,
    "away_score":    1,
    "period_scores": {
      "1st": { "h": 1, "a": 1 },
      "2nd": { "h": 0, "a": 0 },
      "ot":  { "h": null, "a": null },
      "pen": { "h": null, "a": null }
    },
    "tournament": "UEFA Nations League, League D, Gr. 1",
    "confidence": 1.0
  },
  "statistics": {                                // per-period buckets: ALL / 1ST / 2ND
    "ALL": {
      "Ball possession":   { "h": "38%", "a": "62%" },
      "Expected goals":    { "h": 0.53, "a": 1.00 },
      "Total shots":       { "h": 8,     "a": 7     },
      "Shots on target":   { "h": 2,     "a": 2     },
      "Corner kicks":      { "h": 3,     "a": 2     },
      "Yellow cards":      { "h": 2,     "a": 1     },
      "Fouls":             { "h": 18,    "a": 8     }
      // ~44 items per bucket: possession, shots (total/on/off/blocked/inside/outside),
      // corners, cards, fouls, offsides, tackles, throws, saves, passes,
      // dribbles, aerial duels, big chances, xG on target, hit woodwork, ...
    },
    "1ST": { /* same shape, first-half only */ },
    "2ND": { /* same shape, second-half only */ }
  },
  "incidents": [                                // chronological game events with player names
    { "type": "goal",         "minute": 17, "isHome": true,  "player": "Guillaume Lopez", "assist": null },
    { "type": "goal",         "minute": 36, "isHome": false, "player": "Irvin Cardona",   "assist": null },
    { "type": "card",         "minute": 54, "isHome": true,  "player": "Gerard Sola Garcia", "cardColor": "yellow" },
    { "type": "substitution", "minute": 67, "isHome": true,  "playerIn": "...", "playerOut": "..." },
    { "type": "period",       "minute": 45, "isHome": false }
  ]
}
Caching & freshness

Live events are cached for 60 seconds; ended events for 24 hours. First call on a new event round-trips to the stat provider (~1–2s); every subsequent call to /v1/stats or /v1/settlements on the same fixture hits the cache and returns in <20ms. If the fixture doesn't have a match on the stat provider (obscure lower league, women's regional, some Asian domestic) the endpoint returns {"success": false, "error": "no fixture match"}.

GET/v1/status
Aggregate counters and last refresh timestamp. Use this as a cheap liveness probe.
{
  "success": true,
  "live_events": 312,
  "prematch_events": 9874,
  "last_update": 1747300000000
}
GET/v1/streams
Live TV (add-on). Lists every event that currently has a live video stream attached, plus tournament-wide rules. Poll it about once a minute to draw a 📺 icon on those matches. Requires the stream permission on your key.
{
  "success": true,
  "ts": 1789307424000,
  "events": { "s2-43.138595051": { "ch": 331, "name": "Sky Sport 1 HD | DE" } },
  "tournaments": { "203": { "ch": 595, "name": "Sky Sport Bundesliga 1 HD | DE", "tournament": "Bundesliga" } }
}
/v1/event also returns "stream": true|false on every event object, whatever your plan.
GET/v1/stream?id={event_id}
Live TV (add-on). Returns signed, short-lived player URLs for one event. Call it from your backend after you have checked the viewer is a logged-in customer (that is your gate — typically a positive balance or a bet on the match), then hand the URL to the browser. Links expire after ~15 minutes (expires_at, unix seconds); request a new one when a user (re)opens the match. Optional ttl (60–3600 s).
{
  "success": true,
  "available": true,
  "event_id": "s2-43.138595051",
  "channel": { "id": 331, "name": "Sky Sport 1 HD | DE" },
  "embed_url": "https://livestream.euro365.bet/embed/331.1789307424.5836b3ef.ef8e…",
  "ws_url":    "wss://livestream.euro365.bet/ws/331.1789307424.5836b3ef.ef8e…",
  "hls_url":   "https://livestream.euro365.bet/hls/331.1789307424.5836b3ef.ef8e…/index.m3u8",
  "expires_at": 1789307424
}
Easiest integration: <iframe src="{embed_url}" allow="autoplay; fullscreen" allowfullscreen></iframe> — a ready player (WebSocket MPEG-TS via MSE, ~1–2 s latency, automatic HLS fallback on iPhone). Own player: ws_url is raw MPEG-TS over WebSocket (play with mpegts.js); hls_url is standard HLS (hls.js / native Safari). When the event has no stream you get "available": false (HTTP 200); HTTP 503 means the relay is at capacity right now.
GET/v1/markets
Full dictionary mapping market-group IDs and outcome IDs to human-readable names — currently 4,873 markets / 17,227 outcomes across 25 sports. Refreshed hourly from the upstream catalog; cache the response client-side. Upstream short-code names (e.g. TG_O/U, HT_TG_O/U, 1x2_T20MM) are auto-translated to friendly English (e.g. “Total Goals - Over / Under”, “Home Team - Total Goals - Over / Under”, “1x2 - Till The 20th Minute Of The Match”) — the raw code is preserved in a separate code field so you can still display or correlate it. Use /v1/market-groups for the UI tab/category layout (Goals, Teams, Halves, Corners, Cards, Interval, etc.).
Query parameters
ParamTypeRequiredDescription
sportintnoRestrict the dictionary to markets used by a single sport (see Sport IDs). Soccer-only client → ?sport=1 returns ~550 markets instead of the full 4,873.
nested0/1noWhen 1, the response also includes data.markets_full with outcomes scoped per market — useful when an outcome id appears in several markets with different meaning. Implies groups=1 when combined with ?sport=.
groups0/1noWhen 1 and combined with ?sport=, every market in markets_full carries a groups field listing the UI tab keys it belongs to (e.g. main, goal, team, interval) for both prematch and live contexts. Sport filter is required because groups are sport-scoped.
langstringnoLocalize market + outcome names into one of 24 supported languages: en (default), de, it, fr, es, sq, me, tr, el, sr, zh, pt, ru, da, sv, bn, bg, pl, ro, cs, hu, sk, nl, et. Unknown values fall back to en. The response echoes back the resolved language in data.lang. See Localization for scope details.
Example
# full catalog (default — every sport, English)
curl https://api.euro365.bet/v1/markets \
  -H "X-API-Key: ek_yourapikeyhere"

# soccer-only, nested form
curl "https://api.euro365.bet/v1/markets?sport=1&nested=1" \
  -H "X-API-Key: ek_yourapikeyhere"

# soccer-only in German — market + outcome names localized
curl "https://api.euro365.bet/v1/markets?sport=1&lang=de" \
  -H "X-API-Key: ek_yourapikeyhere"
# {"data":{"lang":"de","markets":{"1018":"Gesamttore - Über / Unter",…},
#                    "outcomes":{"2081":"über","2082":"unter",…}}}
Response
{
  "success": true,
  "data": {
    "sport": 1,                                  // only present when ?sport= is passed
    "markets": {                                // mid → friendly name (always present)
      "1001": "1x2",
      "1005": "Asian Handicap",
      "1018": "Total Goals - Over / Under",
      "1019": "Both Teams To Score"
      /* … hundreds more */
    },
    "codes": {                                  // mid → raw upstream short-code (only for markets where upstream
      "1480": "TG_O/U",                          //   shipped a short-code — `markets[mid]` shows the translated
      "8856": "TG_O/E"                           //   friendly form, `codes[mid]` keeps the original tag)
      /* … up to ~720 entries fleet-wide */
    },
    "outcomes": {
      "2001": "1",
      "2002": "X",
      "2003": "2",
      "2081": "over",
      "2082": "under"
      /* … */
    },
    "markets_full": {                            // only present when ?nested=1 (or ?groups=1)
      "1018": {
        "name": "Total Goals - Over / Under",
        "groups": {                              // only when ?sport= is also set
          "prematch": ["main", "goal"],
          "live":     ["main", "goal"]
        },
        "outcomes": { "2081": "over", "2082": "under" }
      },
      "1480": {                                  // example of a short-code market that got translated
        "name": "Total Goals - Over / Under",
        "code": "TG_O/U",                        // raw upstream code preserved here
        "groups": { "prematch": ["main"], "live": ["main"] },
        "outcomes": { "…": "…" }
      }
      /* … */
    }
  }
}

Rendering tip: use markets[mid] (or markets_full[mid].name) as the label your end users see. The code / codes[mid] field is for debugging, correlation, or compact UI badges — e.g. Total Goals - Over / Under [TG_O/U]. About 720 of the 4,873 markets carry a code; the rest have only the friendly name.

Conditional requests

The endpoint emits a weak ETag and honours If-None-Match, returning 304 Not Modified with an empty body when the catalog hasn’t changed since your last fetch. Recommended for clients that poll — you only pay the bandwidth when the dictionary actually updates.

curl -sI "https://api.euro365.bet/v1/markets" -H "X-API-Key: …"
# ETag: W/"eba4-…"

curl -i "https://api.euro365.bet/v1/markets" \
  -H "X-API-Key: …" \
  -H 'If-None-Match: W/"eba4-…"'
# HTTP/2 304

See Market & outcome dictionary for a quick-glance table of the most common IDs.

GET/v1/market-groups
The UI tab/category layout for each sport — which markets belong under the Main, Goals, Halves / Periods, Handicap, Teams, Combo, Corners, Cards, Score, Goal Scorers, Player, Interval, Specials tabs. Drives the tab strip on event pages so clients don’t have to hard-code groupings. Soccer ships 13 prematch tabs / 15 live tabs; coverage spans 83 sport-context buckets in total.
Query parameters
ParamTypeRequiredDescription
sportintnoReturn the layout for a single sport. Omit to receive all sports keyed by sport id (heavier — only do this once at startup).
langstringnoLocalize tab names into one of 24 supported languages: en (default), de, it, fr, es, sq, me, tr, el, sr, zh, pt, ru, da, sv, bn, bg, pl, ro, cs, hu, sk, nl, et. Unknown values fall back to en. See Localization.
Example
# soccer tab layout (English)
curl "https://api.euro365.bet/v1/market-groups?sport=1" \
  -H "X-API-Key: ek_yourapikeyhere"

# soccer tab layout in Italian
curl "https://api.euro365.bet/v1/market-groups?sport=1&lang=it" \
  -H "X-API-Key: ek_yourapikeyhere"
# {"data":{"lang":"it","prematch":[{"key":"main_markets","name":"Principali",…}]}}
Response
{
  "success": true,
  "data": {
    "sport": 1,
    "prematch": [
      { "key": "main_markets",    "name": "Main",             "markets": [1001, 1018, 1007, "…"] },
      { "key": "goal_markets",    "name": "Goals",            "markets": [1018, 1007, 1019, "…"] },
      { "key": "period_markets",  "name": "Halves / Periods", "markets": [1014, 1054, 1211, "…"] },
      { "key": "team_markets",    "name": "Teams",            "markets": [1737, 1720, 7670, "…"] },
      { "key": "interval_markets","name": "Interval",         "markets": [1505, 9912, 9914, "…"] }
      /* … 8 more tabs */
    ],
    "live": [ /* same shape, sometimes different bucket count */ ]
  }
}

Each bucket’s markets array is a list of market ids you can resolve to names via GET /v1/markets. The same market id can appear in several buckets (e.g. 1018 belongs to both Main and Goals). For the reverse lookup (given a market id, list the tab keys it belongs to) use GET /v1/markets?sport=N&nested=1 and read markets_full[mid].groups.

GET/health
Unauthenticated process health probe. Returns { "status": "ok", "uptime": <seconds> }.

WebSocket stream # Open live in Explorer →

Open one connection per backend instance to receive a snapshot followed by pushed live updates whenever the poller refreshes (≈ once per second under normal load).

The WS carries events, not prices. Both the snapshot and live_update frames deliver the event list (teams, kickoff, score, status, map bindings) using the same Event object shape — they do not include market prices. For prices, call GET /v1/odds?ids=… for the ids you care about. Treat each live_update frame as a "data ticked, refresh now" trigger.

Endpoint

wss://api.euro365.bet/ws?api_key=ek_yourapikeyhere

Messages from server

On connect — full event-list catalogue (fixtures & scores, no odds):

{
  "type": "snapshot",
  "ts": 1747300000000,
  "live": { /* eventId -> event-meta (no prices) */ },
  "prematch": { /* eventId -> event-meta (no prices) */ }
}

On each live tick — refreshed event list (no odds); call /v1/odds?ids=… on the ids you display:

{
  "type": "live_update",
  "ts": 1747300001234,
  "data": { /* eventId -> event-meta (no prices) */ }
}

Recommended integration loop

  1. Open WS → receive snapshot → render fixture list from snapshot.live / snapshot.prematch.
  2. Pick the event ids currently on screen.
  3. Call GET /v1/odds?ids=<batch> → render prices.
  4. On each live_update frame, re-call GET /v1/odds?ids=<same batch> to refresh prices. (Polling /v1/odds every 1–2 s without the WS works too — same result, slightly more bandwidth.)

Heartbeat

The server pings every 30 seconds. Standard WebSocket clients respond to ping frames automatically. If you implement a custom client, respond with a pong, or your connection will be terminated within ~60 seconds.

Connection cap Max 5 concurrent WebSocket connections per API key. Pool from your backend; do not open one per browser session.

Example (Node.js, ws)

const WebSocket = require('ws');
const ws = new WebSocket('wss://api.euro365.bet/ws?api_key=ek_yourapikeyhere');

ws.on('message', (raw) => {
  const msg = JSON.parse(raw);
  if (msg.type === 'snapshot') initState(msg.live, msg.prematch);
  else if (msg.type === 'live_update') applyUpdate(msg.data);
});

ws.on('close', () => setTimeout(reconnect, 2000));

Live push relay #

A single, low-latency fan-out of the live-odds feed. The API server maintains one aggregated source connection and rebroadcasts each frame to authenticated clients, adding ≈ 0 ms (median 0 ms, < 15 ms worst case on a LAN). Use this in preference to running many parallel direct connections from your own backends: the relay delivers the complete feed from one shared session.

Endpoint

wss://api.euro365.bet/pt-ws?api_key=ek_yourapikeyhere&protocol=v2

The protocol=v2 query parameter selects the public channel naming below. Connections without it receive a legacy naming scheme retained for older integrations.

Protocol

Binary-safe text framing. Fields are separated by the 0x1F unit-separator byte (shown below as \x1F). The framing is stable and lightweight — frame type, channel, and JSON body — so any text-aware WebSocket client can parse it.

On connect the server sends, in order: a ready signal, a synthesized full event-list snapshot per sport (so the client's channel→event index is complete immediately), then recent odds frames:

# ready
INFO\x1FPUB
# event-list snapshot / live deltas (one per sport)
P\x1Fevt:1\x1F{"<eventId>":{"map":{...},...}}
# odds frames (per event)
P\x1Fodds:5:18912496\x1F{"<marketId>":{...prices...}}

Channels

ChannelFrame bodyNotes
evt:<sportId>map of {eventId: eventObject}One channel per sport. Snapshot on connect; deltas thereafter (added / changed / deleted events). See Event object.
odds:<sportId>:<eventId>map of {marketId: marketObject}One channel per live event. Frames are full-market replacements, not patches — apply by overwrite.

All channels are pushed automatically — there is no subscribe step. The relay maintains the union of every active live event for you; you simply read from the socket.

Heartbeat

The relay answers WebSocket ping with pong. Implement exponential-backoff reconnect (1 s → 30 s); on reconnect you receive a fresh full snapshot, so no manual resync is needed.

Base prices come from /v1/odds The relay delivers the live odds delta stream only; the connect snapshot replays just the last ≈ 10 s of odds frames. Seed your event list and base prices from /v1/event + /v1/odds, then apply relay frames on top.

Example (Node.js, ws)

const WebSocket = require('ws');
const SEP = '\x1F';
const ws = new WebSocket('wss://api.euro365.bet/pt-ws?api_key=ek_yourapikeyhere&protocol=v2');

ws.on('message', (raw) => {
  const [type, channel, body] = String(raw).split(SEP);
  if (type === 'INFO' && channel === 'PUB') console.log('connected');
  else if (type === 'P') applyFrame(channel, JSON.parse(body));
});
ws.on('close', () => setTimeout(reconnect, 2000));
GET/pt-relay/health
Relay liveness and fan-out stats. No authentication; intended for internal monitoring.
{
  "upstream_ready": true,
  "downstream_clients": 5,
  "odds_channels": 80,
  "el_sports": 9,
  "el_events": 66,
  "odds_cached": 207
}

Live Match Tracker Widget #

A ready-made, drop-in match tracker served as its own HTML page and embedded via an <iframe>. Renders animated pitch/ball position, live score, timer, stats (possession, attacks, shots, corners, cards) and a running timeline (goals, cards, substitutions). Supports dark/light themes, an accent colour, hidden modules, custom team crests and a landscape layout. Requires the widget permission on your API key.

Simplest integration Log in to /portal → Widget Customizer to style the widget visually and copy an <iframe> snippet with your key baked in. The rest of this section documents the endpoints for programmatic use.

Base URL & auth

All widget endpoints live on https://api.euro365.bet. The JSON endpoints (/widget-events, /widget-data) accept the key via X-API-Key header or ?api_key=. The HTML endpoint (/widget) and the WebSocket (/ws-widget) must use ?api_key= since the browser loads them directly.

GET/widget
Returns the widget HTML page. Embed in an <iframe>.
Required query parameters
event_idstringEvent ID (full s2-43.133873042 or bare numeric 133873042). required
api_keystringYour API key with the widget permission. required
Pitch version
pitchv1 | v2v1: our 2D pitch. The ball follows the real ball position where the match has ball tracking, and otherwise the live situation (attack, dangerous attack, corner, free kick…). v2: the 3D live pitch, football only, shown only on domains enabled for 3D for your key. On any other domain, sport or match, v2 falls back to v1 automatically. Omitted = your key's default (v1 unless agreed otherwise). See Pitch versions.
Minimal embed
<iframe
  src="https://api.euro365.bet/widget?event_id=s2-43.133873042&api_key=YOUR_KEY"
  width="480" height="600" frameborder="0"
  style="border-radius:12px;overflow:hidden">
</iframe>

The iframe opens its own /ws-widget connection for real-time updates and falls back to REST polling if the socket drops. Optional theming/layout parameters are listed in Customization params.

Errors
400Missing event_id
401Invalid or disabled API key
403Widget permission required
GET/widget-events
List every live event that currently has tracker data, so you can populate a match picker.
Example
curl https://api.euro365.bet/widget-events \
  -H "X-API-Key: ek_yourapikeyhere"
Response
{
  "success": true,
  "count": 128,
  "data": {
    "s2-43.133873042": {
      "h": "Manchester City",
      "a": "Arsenal",
      "sport": 1,
      "score": "1:0",
      "timer": 42,
      "period": "1H",
      "status": "live",
      "event_types": ["goal","yellow_card"]
    }
    /* … */
  }
}

Only events with tracker data appear here. For the full live index (including matches without tracker feeds) use /v1/live.

GET/widget-data
Fetch the current tracker snapshot for one event — useful for a REST-only integration or a poll fallback.
Query parameters
event_idstringEvent ID (full or bare numeric). required
pitchv1 | v2Optional. Same meaning as on /widget. With v2, the response also carries sa3d, a signed URL of the 3D pitch you can put in your own <iframe>. See Pitch versions.
Example
curl "https://api.euro365.bet/widget-data?event_id=s2-43.133873042" \
  -H "X-API-Key: ek_yourapikeyhere"
Response (abridged)
{
  "success": true,
  "event_id": "s9-99.756631934",
  "home_name": "Pontevedra",
  "away_name": "SD Ponferradina",
  "home_score": 1,
  "away_score": 1,
  "period": "2nd half",
  "status": "live",
  "timer": 4080,
  "ts": 1790532515328,
  "xy": [0.21, 0.44],   /* ball position, 0–1; x=0 home goal, x=1 away goal */
  "situation": "Away Dangerous Attack",
  "corner": "2:4",
  "yelc": "0:2",
  "redc": "0:0",
  "stats": { "Attacks": [41,29], "Dangerous Attacks": [18,11], "On Target": [4,1], "Off Target": [5,3], "Possession %": [58,42] },
  "sc": { "GOAL": [1,1], "CORNER": [2,4], "YELLOW_CARD": [0,2] },
  "timeline": [
    { "type": "goal", "min": 23, "team": "home", "text": "Goal - (Pontevedra)" }
  ],
  "pitch": "v1"   /* pitch version served: "v1" or "v2" */
}

For matches with tracker gaps, only the fields the upstream feed provides are returned; missing fields simply omit. Non-existent or non-live events yield { "error": "Event not found or not live" } with HTTP 200.

Situation values

situation is either null (no active phase — break, half-time, kick-off pending) or one of the strings below. The prefix is always Home or Away. Consumers should treat any unknown string as Attack so a future addition never breaks the pitch.

ValueMeaning
Home Ball Safe / Away Ball SafePossession held in the middle third, no immediate threat.
Home Attack / Away AttackSustained forward move outside the danger zone.
Home Dangerous Attack / Away Dangerous AttackAttack inside the final third / penalty area.
Home Corner / Away CornerCorner kick in progress.
Home Free Kick / Away Free KickFree kick awarded.
Home Throw-in / Away Throw-inThrow-in awarded.
Home Goal Kick / Away Goal KickGoal kick.
Home Penalty / Away PenaltyPenalty awarded.
Home Goal / Away GoalGoal just scored (held briefly then clears back to Attack/Ball Safe).
Home Kick Off / Away Kick OffKick-off / restart from centre.

Availability depends on the tracker feeding a given match. Matches without ball-tracking coverage still fill situation from statistical counters, in which case the vocabulary is limited to Ball Safe, Attack, Dangerous Attack, Corner and Goal — the other values require the ball-tracked feed.

WS/ws-widget
Push channel — receive a tracker frame every time the snapshot for a subscribed event changes.
Connect
wss://api.euro365.bet/ws-widget?api_key=YOUR_KEY&event_id=s2-43.133873042

Comma-separate multiple IDs (event_id=id1,id2) or omit event_id and pass ?mode=all to receive every tracker update. Same auth model as the REST endpoints; failed auth closes with WS code 4001 (invalid key) or 4003 (missing widget permission).

Messages from server
{"type":"connected","events":[…],"mode":"single"}Sent once on open, echoes what you're subscribed to.
{"type":"tracker","event_id":"…",…}Full snapshot with the same fields as /widget-data. Emitted on every upstream tracker change.

On open, one tracker frame is pushed for every event you subscribed to (initial state).

Messages from client

Send JSON strings to change subscriptions after open:

{ "action": "subscribe",   "event_id": "id1,id2" }
{ "action": "unsubscribe", "event_id": "id1" }
{ "action": "subscribe_all" }
Example (browser)
const ws = new WebSocket(
  "wss://api.euro365.bet/ws-widget?api_key=YOUR_KEY&event_id=s2-43.133873042");
ws.onmessage = (e) => {
  const m = JSON.parse(e.data);
  if (m.type === "tracker") render(m);
};

Pitch versions

The widget can draw the match in three ways. Choose one per embed with pitch= on /widget (and /widget-data):

ValueWhat you getCoverageCustomizable
pitch=v1Our 2D/CSS pitch, styled with the customization parameters below. The ball follows the real ball position live wherever the match has ball tracking; elsewhere it moves with the live situation (safe, attack, dangerous attack, corner, free kick, throw-in, goal kick, goal). Situation, timeline and stats come from the same feed.Football, every domainFull (theme, colors, header, pitch photo, modules)
pitch=v2SportAPI's 3D live WebGL pitch with its own look.Football, on domains enabled for 3D on your key (Live Streams add-on)Fixed (provider-controlled)
pitch=v3TifoSports Betradar LMT Plus (header + animated pitch/court + stats + timeline), served through our /sa/lmt wrapper on api.euro365.bet so the browser never sees TifoSports' origin. Defaults to a dark palette; pass theme=light on the widget URL to switch to white.Football, basketball, ice-hockey, handball, volleyball (85–100% on those sports)Theme only (theme=dark|light); other styling is Betradar's

Leave pitch out to get your key's default, which is v1 unless agreed otherwise. v2 and v3 never leave an empty frame — when the match has no coverage (wrong sport, no 3D license for the domain, or TF has no has_tracker=true for the fixture) the widget falls back to v1 and /widget-data reports the version actually served. To enable v2 on your domains or v3 for your customer id, contact support through the portal.

<iframe src="https://api.euro365.bet/widget?event_id=s9-99.756631934&api_key=YOUR_KEY&pitch=v3"
  width="780" height="460" frameborder="0"></iframe>

Customization parameters

Every option below can be passed either as a query param on the /widget URL or saved once per API key via the Portal customizer. Query params always win over saved settings, so the same key can render different flavours on different pages.

ParamValuesDefaultNotes
pitchv1 / v2 / v3key default (v1)Our 2D pitch, SportAPI 3D pitch or TifoSports Betradar LMT — see Pitch versions. The params below style v1 only; v2 and v3 are provider-controlled (except theme which v3 honours).
themedark / lightdarkBase palette.
accenthex, no #00e676Home-team colour, active tab, score highlight.
accent2hex, no #e83e1aAway-team colour.
hidecomma list—Any of stats,timeline,pitch,corners.
layoutportrait / landscapeportraitLandscape puts pitch left, stats/timeline right.
hstyleclassic, modern, compact, minimal, bold, scoreboard, neon, split, stacked, broadcastclassicHeader style variant.
hbgCSS colour / gradient—Header background override.
radiusinteger px10Border radius on cards.
fontCSS font stacksystem-uiURL-encode when passing.
home_logo / away_logoURL—Team crest images. Falls back to a solid colour bar when unset.
stadiumURL / nonetransparentPitch backdrop image. none forces transparent.
bgCSS colour / URL—Body background behind the widget.
blogo, bbg, bsizeURL / hex / 50–150—Perimeter 3D board logo, background, size %.
sportintegerauto-detectedSport ID — forces the per-sport default backdrop.
sim1 / 00Freezes live polling; only postMessage({type:"wgt-sim",…}) drives animation. Used by the demo builder.
pm, home, away, league, kickflag + strings—Pre-match overlay: when pm=1, shows a static kickoff card until the match goes live.

Portal customizer

The visual configurator at /portal → Widget Customizer lets you set every param above without touching URLs, preview the result against any live event, and copy an <iframe> snippet with your key already embedded. Settings are stored per API key and become the defaults for every /widget request — individual embeds can still override with query params.

Interactive demo Play with the widget without integrating anything at api.euro365.bet/demo — picks a live event, simulates actions, and shows the same widget you'd embed.

RDSTN LEGACY #

RDSTN is a batched, command-based wire format kept for backwards compatibility. New integrations should use REST or WebSocket instead — they are simpler, JSON-native, and fully documented above. RDSTN is documented here only for existing backends already speaking it: pointing them at api.euro365.bet is a hostname change.

POST/rdstn
Batched key resolver. Body is a JSON array of commands; response is a parallel array of results.

Request format

Body is a JSON array of [op, args] tuples. The server processes every key requested across all commands and returns a flat array where each entry maps one key to its current value.

POST /rdstn  HTTP/1.1
Host: api.euro365.bet
X-API-Key: ek_yourapikeyhere
Content-Type: application/json

[
  ["ga", ["bm1_el1", "bm1_ep1"]],
  ["g",  ["bm1_12345"]]
]

Operations

OpArgsReturns
ga / gf / g / go[key, …]One result object per key, in order.
sl—Live sport list: { sportId: "[id, name, count]", … }.
sp—Pre-match sport list: same shape as sl.

Key patterns

PatternMeaning
bm{N}_el{sportId}All live events for a sport (e.g. bm1_el1 = live soccer).
bm{N}_ep{sportId}All pre-match events for a sport.
bm{N}_slLive sport list (counts).
bm{N}_spPre-match sport list (counts).
bm{N}_{eventId}Market config for one event ID.

Example

curl https://api.euro365.bet/rdstn \
  -H "X-API-Key: ek_yourapikeyhere" \
  -H "Content-Type: application/json" \
  --data '[["ga",["bm1_el1"]]]'

Response shape:

[
  { "bm1_el1": { /* eventId: eventObject, … */ } }
]
When to use RDSTN You're porting an existing backend that already speaks the RDSTN protocol. For greenfield code, use REST or WebSocket.

Event object #

All event-bearing endpoints (/v1/live, /v1/prematch, /v1/event, /v1/odds, the WebSocket snapshot and live_update frames, and the legacy /rdstn passthrough) return events using the same compact shape. Keys are short to minimise payload size on high-frequency live streams.

Example

{
  "s2-43.133874554": {
    "c":    [66, "Georgia", 43, "ge"],
    "t":    [570, "Erovnuli Liga", 2],
    "g":    65,
    "ts":   1779278400,
    "h":    "Meshakhte Tkibuli",
    "a":    "Torpedo Kutaisi",
    "co":   1091,
    "map":  { "s2_l43.133874554": { "p": 0 } },
    "icons": {
      "home":       "https://cdn.sportapi.net/opp/v1/color/14891.png",
      "away":       "https://cdn.sportapi.net/opp/v1/color/14889.png",
      "sport":      "https://cdn.sportapi.net/sports/v1/color/1.webp",
      "tournament": "https://cdn.sportapi.net/tournaments/v1/color/570.webp",
      "country":    "https://cdn.sportapi.net/flags/v1/color/66.webp"
    },
    "s":    0,
    "ms":   0,
    "live": true,
    "sport": 1
  }
}

Field reference

FieldTypeMeaning
carrayCountry tuple: [country_id, name, source_sport_id, iso2]. Example: [66,"Georgia",43,"ge"]. Use the iso2 code for flag rendering.
tarrayTournament tuple: [tournament_id, name, priority]. priority is an upstream ordering hint (smaller = higher visibility); it is not a sport id.
gintegerGroup / display-bucket code from the upstream feed (e.g. league tier, knockout stage). Treat as opaque.
tsintegerScheduled kickoff time, unix seconds.
hstringHome team / participant name.
astringAway team / participant name.
cointegerUpstream category-order code (used internally to sort live boards). Treat as opaque.
mapobjectMarket map keyed by channel id (see Event-id format). Each value is a market block; p is the price/lock indicator (0 = available, non-zero = suspended/locked depending on builder).
iconsobjectReady-to-use image URLs for the event: home, away (team logos, PNG), plus sport, tournament, country (WebP). All hosted on cdn.sportapi.net behind Cloudflare with public, max-age=31536000, immutable — safe to cache indefinitely at the CDN and in the browser. Any field is null when the upstream doesn't supply an icon for that entity. See Icons below.
sintegerScore code. 0 means 0–0 / not started. Live scores update via the live_update WebSocket frame or by polling /v1/scores.
msintegerMatch-status / live-minute hint from the upstream feed. Optional — may be absent on pre-match events.
livebooleantrue if the event is currently in-play.
sportintegerNormalised Euro365 sport id (see Sport IDs). 1 = Soccer, 2 = Basketball, etc.

Event-id format

Event ids look like s2-43.133874554:

  • s2 — provider prefix (constant).
  • 43 — source channel id (sport stream binding).
  • 133874554 — canonical event id — unique, stable, the only part you really need.

Inside an event's map you'll see the same id with an extra binding letter:

  • s2_l43.133874554 — the live channel binding (_l).
  • s2_p43.133874554 — the pre-match binding (_p). Pre-match events often carry several map entries, one per source.

All forms are interchangeable as inputs: /v1/event?id=… and /v1/odds?ids=… accept the full key, the binding-prefixed key, or just the numeric tail.

Icons #

Every event object carries an icons block with five ready-to-use image URLs. All five point at cdn.sportapi.net, are served by Cloudflare with a one-year immutable cache, and require no authentication — drop the URL straight into an <img src="…">. Any missing entry is returned as null rather than a broken URL.

FieldFormatURL pattern
icons.homePNGhttps://cdn.sportapi.net/opp/v1/color/<file> — opaque filename per team (sometimes a numeric id, sometimes a content hash).
icons.awayPNGSame pattern as icons.home.
icons.sportWebPhttps://cdn.sportapi.net/sports/v1/color/<sport>.webp — keyed on the same sport integer that appears on the event.
icons.tournamentWebPhttps://cdn.sportapi.net/tournaments/v1/color/<tournament_id>.webp — keyed on t[0].
icons.countryWebPhttps://cdn.sportapi.net/flags/v1/color/<country_id>.webp — keyed on c[0].

You can build the non-team URLs client-side from the ids already in t, c, and sport — we include them fully-formed as a convenience so the same rendering code works for team icons (where the filename is not derivable) and the rest.

Tip Compact field names (c, t, g, co, map, h, a, s, ms) keep WebSocket frames small for high-frequency live updates. Map them to friendly names inside your client adapter.

Market & outcome dictionary

The integer keys inside /v1/odds responses (market groups at the outer level, outcome ids inside each line) resolve to human names via GET /v1/markets — 4,873 markets / 17,227 outcomes across 25 sports, refreshed hourly. About 720 markets that the upstream catalog ships as short-codes (TG_O/U, HT_TG_O/U, 1x2_T20MM, etc.) are auto-translated to friendly English at the gateway; the original code is preserved in codes[mid] / markets_full[mid].code so you can render badges like Total Goals - Over / Under [TG_O/U]. For the tab/category layout that drives the event-page tab strip (Goals, Teams, Halves / Periods, Interval, Corners, Cards, …) use GET /v1/market-groups. Cache both endpoint responses on startup; use ?sport=N if you only handle one sport (e.g. soccer returns ~550 markets, tennis ~40). The table below is just a quick-glance subset of the most common soccer markets:

Markets (soccer, sport=1)

Table regenerated from /v1/markets?sport=1 — every cell below is what the endpoint returns today, verbatim.

IDNameIDNameIDName
10011x210141st Half - 1x21018Total Goals - Over / Under
1005Double Chance10151st Half - Asian Handicap1019Total Goals - Odd / Even
1007Both Teams To Score10541st Half - Total Goals - Over / Under10201st Half - Total Goals - Asian Handicap - Over / Under
1009Draw No Bet10532nd Half - Total Goals - Asian Handicap - Over / Under1021Total Goals - Asian - Over / Under
1004Handicap10642nd Half - 1x21003Anytime Correct Score
1011Asian Handicap10121st Half / Fulltime1708Correct score (incl. other)
1010First Team To Score15021st Half - Double Chance1055First Team To Score & 1x2

Outcomes

IDNameIDNameIDNameIDName
200112004Over2008Odd2058Away
2002X2005Under2009Even2075Over
200322006Yes2057Home2076Under
20371207712310Over3057Yes
2038X207822311Under3058No
203922079X2312Odd3074Over
2007No2313Even3075Under

The table above is illustrative — always fetch the live dictionary via GET /v1/markets at startup rather than hard-coding names. If an event surfaces a market id that’s missing from the endpoint response (very rare), render it with a fallback like "Market <id>" and let support know so we can add it upstream.

Localization #

Market names, outcome names, and market-group tab labels can be delivered in 24 languages via the lang query parameter. Everything else in the payload — team names, competition names, event ids, scores, prices — comes straight from the upstream feed and is unaffected.

CodeLanguageCodeLanguage
enEnglish (default)ruРусский / Russian
deDeutsch / GermandaDansk / Danish
itItaliano / ItaliansvSvenska / Swedish
frFrançais / FrenchnlNederlands / Dutch
esEspañol / SpanishplPolski / Polish
ptPortuguês / PortuguesecsČesky / Czech
sqShqip / AlbanianskSlovenčina / Slovak
meCrnogorski / MontenegrinhuMagyar / Hungarian
srSrpski / Serbian (Latin)roRomână / Romanian
trTürkçe / TurkishbgБългарски / Bulgarian
elΕλληνικά / GreeketEesti / Estonian
zh中文 / Chinese (Simplified)bnবাংলা / Bengali
Endpoint support
EndpointWhat is translated
GET /v1/marketsMarket names + outcome names (in both markets / outcomes and, when nested=1, markets_full[mid].name + markets_full[mid].outcomes).
GET /v1/market-groupsTab names (e.g. Main → Haupt / Principali / 主要). Bucket keys stay in English (they are machine identifiers).
GET /v1/oddsNo text is emitted — the payload is numeric ids + prices. Resolve names via the dictionary you fetched from /v1/markets?lang=….
GET /v1/settlementsOutcome names in the settlement report follow the request’s lang when present (default en).
WebSocket /ws & /pt-wsFrames carry upstream raw shape (event lists, price deltas) — no localized strings; resolve names via /v1/markets?lang=….
Example
# German market + outcome dictionary for soccer
curl "https://api.euro365.bet/v1/markets?sport=1&lang=de" \
  -H "X-API-Key: ek_yourapikeyhere"
# {"data":{"lang":"de","markets":{"1005":"Doppelte Chance",
#          "1018":"Gesamttore - Über / Unter",…},
#          "outcomes":{"2081":"über","2082":"unter",…}}}

# Chinese tab layout
curl "https://api.euro365.bet/v1/market-groups?sport=1&lang=zh" \
  -H "X-API-Key: ek_yourapikeyhere"
# {"data":{"lang":"zh","prematch":[{"key":"main_markets","name":"主要",…},
#                                   {"key":"goal_markets","name":"进球",…}]}}

Fallback rules. Unknown lang values fall back to en. Within a language, any phrase we don’t have a translation for falls back to English so you never see empty strings. If you find a market or outcome that’s still in English when it shouldn’t be, drop us a note at support with the market id and the requested language — translations reload live from a dictionary file (no restart), so we can push a fix within minutes.

Caching. Cache one dictionary per language. The response includes an ETag; combine lang= with If-None-Match for cheap re-poll.

Portal & website languages #

The lang parameter above localizes API payloads. Separately, this website and your customer portal are available in 26 languages (the 24 above plus right-to-left ar العربية and fa فارسی; the site also keeps ja and ko pages):

en English, de Deutsch, it Italiano, fr Français, es Español, sq Shqip, me Crnogorski, tr Türkçe, el Ελληνικά, sr Српски, zh 中文, pt Português, ru Русский, da Dansk, sv Svenska, bn বাংলা, bg Български, pl Polski, ro Română, cs Čeština, hu Magyar, sk Slovenčina, nl Nederlands, et Eesti, ar العربية, fa فارسی.

Public pages live at /<code>/ (for example /de/) with hreflang alternates. In the portal, the globe at the top right switches the language immediately and remembers it in this browser; Account Settings → Preferences saves a default on your account, and ?lang=<code> on the portal URL forces one for that visit. Dictionaries load on demand, one file per language.

Sport IDs #

Use the numeric ID anywhere an endpoint accepts sport=.

IDNameIDNameIDName
1Soccer10Boxing / MMA26Waterpolo
2Basketball12Rugby League29Futsal
3Baseball13Aussie Rules39Lacrosse
4Ice Hockey16American Football40Formula 1
5Tennis17Cycling117MMA
6Handball20Table Tennis190Moto GP
7Volleyball21Cricket306Bowling
9Golf22Darts312Rugby Union

Call GET /v1/sports to see which sports currently have events.

Code samples #

# Pull all live events
curl https://api.euro365.bet/v1/live \
  -H "X-API-Key: $EURO365_KEY"

# Status / liveness
curl https://api.euro365.bet/v1/status \
  -H "X-API-Key: $EURO365_KEY"
const KEY = process.env.EURO365_KEY;

async function getLive(sport) {
  const url = `https://api.euro365.bet/v1/live${sport ? `?sport=${sport}` : ''}`;
  const r = await fetch(url, { headers: { 'X-API-Key': KEY } });
  if (!r.ok) throw new Error(`HTTP ${r.status}`);
  return r.json();
}
import os, requests

KEY = os.environ["EURO365_KEY"]
S = requests.Session()
S.headers["X-API-Key"] = KEY

def get_live(sport=None):
    params = {"sport": sport} if sport else {}
    r = S.get("https://api.euro365.bet/v1/live", params=params, timeout=10)
    r.raise_for_status()
    return r.json()
<?php
$key = getenv('EURO365_KEY');
$ch = curl_init('https://api.euro365.bet/v1/live');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ["X-API-Key: $key"],
    CURLOPT_TIMEOUT        => 10,
]);
$resp = json_decode(curl_exec($ch), true);
curl_close($ch);

Integration patterns #

Live odds board (REST polling)

  1. GET /v1/sports once a minute to drive your sport filter.
  2. GET /v1/live?sport=N every 2–5 s for the events list.
  3. GET /v1/odds?ids=… for the visible event IDs (batch in groups of up to 100) every 1–2 s.
  4. GET /v1/scores every 5–10 s for the scoreboard column.

Polling is fine up to a few hundred events. Beyond that, layer the WebSocket on top so you skip the /v1/live poll — the WS pushes event-list changes for you; you still call /v1/odds for the prices themselves.

Push updates (WebSocket + REST hybrid)

  1. Open wss://api.euro365.bet/ws?api_key=….
  2. Consume the initial snapshot frame — it carries the full live + pre-match event catalogue (fixtures, scores; no prices). No REST is needed to bootstrap your event index.
  3. Call GET /v1/odds?ids=<visible batch> for the prices on the events you actually render.
  4. On each live_update frame (refreshed event list), re-call GET /v1/odds?ids=<same batch> to refresh prices.
  5. Re-fetch the snapshot on reconnect.

Rendering a price

// from /v1/odds → market 1001 → line "s" → outcome 2001
const [price, flags] = outcome;
if (flags !== 0) renderLocked();
else renderPrice((price / 100).toFixed(2));   // 125 → "1.25"

Subscribing to one event

REST works fine: poll GET /v1/event?id=… + GET /v1/odds?ids=… every 1–2 s. For sub-second freshness, use the WebSocket and filter the live_update frames to the event id you care about.

Settlement Policy #

This is the binding rulebook applied by /v1/settlements. By using the settlement endpoint you agree these rules govern the win / lose / void result returned for each outcome. If you disagree with a specific result, follow the dispute procedure at the end of this section — do not silently override the engine on your side.

1. Final score & status

  • The final score is the value of score.home / score.away in /v1/scores at the moment status becomes "ended". Score updates received after the status flip (e.g. corrections published hours later) do not retroactively re-settle outcomes; see Stat corrections below.
  • Settlement uses the score for the regulation period as reported by the upstream feed. Extra time and penalty shootouts are not included unless a market name explicitly says so ("including extra time", "penalty shootout").
  • An event with status: "ended" and a missing score is NOT void — it is unresolved. See §1a below for the machine-readable status enum and required policy. Superseded 2026-09-25 to prevent accepted winning bets from being incorrectly refunded.

1a. Settlement status enum SETTLEMENT_STATUS_V1

Every fixture in /v1/results and /v1/settlements carries a settlement_status field with one of the following machine-readable values. Downstream systems MUST branch on this field before deciding whether to grade, refund, or leave a bet open.

ValueMeaningRequired action
resolvedMatch ended, both final scores present. Standard grading applies per §2 push/void rules below.Grade the bet per outcome results. Winning bets pay, losing bets keep stakes.
unresolved_no_evidenceMatch reached end-of-match state upstream but the final score was never delivered (upstream data loss, feed drop, no-goal-source sport with insufficient signal).Do NOT settle. Do NOT refund. Leave the bet open, retry the endpoint at 30-min intervals for late corrections (see §4), and if still unresolved after 24 hours contact the operator for a manual ruling.
unresolved_suspendedEvent was in the "suspended" state at our last read; final state indeterminate.Do NOT settle. Do NOT refund. Same policy as unresolved_no_evidence.
voidOfficial void per operator or regulator — event was annulled (competition-board ruling, abandoned by referee, replayed). See §3 for the abandoned/replayed policy.Refund all stakes on this fixture.
pushBookmaker rule push on this outcome (e.g. 0-0 correct-score at draw handicap, whole-line total equal to actual total). Fixture-level result may still be resolved; the push applies to specific outcomes. See §2.Refund stakes on the pushing outcomes; grade the rest normally.
pendingMatch is currently live or scheduled, not yet reached full time. Some in-play outcomes may be settled (e.g. Over the moment score exceeds the line) but the fixture as a whole is not final.Leave bet open. Retry after full time.

Critical: the previous policy (pre-2026-09-25) resolved missing-score fixtures to void. That was incorrect and caused winning bets to be refunded when the upstream score simply hadn't arrived. Migrate downstream logic to branch on settlement_status before deciding to refund.

Backward compatibility: /v1/results defaults to returning only resolved events (legacy behaviour). Pass &include_unresolved=1 to receive the full enum including unresolved_no_evidence and unresolved_suspended classes.

1b. Fixture-detail retention ENDED_RETENTION_V1

Fixture basics (team names, tournament, kickoff, sport, final score) are preserved for 48 hours after full time so that late settlement checks, correction re-polls, and Plus enrichment reads remain functional after the live/prematch rolling windows have been purged. Retention layers, in order of freshness and lifetime:

  • odds:live:<sport> / odds:prematch:<sport> — transient rolling windows during live/prematch state. Purged shortly after match end.
  • odds:ended:<sport> — ended fixtures with basic details and final score. 48 hours from end-of-match.
  • es_match_history (PostgreSQL) — permanent record used by /v1/results. Never expires. Authoritative source for historical results.
  • sofa:event:<id> / sofa:incidents:<id> / sofa:stats:<id> — Plus enrichment cache. 24 hours after end-of-match, 60 seconds while live.

2. Push / void rules

  • Whole-line totals (e.g. Over/Under 2.0): if final total equals the line, both sides are void (push).
  • Whole-line European handicaps: if the adjusted score is a tie, both home and away handicap outcomes are void; the "draw" outcome wins.
  • Asian handicap whole / half lines: settled normally (Asian draws not possible at these lines).
  • Asian handicap quarter lines (e.g. −0.25, +0.75): V1 returns void for these. V2 will support half-stake splits.
  • Draw No Bet: if the match is a draw, both Home and Away resolve to void.
  • Suspended markets (changed 2026-10-20, engine settlement-engine-1.1.0, SUSPEND_VOID_FIX_V1): for an ended event with a final score, the score decides every covered outcome; suspension flags on the last odds snapshot no longer void anything, because that snapshot is always taken after the market closed at full time (the previous rule voided every decided outcome of such fixtures, e.g. a played 0:0 returned all outcomes void while /v1/grade graded the draw). The count of outcomes that carried a suspension flag is reported as coverage.suspended_at_last_read. In the in-play preview (include_inplay=1) suspended lines are still shown as void. Under with_revision=1 this engine version change surfaces as a new revision on affected fixtures, never as a silent change.

3. Abandoned, postponed & replayed matches

  • A match is treated as abandoned if upstream reports status: "ended" without completing the regulation period. All settlable outcomes for an abandoned match resolve to void.
  • A postponed match keeps status: "scheduled" or "live" indefinitely; the engine returns "event has not ended" until upstream resolves it.
  • A replayed match is treated as a new fixture with a new event id. The original event remains abandoned and void.

4. Stat corrections & VAR reversals

  • If upstream issues a corrected final score after we settle, we will re-run settlement against the corrected score. Any prior /v1/settlements response is superseded. Customers must re-poll the endpoint at least once 30 minutes after FT to capture late corrections.
  • VAR-induced goal or card reversals delivered during the match are captured automatically. Post-match disciplinary actions (e.g. retrospective bans, abandoned-match rulings published the next day) are not applied to settlement.
  • Cancelled or expunged matches (e.g. competition-board rulings) are treated identically to abandoned matches: all outcomes void.

5. Coverage versioning

  • V1 (current) — full-time score-only markets. Stat-driven and half-only markets return pending.
  • V2 — adds half-time score capture: settles 1st/2nd-half markets, HT/FT, Highest Scoring Half.
  • V3 — adds match-stat capture from the LMT feed: settles corners, cards, free kicks, shots, and Race-To-Nth-Corner.
  • You can rely on outcomes that were previously win / lose / void remaining that way across versions, unless rule 4 (stat correction) applies. pending outcomes may transition to win/lose/void as coverage grows.

6. Disputes

If you believe a specific result is wrong, do not modify the outcome on your side without first opening a dispute. Send the event id, market id, outcome id, your expected result, and a one-line reason to the operator (see Support). We will re-run the engine against fresh upstream data, publish a written ruling, and if our settlement was wrong we will update the engine and reissue the affected results within 72 hours.

7. Limitations of liability

The settlement engine is provided as a convenience and reflects our best interpretation of the final score and standard market rules. Customers remain responsible for the bets they accept and pay out; using /v1/settlements does not transfer settlement liability to Euro365 API. In the event of a confirmed engine error, our liability is limited to reissuing corrected results and does not extend to consequential losses (paid-out winnings to end-users, reputational damage, etc.). High-volume customers requiring a settlement SLA should contact support to discuss a custom agreement.

8. Definitive in-play settlement INPLAY_FINAL_V1 · football phase 1

With ?inplay_final=1 (Settlement Plus) the engine emits, for live football fixtures, verdicts that are payable before full time. They are the only in-play results you may pay. The include_inplay preview and the fixture-level settlement_status (§1a) are unchanged.

  • Confirmation window: a live score locks nothing until it has stood unchanged for 120 seconds. This absorbs goals disallowed on review.
  • Full-match markets locked once the running score decides them: Total Goals Over/Under (half, whole and Asian quarter lines, ladder 0.5–9.5), Home / Away Team Total Goals, Both Teams To Score, Correct Score (losing outcomes), Team Exact Goals (losing outcomes), Clean Sheet, Total Goals Bands (losing outcomes), HT/FT (outcomes whose half-time part is already wrong).
  • First-half markets: during the first half the same lock rules apply to the running first-half score; once the half-time score is final (half_time.final:true) 1st Half Over/Under (whole-line ties void), 1st Half 1x2, Double Chance, Draw No Bet (tie void), Odd/Even, Both Teams To Score, Correct Score and Team Goals settle completely.
  • Never locked in-play: 1x2, Double Chance, Draw No Bet, handicaps, Asian handicaps, combos, full-match Odd/Even, stat and scorer markets. They settle after full time per §1–§5.
  • Verdicts stand. A locked verdict is persisted for 72 hours and is never withdrawn or flipped. If the match is abandoned afterwards the locked verdicts stand (exception to §3; the fixture itself still returns abandoned_requires_market_review with the locked list attached). If the upstream score is corrected after the confirmation window and no longer supports a stored verdict, the entry is marked disputed:true with current_result and listed in corrections[]; the stored verdict remains the binding one. Disputes follow §6.
  • Liability: §7 applies. Paying before full time is the operator's choice; the engine guarantees only that an emitted locked[] verdict is never changed.
  • Regulation score only. Locks are evaluated on the regulation score. The feed's home/away are the regulation score and full_home/full_away the aggregate; whenever the period or the period list shows the match went beyond 90 minutes (extra time, shoot-out, three or more period segments) the regulation score is re-derived as the sum of the first two period segments, and the block reports beyond_regulation:true, aggregate_score and score_basis. An extra-time goal can never lock a regulation market.
  • Confirmation = observed + stable (OBSERVER_V2). The engine keeps its own per-fixture observation record. Every 5 s it samples the fixtures present in the latest successful upstream read; an observation is counted only when the feed has written a new score row for that fixture (its write timestamp advanced) — re-sampling an unchanged snapshot is not an observation, so a stalled feed or a frozen cache never produces evidence. seen is the write time of the latest observation; since is the write time of the first observation of the current score in a continuous run (two consecutive observations more than 90 s apart, e.g. the fixture was absent from the reads, restart the run at the new observation; a score change restarts it as well). A score is confirmed only if seen is at most 90 s old and seen − since is at least 120 s. Block fields: observation {seen, seen_age_s, since, stable_s, observations, sample_s}, observed, score_stable, score_confirmed, confirm_in_s, not_confirmed_reason. Other fixtures updating never confirm a missing one; the global heartbeat and the sampling clock are not evidence. A goal disallowed inside the window restarts the run and never locks. Observation records are namespaced by observer version; records of any other version are ignored, so an observer upgrade always starts every fixture on a fresh window (nothing is inherited).
  • History / legacy rule. Engine versions 1.0.0–1.0.4 used the score row's ts as "last score change"; in the current feed that field is the observation time, so under that rule only fixtures that had dropped out of the feed could confirm. Every stored verdict carries the rule actually used: confirmation_rule: "legacy-score-ts" (3,988 verdicts on 11 fixtures, all locked before the 1.1.0 process start on 2026-10-20 at 16:52 UTC) "observer-v1" (engine 1.1.0–1.1.1, 2026-10-20 16:52–17:17 UTC: 625 verdicts on 3 fixtures; that rule counted re-sampling as observation and did not restart the window after an absence) or "observer-v2" (engine 1.1.2 and later). The 261 observer-v2 verdicts locked under 1.1.2 (two fixtures, 17:20 UTC) predate the per-verdict observation record of 1.1.4; for those two fixtures the freshness of the window after the 1.1.2 start was verified from the observation records captured 15–20 s after the process start (windows of 7 s and 15 s, since = the feed write of 17:17:58.503 UTC), not inferred from lock times. All verdicts stand per this section; the stored rule lets you treat them separately.
  • Cache reconciliation on every read, never dropped. On every read, any cache entry whose key is absent from Postgres is committed first-writer-wins (storage.migrated_from_cache = rows added), also when the fixture already has committed rows. A committed row is never overwritten by its cache copy; a cache entry that disagrees with a committed row is reported in storage.cache_disagreements and not applied. Verdicts emitted by engine 1.0.0/1.0.1 keep their verdict and gain the identity fields.
  • Quarter lines are whole-leg verdicts only. An Asian quarter line (e.g. Over 2.75 = half Over 2.5 + half Over 3) is emitted only once both halves are decided (Over 2.75 locks at the 4th goal, not the 3rd). Partial results (half win / half push) are never encoded as win or lose; until the leg is whole it is simply absent from locked[] and settles after full time. First-half ladders carry no quarter lines.
  • Identity. Every entry has a stable lock_id = <canonical fixture id>:<market_id>|<line_key>|<outcome_id> (the same triple you use against /v1/odds; line_key is s for lines without a value, otherwise s + line), revision:1 (entries are immutable; a verdict is never re-issued under a new revision), scope:"regulation" (extra time and shoot-outs never count, as in §1), basis, locked_at, score_at_lock, score_ts (the feed row's ts at lock time, an observation timestamp kept for audit only), confirmation_rule, engine and observation {seen, since, observations, stable_s, observer_version} (all stored on the entry at lock time: the provenance and the observation record that justified the verdict are persisted, never inferred). Alias ids resolve to the canonical fixture, so querying an alias returns the same locked[].
  • Persistence and recovery (commit-before-return). A verdict is returned only after Postgres has committed it. Candidates are inserted with first-writer-wins semantics and every caller returns what it reads back from the table, never what it computed itself, so simultaneous requests (even with conflicting upstream reads) receive the same lock_id → result set. Redis is a read cache filled only from committed rows and never overwritten; clearing it cannot change a result. The block reports storage {source: "postgres"|"cache"|"none", durable}. If Postgres is unavailable, no new verdict is emitted (storage_error, new_locks: 0); verdicts committed earlier may be served from the cache with stands:false and should then be treated as advisory until a response with stands:true. stands:true is claimed only for verdicts read from the durable store. Postgres rows never expire; the cache TTL is 72 h and restarts at every new lock for that fixture. new_locks = committed rows the caller had not seen at its own read (0 on a replay; under exact simultaneity several callers may report the same rows). It is informational; the committed set is the contract.
  • Final reconciliation. On the full-time response (mode:"final", and also abandoned) the same block is returned with final:true; each stored entry gains final_result (the full-time engine's verdict for the identical market_id/line_key/outcome_id, null if that line is not in the final response) and agrees (true, false, or null when the final verdict is pending). A disagreement sets disputed:true, current_result and a corrections[] row with stage:"final"; a live reversal uses stage:"live". In both cases result is the binding verdict you already paid and must not be settled a second time; current_result is reported for your audit only.
  • Scope: football (sport id 1) only in phase 1; other sports return sport_supported:false. Every block carries the engine tag (inplay-final-1.1.4); the tag changes whenever the rules in this section change.

Support #

To request an API key, increase your rate limit, whitelist source IPs or domains, or report an issue, contact the operator. Include your account name and a short description of your use case (estimated request volume, REST vs WebSocket, sports of interest).