live_scores_statistics scope.
Endpoint: wss://scores.sportrix.ai/v1/stream
Python example
The example below uses thewebsocket-client library to connect, subscribe to a match, and print a live score line on every update.
Always branch on
d["sport"] — the snapshot schema is sport-specific. See the live snapshot reference for the full soccer, cricket, and American football shapes.Multiplexing multiple matches
A single WebSocket connection can track any number of matches simultaneously. Send asubscribe message for each match you want to follow — there’s no need to open a separate connection per match. Because every data object carries match_id, you can always tell which match an incoming frame belongs to.
Handling ended matches
When a subscribed match leaves the live feed, you receive anended frame with the match’s match_id:
update frame with "status": "ended" arrives just before the ended frame. It carries the final score and stats, so you can persist it as the final result. Soccer matches finish with a "status": "ft" update instead. Cricket Tests leave the feed between days, so an ended frame alone does not mean a cricket match is over.
An ended frame does not unsubscribe you. If the match reappears on the feed, for example after a transient provider gap, the stream resumes with a fresh snapshot followed by update frames. You don’t need to resubscribe. Send unsubscribe when you want to stop receiving frames for the match. See Ended frames for details.

