Use the Live Data Golf API over REST or WebSocket.
Clients authenticate with a JWT issued by Common IAM. See Common IAM Guide for token setup, token reuse, and renewal guidance.
https://golf.livedata.sportradar.com/golf/v1/live/rest/...wss://golf.livedata.sportradar.com/golf/v1/live/stream/...10–20 seconds, client sends every 30 secondsSend the JWT in the Authorization header as a bearer token.
Example request:
GET /golf/v1/live/rest/tournaments/1971 HTTP/1.1
Host: golf.livedata.sportradar.com
Authorization: Bearer <JWT_TOKEN>
Content-Type: application/jsonThe WebSocket handshake also uses the Authorization header.
GET /golf/v1/live/stream/tournaments/1971/round/1/events HTTP/1.1
Host: golf.livedata.sportradar.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: <generated-random-key>
Sec-WebSocket-Version: 13
Authorization: Bearer <JWT_TOKEN>WebSocket stream endpoints send the current state for the requested resource before they continue with incremental updates.
Depending on the resource, the client may need to send an initialization message first. For live event streams, the client sends Client.Init. That message can include last_seen_event_id to resume after a reconnect. See Live Events for details.
Typical snapshot content includes:
WebSocket stream endpoints send JSON messages. Golf data is wrapped in a CloudEvents envelope.
Example envelope:
{
"specversion": "1.0",
"id": "0da2b5ba-b92f-42bd-b9d2-0fcd978fec85",
"source": "/tournaments/1971",
"type": "Event.Sport.Golf",
"time": "2026-05-04T14:23:01.123Z",
"tournamentid": 1971,
"datacontenttype": "application/json",
"data"
Field names are case-sensitive. For tournament-scoped messages, the envelope uses tournamentid.
The API returns different error signals for REST and WebSocket transports.
Common causes include:
tournamentId, stageId, or matchIdREST endpoints return standard HTTP status codes and a JSON response body with more detail.
{
"reason": "Resource not found",
"details": "Tournament with id 9999 does not exist.",
"status": 404
}WebSocket stream endpoints do not send JSON error messages. They terminate the connection with a close frame. Application-specific error codes use the 4000–4999 range defined for private use by RFC 6455.
Example:
Server → Client: close frame [4401, "Invalid token"]
The client should inspect the close code and decide whether to reconnect.
The close frame always ends the session. No further messages can be exchanged after it is sent.
All WebSocket stream endpoints use an application-level heartbeat. This heartbeat is separate from WebSocket ping and pong frames.
10–20 seconds30 seconds60 seconds without any inbound message90 seconds without a client heartbeatThe server sends heartbeat messages as CloudEvents with type set to System.Heartbeat.
These messages:
source = /systemtournamentidIf the client receives no message for 60 seconds, including heartbeats and domain events, it should treat the stream as unhealthy and reconnect.
{
"specversion": "1.0",
"id": "0da2b5ba-b92f-42bd-b9d2-0fcd978fec85",
"source": "/system",
"type": "System.Heartbeat",
"time": "2026-05-04T14:23:01.123Z",
"datacontenttype": "application/json",
"data": {
"heartbeat_time"
| Name | Type | Description |
|---|---|---|
heartbeat_time | String (date-time) | Timestamp when the server generated the heartbeat. |
Clients must send a heartbeat every 30 seconds to confirm that they are still consuming the stream. The client heartbeat is a plain JSON object. It is not a CloudEvent.
{
"type": "Client.Heartbeat"
}If the server does not receive a client heartbeat within 90 seconds, it closes the connection with status code 1000. That code indicates a normal connection closure.
Client.Heartbeat every 30 seconds| Name | Type | Description |
|---|---|---|
specversion | String | CloudEvents specification version. |
id | String (UUID) | Unique identifier of the message. |
source | String | Event source. Golf tournament messages use /tournaments/{tournament_id}. Heartbeats use /system. |
type | String | Event type, such as Event.Sport.Golf or System.Heartbeat. |
time | String (date-time) | Timestamp when the message was generated. |
tournamentid | Integer | Tournament identifier for tournament-scoped messages. This field is omitted for system messages such as heartbeats. |
datacontenttype | String | Content type of data, for example application/json. |
data | Object | Event payload. The structure depends on the specific resource and event type. |
| HTTP status code | Reason | What to do |
|---|---|---|
401 | Invalid token | Refresh or replace the token. Check Common IAM Guide. |
403 | Forbidden | Verify entitlement for the requested resource. Contact Sportradar support if needed. |
404 | Resource not found | Check the requested identifier. Confirm that the resource still exists and is available to your account. |
| Code | Reason | What to do |
|---|---|---|
4029 | Too many connections | Close unused connections before reconnecting. |
4401 | Invalid token | Refresh or replace the token, then open a new connection. |
4403 | Forbidden | Verify entitlement for the requested resource. Contact Sportradar support if needed. |
4407 | Token expired | Refresh the expired token, then open a new connection. |
4404 | Resource not found | Check the requested identifier. Confirm that the resource still exists and is available to your account. |