{"openapi":"3.1.0","info":{"title":"bet365 API API","version":"1.0.0","description":"bet365 odds API: US bet365 moneyline, spread and total plus European soccer as JSON over REST and MCP, refreshed as often as every 60 seconds. Free key, no card; plans from $49/mo. Unofficial. Unofficial. bet365 prices as republished by public odds aggregators and read by our collector; not affiliated with, endorsed by or sponsored by bet365. observed_at is when we read the price, not a bet365 update time. Live price changes are also pushed over a WebSocket, wss://stream.thebet365api.com/v1/stream (same key; filters league, event_id, market, live; resume with after=<id>; 1 request per connection plus 1 per 5 minutes), which OpenAPI cannot describe: see https://thebet365api.com/docs#websocket."},"servers":[{"url":"https://thebet365api.com"}],"security":[{"bearer":[]}],"paths":{"/api/v1/watchlists":{"get":{"summary":"List Watchlists","description":"A saved set of teams, players or events whose bet365 prices you want to follow.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","maximum":200}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK"},"401":{"description":"Invalid key"},"429":{"description":"Rate or quota limit"}},"operationId":"getWatchlists"},"post":{"summary":"Create a Watchlist","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"responses":{"201":{"description":"Created"},"402":{"description":"Record limit"},"422":{"description":"Invalid"}},"operationId":"postWatchlists"}},"/api/v1/watchlists/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"Read a Watchlist","responses":{"200":{"description":"OK"},"404":{"description":"Not found"}},"operationId":"getWatchlistsById"},"patch":{"summary":"Update a Watchlist","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}},"responses":{"200":{"description":"OK"},"404":{"description":"Not found"}},"operationId":"patchWatchlistsById"},"delete":{"summary":"Delete a Watchlist","responses":{"204":{"description":"Deleted"},"404":{"description":"Not found"}},"operationId":"deleteWatchlistsById"}},"/api/v1/onboarding":{"get":{"summary":"Onboarding questions","description":"The questions that finish setting up an account. No key needed; with a key the reply also carries the current answers. Costs no quota.","security":[],"responses":{"200":{"description":"OK"}},"operationId":"getOnboarding"},"post":{"summary":"Answer onboarding for your user","description":"Stores the answers exactly as the onboarding form does, marked as answered by an agent. Idempotent. Costs no quota.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["answers"],"properties":{"answers":{"type":"object","properties":{"data_wanted":{"type":"string","description":"What bet365 data are you looking for?"},"use_case":{"type":"string","description":"What do you want to do with it?"},"found_us":{"type":"string","description":"How did you find us?"},"notes":{"type":"string","description":"Anything else we should know?"}},"required":["data_wanted","use_case"]},"client":{"type":"string","description":"Your name, such as Claude Code."}}}}}},"responses":{"200":{"description":"Saved"},"401":{"description":"Invalid key"},"422":{"description":"Invalid answers"},"429":{"description":"Too many answers this minute"}},"operationId":"postOnboarding"}},"/api/v1/odds":{"get":{"operationId":"getBet365Odds","summary":"Current bet365 prices by event","description":"Events with their current captured bet365 prices. Each price carries observed_at and age_seconds.","parameters":[{"name":"league","in":"query","required":false,"description":"League code, such as nba, nfl, nhl, ncaaf, ncaab, mlb, mls, epl, serie-a, bundesliga, ligue-1, ucl or laliga. Case-insensitive. A bad value returns the allowed list. The /coverage page and the get_bet365_coverage MCP tool list what is captured now.","schema":{"type":"string"}},{"name":"event_id","in":"query","required":false,"description":"Event id from /api/v1/events, such as an-295471 or espn-401879233. Returns that event whatever its start time or status.","schema":{"type":"string","pattern":"^(an|espn)-[0-9A-Za-z]{1,30}$"}},{"name":"market","in":"query","required":false,"description":"Only events with this market; on /odds, only these prices.","schema":{"type":"string","enum":["moneyline","spread","total","team_total","match_result","double_chance","goal_line","first_goalscorer","anytime_goalscorer","last_goalscorer"]}},{"name":"live","in":"query","required":false,"description":"true for in-play only, false for pre-match only.","schema":{"type":"boolean"}},{"name":"from","in":"query","required":false,"description":"Events starting at or after this ISO time. Default: 6 hours ago. Without it, finished games (status final) are left out; with it they are included.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Events starting before this ISO time.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Events per page, 1 to 100. Default 25.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","required":false,"description":"Events to skip.","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"X-User-Request","in":"header","required":false,"description":"Optional: the user's task in one sentence. Read by the team to decide what to add. No secrets or personal data.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Bet365EventWithPrices"}},"meta":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"},"from":{"type":"string","format":"date-time","description":"Start of the time window used."},"count":{"type":"integer"},"source_note":{"type":"string"},"plan":{"type":"string"},"remaining":{"type":"integer","description":"Requests left this calendar month (UTC)."}}}}}}}},"400":{"description":"INVALID_PARAMETER: a bad parameter. The body names it, the allowed values and a working example.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"401":{"description":"INVALID_API_KEY: missing, unknown or revoked key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"403":{"description":"ACCOUNT_SUSPENDED.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"429":{"description":"RATE_LIMITED (per minute, Retry-After: 30) or QUOTA_EXCEEDED (monthly). Body has plan, limit, reset_at and upgrade_url.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"503":{"description":"SERVICE_UNAVAILABLE: retry after Retry-After; quote X-Request-ID.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}}}}},"/api/v1/events":{"get":{"operationId":"listBet365Events","summary":"Events with bet365 prices","description":"Games and matches that have captured bet365 prices, soonest first.","parameters":[{"name":"league","in":"query","required":false,"description":"League code, such as nba, nfl, nhl, ncaaf, ncaab, mlb, mls, epl, serie-a, bundesliga, ligue-1, ucl or laliga. Case-insensitive. A bad value returns the allowed list. The /coverage page and the get_bet365_coverage MCP tool list what is captured now.","schema":{"type":"string"}},{"name":"event_id","in":"query","required":false,"description":"Event id from /api/v1/events, such as an-295471 or espn-401879233. Returns that event whatever its start time or status.","schema":{"type":"string","pattern":"^(an|espn)-[0-9A-Za-z]{1,30}$"}},{"name":"market","in":"query","required":false,"description":"Only events with this market; on /odds, only these prices.","schema":{"type":"string","enum":["moneyline","spread","total","team_total","match_result","double_chance","goal_line","first_goalscorer","anytime_goalscorer","last_goalscorer"]}},{"name":"live","in":"query","required":false,"description":"true for in-play only, false for pre-match only.","schema":{"type":"boolean"}},{"name":"from","in":"query","required":false,"description":"Events starting at or after this ISO time. Default: 6 hours ago. Without it, finished games (status final) are left out; with it they are included.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Events starting before this ISO time.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Events per page, 1 to 200. Default 25.","schema":{"type":"integer","minimum":1,"maximum":200,"default":25}},{"name":"offset","in":"query","required":false,"description":"Events to skip.","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"X-User-Request","in":"header","required":false,"description":"Optional: the user's task in one sentence. Read by the team to decide what to add. No secrets or personal data.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Bet365Event"}},"meta":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"},"from":{"type":"string","format":"date-time","description":"Start of the time window used."},"count":{"type":"integer"},"source_note":{"type":"string"},"plan":{"type":"string"},"remaining":{"type":"integer","description":"Requests left this calendar month (UTC)."}}}}}}}},"400":{"description":"INVALID_PARAMETER: a bad parameter. The body names it, the allowed values and a working example.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"401":{"description":"INVALID_API_KEY: missing, unknown or revoked key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"403":{"description":"ACCOUNT_SUSPENDED.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"429":{"description":"RATE_LIMITED (per minute, Retry-After: 30) or QUOTA_EXCEEDED (monthly). Body has plan, limit, reset_at and upgrade_url.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"503":{"description":"SERVICE_UNAVAILABLE: retry after Retry-After; quote X-Request-ID.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}}}}},"/api/v1/events/{id}":{"get":{"operationId":"getBet365Event","summary":"One event with every current bet365 price","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^(an|espn)-[0-9A-Za-z]{1,30}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Bet365EventWithPrices"}}}}}},"400":{"description":"INVALID_PARAMETER: a bad parameter. The body names it, the allowed values and a working example.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"401":{"description":"INVALID_API_KEY: missing, unknown or revoked key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"403":{"description":"ACCOUNT_SUSPENDED.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"404":{"description":"No captured prices for this event"},"429":{"description":"RATE_LIMITED (per minute, Retry-After: 30) or QUOTA_EXCEEDED (monthly). Body has plan, limit, reset_at and upgrade_url.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"503":{"description":"SERVICE_UNAVAILABLE: retry after Retry-After; quote X-Request-ID.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}}}}},"/api/v1/history":{"get":{"operationId":"getBet365LineHistory","summary":"bet365 price and line history","description":"One row per change, each the interval a price held (observed_at to last_seen_at). Send event_id (optionally with market) or selection_id. Up to 2000 rows, no paging. Free keys read the last 24 hours; paid plans read every change since collection began. Nothing before the first capture exists.","parameters":[{"name":"event_id","in":"query","required":false,"description":"Event id. Required unless selection_id is sent.","schema":{"type":"string","pattern":"^(an|espn)-[0-9A-Za-z]{1,30}$"}},{"name":"market","in":"query","required":false,"description":"Only this market.","schema":{"type":"string","enum":["moneyline","spread","total","team_total","match_result","double_chance","goal_line","first_goalscorer","anytime_goalscorer","last_goalscorer"]}},{"name":"selection_id","in":"query","required":false,"description":"A selection_id from /api/v1/odds. Required unless event_id is sent.","schema":{"type":"string","pattern":"^sel_[0-9a-f]{20}$"}},{"name":"X-User-Request","in":"header","required":false,"description":"Optional: the user's task in one sentence. Read by the team to decide what to add. No secrets or personal data.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Bet365PriceChange"}},"window":{"type":"object","properties":{"from":{"type":["string","null"],"format":"date-time"},"full_history":{"type":"boolean"},"collection_started_at":{"type":["string","null"],"format":"date-time"},"note":{"type":"string"}}},"meta":{"type":"object","properties":{"plan":{"type":"string"},"remaining":{"type":"integer"},"count":{"type":"integer"}}}}}}}},"400":{"description":"INVALID_PARAMETER: a bad parameter. The body names it, the allowed values and a working example.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"401":{"description":"INVALID_API_KEY: missing, unknown or revoked key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"403":{"description":"ACCOUNT_SUSPENDED.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"429":{"description":"RATE_LIMITED (per minute, Retry-After: 30) or QUOTA_EXCEEDED (monthly). Body has plan, limit, reset_at and upgrade_url.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}},"503":{"description":"SERVICE_UNAVAILABLE: retry after Retry-After; quote X-Request-ID.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}}}}},"/api/v1/feedback":{"post":{"operationId":"sendFeedback","summary":"Tell the team what is missing","description":"No key needed, no quota. With a key the note is attached to your account.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind","message"],"properties":{"kind":{"type":"string","enum":["missing_feature","missing_data","bug","other"]},"message":{"type":"string","minLength":3,"maxLength":4000},"contact":{"type":"string","maxLength":320}}}}}},"responses":{"201":{"description":"Received"},"422":{"description":"INVALID_FEEDBACK","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"parameter":{"type":"string"},"allowed":{"type":"array","items":{"type":"string"}},"example":{"type":"string"},"plan":{"type":"string"},"limit":{"type":"integer"},"reset_at":{"type":"string","format":"date-time"},"upgrade_url":{"type":"string"}}}}}}}}}}}},"components":{"schemas":{"Watchlist":{"type":"object","additionalProperties":false,"required":["name","targets"],"properties":{"name":{"type":"string","description":"What this watchlist tracks"},"league":{"type":"string","description":"League code such as NFL or EPL"},"targets":{"type":"string","description":"Team names"},"notes":{"type":"string","description":"Anything you want to remember about this list"}}},"Bet365Price":{"type":"object","properties":{"selection_id":{"type":"string"},"market":{"type":"string"},"period":{"type":"string"},"side":{"type":"string"},"team":{"type":["string","null"]},"player":{"type":["string","null"]},"line":{"type":["number","null"]},"price":{"type":"object","properties":{"american":{"type":["integer","null"]},"decimal":{"type":"number"},"fractional":{"type":["string","null"]}}},"published_format":{"type":"string","enum":["american","fractional"]},"is_live":{"type":"boolean"},"line_status":{"type":["string","null"]},"observed_at":{"type":"string","format":"date-time","description":"The last time our collector read this price."},"price_since":{"type":"string","format":"date-time","description":"When our captures first showed this price."},"age_seconds":{"type":"integer"}}},"Bet365Event":{"type":"object","properties":{"event_id":{"type":"string"},"league":{"type":"string"},"league_name":{"type":"string"},"sport":{"type":"string"},"feed":{"type":"string","enum":["us","soccer"]},"region":{"type":["string","null"],"description":"US for the US main lines; null where the source does not state the bet365 region."},"region_note":{"type":"string","description":"Soccer events only: why region is null."},"home":{"type":["string","null"]},"away":{"type":["string","null"]},"starts_at":{"type":["string","null"],"format":"date-time"},"status":{"type":["string","null"]},"markets":{"type":"array","items":{"type":"string"}},"first_observed_at":{"type":"string","format":"date-time"},"last_observed_at":{"type":"string","format":"date-time"}}},"Bet365StreamPriceChanged":{"type":"object","description":"One message on wss://stream.thebet365api.com/v1/stream: a stored bet365 price or line change.","properties":{"type":{"type":"string","enum":["price.changed"]},"id":{"type":"string","description":"Increasing cursor; reconnect with after=<id>."},"event_id":{"type":"string"},"league":{"type":"string"},"sport":{"type":"string"},"region":{"type":["string","null"]},"home":{"type":["string","null"]},"away":{"type":["string","null"]},"starts_at":{"type":["string","null"],"format":"date-time"},"event_status":{"type":["string","null"]},"selection_id":{"type":"string"},"market":{"type":"string"},"period":{"type":"string"},"side":{"type":"string"},"team":{"type":["string","null"]},"player":{"type":["string","null"]},"is_live":{"type":"boolean"},"line":{"type":["number","null"]},"price":{"type":"object","properties":{"american":{"type":["integer","null"]},"decimal":{"type":"number"},"fractional":{"type":["string","null"]}}},"published_format":{"type":"string"},"previous":{"type":["object","null"],"description":"The price and line before this change; null for a new selection.","properties":{"line":{"type":["number","null"]},"price":{"type":"object","properties":{"american":{"type":["integer","null"]},"decimal":{"type":"number"},"fractional":{"type":["string","null"]}}},"observed_at":{"type":"string","format":"date-time"}}},"observed_at":{"type":"string","format":"date-time","description":"When our collector read the new price."}}},"Bet365PriceChange":{"type":"object","properties":{"selection_id":{"type":"string"},"event_id":{"type":"string"},"market":{"type":"string"},"side":{"type":"string"},"team":{"type":["string","null"]},"player":{"type":["string","null"]},"is_live":{"type":"boolean"},"line":{"type":["number","null"]},"price":{"type":"object","properties":{"american":{"type":["integer","null"]},"decimal":{"type":"number"},"fractional":{"type":["string","null"]}}},"observed_at":{"type":"string","format":"date-time","description":"When this price was first captured."},"last_seen_at":{"type":"string","format":"date-time","description":"The last capture that still showed it."}}},"Bet365EventWithPrices":{"allOf":[{"$ref":"#/components/schemas/Bet365Event"},{"type":"object","properties":{"prices":{"type":"array","items":{"$ref":"#/components/schemas/Bet365Price"}}}}]}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"x-websocket":{"url":"wss://stream.thebet365api.com/v1/stream","auth":"Authorization: Bearer <key> on the upgrade, or {\"op\":\"auth\",\"key\":\"bt_...\"} as the first message","query":["league","event_id","market","live","after"],"messages":["welcome","price.changed","replay_done","heartbeat","request_charged","subscribed","limit","error","reconnect"],"price_changed_schema":"#/components/schemas/Bet365StreamPriceChanged","docs":"https://thebet365api.com/docs#websocket"}}