Loading...
Loading...
This section details and describes the values within the actions payload (replaces the swagger actions websocket doc)
Loading...
Loading...
The below information details the key FastPath actions and sub action types we will be collecting live and distributing via the live Actions WebSocket.
An action type can be something like a goal, card, dangerous attack. The sub action type gives extra context to that initial action type. i.e. a goal (action type) scored from inside the box (sub action type).
1
Match conditions
includes information like surface condition, quality and temperature
✔️
✔️
N/A
2
Team colours
the colours that the teams are wearing
✔️
✔️
N/A
3
Lineups
the player, coaches and officials taking part in the match
❌
✔️
✔️
4
Start match
match has started
✔️
✔️
N/A
5
End match
match has ended
✔️
✔️
N/A
6
Start period
period has started
✔️
✔️
N/A
7
End period
period has ended
✔️
✔️
N/A
8
Start clock
clock started at X time
✔️
✔️
N/A
9
Stop clock
clock stopped at Y time
✔️
✔️
N/A
10
Adjust clock
stopped clock adjusted to Z time
✔️
✔️
N/A
13
Substitution In
player coming into the match
✔️
✔️
N/A
14
Substitution Out
player leaving the match
✔️
✔️
N/A
15
Possession Gained
team has gained possession of the ball
✔️
✔️
N/A
51
Video check
decision is being reviewed by video official
✔️
✔️
N/A
61
Video check result
result of the video check is returned
✔️
✔️
N/A
52
Timeout
timeout called
✔️
✔️
N/A
56
Match delayed
match has been delayed for a significant period due to
5602: Serious injury
5603: Crowd trouble
5604: Other
✔️
✔️
N/A
58
Play Stopped
decision is being reviewed by video official 5801: Serious Injury
5802: Pitch Invasion 5803: Crowd Trouble 5804: Other
✔️
✔️
N/A
201
Turnover
the team in possession of the ball has changed
✔️
✔️
❌
204
Offensive Rebound
offensive player/team has recovered the ball after a shot
✔️ (team only)
✔️
✔️
224
Offensive team rebound
offensive team has recovered the ball after a shot but was not attributed to a single player
✔️
✔️ (team only)
❌
205
Defensive Rebound
defensive player/team has recovered the ball after a shot
✔️ (team only)
✔️
✔️
225
Defensive team rebound
defensive team has recovered the ball after a shot but was not attributed to a single player
❌
✔️ (team only)
❌
206
Free throw made
player/team free throw shot made
✔️ (team only)
✔️
✔️
207
2 points made
player/team shot made from within the 2 point line
✔️ (team only)
✔️
✔️
208
3 points made
player/team shot made from within the 3 point line
✔️ (team only)
✔️
✔️
209
Free throw missed
team free throw missed
✔️
✔️
❌
210
2 point missed
team shot missed from within the 2 point line
✔️
✔️
❌
211
3 point missed
team shot missed from within the 3 point line
✔️
✔️
❌
212
Player Foul
player/team foul committed 21201: Personal
21202: Technical
21203: Unsportsmanlike
21204: Offensive
21205: Disqualifying
21206: Double personal
✔️ (team only)
✔️
✔️
230
Foul Against
player/team foul against
❌
✔️
✔️
213
Free throw(s) awarded
player/team awarded a number of free throws 21301: one free throw awarded 21302: two free throws awarded 21303: three free throws awarded
✔️ (team only)
✔️
✔️
217
Assist
player/team made a pass leading directly to a basket being scored
❌
✔️
✔️
228
Coach Foul
a foul committed by the team coach
❌
✔️
❌
229
Bench Foul
a bench foul
❌
✔️
❌
231
Out of Game
team is no longer able to take part in the game 23101: Fouled out 23102: Ejected 23103: Injured
❌
✔️
✔️
234
Tip Off Won
Team winning the tip off
✔️
✔️
❌
The Live Actions websocket contains a live 'stream' of the team and player actions happening within the basketball match - this will include; 3 points made, free throws, steals, turnovers and more.
You should receive a new update any time a key action is completed and this websocket is crucial for powering live scores and match actions.
The authentication token provided will be required to make a connection to this websocket endpoint.
Once you have the API token, any further data that you send over the connection will be ignored.
N.B – This endpoint sends heartbeats in-between data packets to let you know that it is still connected.
wss://dde-streams.data.imgarena.com/media/basketball/fixtures/{fixtureId}/actions
wss://dde-streams.data.imgarena.com/media/basketball/fixtures/{fixtureId}/actions
CONNECT
wss://dde-streams.data.imgarena.com/media/basketball/fixtures/{fixtureId}/actions
Accept*
String
application/vnd.imggaming.dde.api+json;version=1
Authorization*
String
Bearer {token}
Connection*
String
keep-alive
N.B. – Please insert the relevant fixtureId returned from the fixtures API endpoint to return you the data. The authentication token provided will be required to make a connection to this websocket endpoint.
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 the API token, any further data that you send over the connection will be ignored. This endpoint sends heartbeats in-between data packets to let you know that it is still connected.
There are 2 optional params, that are in common with these Websocket endpoints:
“speed” - this can be “fast” or “normal”. Default is normal and only applicable for offline matches
“startPosition” : integer value, default is 0. This is how many events to skip from the beginning of the list of events. e.g. 5 would be start sending events from the 5th event received for that websocket. This is a useful feature if you want to continue without getting all the events again from the beginning when you reconnect
IMG Arena monitor the incoming traffic from our customers and strive to ensure that traffic is controlled, in-keeping with our guidelines and not unnecessarily excessive. We would suggest a polling rate of 5 requests per second, whilst we strive towards implementing rate limiting.
For sample JSON files and details of each value with descriptions within the payloads, utilise the following Swagger Pages:
JSON Schema https://app.swaggerhub.com/apis/IMG_Arena/IMGA-DDE-BASKETBALL/1.4#/basketball/getActionsByFixtureId
JSON Schema with value descriptions https://app.swaggerhub.com/apis/IMG_Arena/IMGA-DDE-BASKETBALL/1.4#/ActionMessage
id
integer
1
The period id 1 - 1st quarter 2 - 2nd quarter 3 - 3rd quarter 4 - 4th quarter 5 - overtime (optional)
label
string
1st quarter
The string value relating to the period
type
string
Regular
The match type
start
date / time
2022-09-25T14:39:51
The start date and time of that period
end
date / time
2022-09-25T14:20:57e
The end date and time of that period
awayTeamScore
integer
15
The overall away team score
homeTeamScore
integer
19
The overall home team score
awayTeamPeriodScore
integer
15
The away team score in that period
homeTeamPeriodScore
integer
19
The home team score in that period
period
integer
1
The period Id
actionId
UUID
6ee3f4f6-e85c-448a-a13a-f5b85979337f
The id number of the action. This will be useful in linking actions that are pending, updated etc.
sendType
string
Confirmed
the send type name 1- Pending (possible action packet) 2- Updated (updates info on confirmed packets) 3- Cancelled (invalidates pending packet) 4-Deleted (deletes confirmed packets) 5-Confirmed (confirmed packet and can be added) 6-Restored (restored to previous state prior to deletion).
Note that Pending actions can be cancelled. Confirmed actions can be deleted and typically all key actions (card, goal, penalty) start with a pending state
clockTime
time
10:00
The value on the clock when the action was collected
fixtureId
UUID
2104e2e1-3439-4684-a146-28df3f89bda2
The unique fixture UUID
timestamp
date / time
2022-09-25T14:20:57.092100Z
The timestamp of the action delivered as yyyy-mm-ddThh:mm:ss.xxxxxxZ
sendTypeId
integer
5
the send type Id (as above)
fixtureSeqNum
integer
11
A deduplicated list of scorer sequence numbers based on the action creation time across all devices and all scorers.
timelineSequence
long
1.000000000000001
fixtureActionType
string
Start Fixture
The action type name (i.e. goal, shot etc) Full list of actions can be found above in Action Type & Sub Action Types section
fixtureActionTypeId
integer
4
The action type Id related to the fixtureActionType. Full list of actions can be found above in Action Type & Sub Action Types section