For the complete documentation index, see llms.txt. This page is also available as Markdown.

DPWT AI Commentary

This endpoint returns AI generated shot commentary which will be available for all DPWT stroke play tournaments that are collected shot by shot. This feed only made available to the DPWT.

Endpoint URL

  • Websocket (Live) - wss://dde-streams.data.srarena.io/golf/tournaments/{tournamentId}/dpwtcommentary/team/{teamId}

The authentication token provided will be required to make a connection to this websocket endpoint.

Process for connecting to the web socket endpoints

  • Connect to SSL websocket address

  • Send JSON packet containing API token

  • Receive response indicating that connection is authorised (or a response indicating why the connection cannot be made)

  • Receive heartbeat packets every 10 seconds to verify the connection is live

  • Receive data packets

Once you have sent the API token, any further data that you send over the connection will be ignored.

REST API

The DPWT AI commentary feed is also available via REST API

  • REST API (Live) - https://dde-api.data.srarena.io/golf/dpwt_ai_commentary?tour_id=x&team_id=y&interval=z

Please note the REST API is by default at a set interval of 5 days (based on age of the comments from the DB), so please increase as appropriate.

Request Parameters

This Websocket endpoint currently takes no request parameters currently and the REST API supports tour_id, team_id and interval.

Response Model

Field Name
Type
Description

rounds

N/A

The rounds object

holes

N/A

The holes object

holeNo

integer

The hole number specific to that golfer and comment

shots

N/A

The shots object

comments

N/A

The object housing the specific language commentary

en

string

Generated text commentary in English relative to the shot in question and the surrounding situation of the player's shot

da

string

Generated text commentary in Danish relative to the shot in question and the surrounding situation of the player's shot

es

string

Generated text commentary in Spanish relative to the shot in question and the surrounding situation of the player's shot

fr

string

Generated text commentary in French relative to the shot in question and the surrounding situation of the player's shot

ko

string

Generated text commentary in Korean relative to the shot in question and the surrounding situation of the player's shot

sv

string

Generated text commentary in Swedish relative to the shot in question and the surrounding situation of the player's shot

playerId

integer

The unique player Id

shotId

string

The shot Id including tournament, hole and shot information

shotNo

integer

The shot number relating to the comment

roundNo

integer

The round number

seqNum

integer

The sequence number

teamId

integer

The unique team Id

timestamp

timestamp

The time stamp of this action.

tournamentId

integer

The unique tournament id

Sample Response for Stroke Play

Last updated

Was this helpful?