live_scores_statistics scope.
Endpoint: wss://scores.sportrixdata.com/v1/stream
Open a WebSocket connection to the stream endpoint. You can authenticate with either a
key query parameter (convenient for browser clients that can’t set headers) or the X-API-Key header.The connection handshake is rejected with HTTP
401 if your key is missing, invalid, disabled, expired, or if it doesn’t have the live_scores_statistics scope. Check that your key has the right scope before debugging connection issues.Once connected, send a JSON control message to start receiving updates for a match. Use the
match_id from the REST catalog (GET /matches, GET /matches/{id}, etc.).The server immediately responds with a
snapshot frame containing the current full state of the match. After that, you’ll receive an update frame every time the match state changes.opsnapshotsubscribedata: full live snapshot objectupdatedata: full live snapshot objecterrorerror: human-readable reason{"op": "snapshot", "data": {"match_id": 41282, "status": "live", "score": {"home": 3, "away": 2}, "..." : "..."}}
Python example
The example below uses thewebsocket-client library to connect, subscribe to a match, and print a live score line on every update.
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.