play_by_play
For: READ
The play_by_play message type contains a list of events that have occurred in the current period.
This message is sent whenever an event occurs for that period occurs. This means that an event in period 4 will not result in the period 1 event list being sent.
{
"periodId": 4,
"type": "play_by_play",
"timestamp": "2021-02-03T00:19:40.354050",
"fixtureId": "b25692de-ac17-11e8-98d0-529269fb1459",
"compressedData": "eJzt3UtzG8cRB/CvktKZTM17ZvcYn3JA2VXRzeUDCCxMxhSWxYdcrpS/ewai5TDYFXoW3cAO6H9VDpEMURS4P8xMTz9+/M+H1f3y6elD+7cPTw/94/OHq7996D532+d/rne/Z2JjmuZmfR03S3+tdbe8TtY310oZ49ZhaWzn//wjH+8+dV/+kNL5FeHa2I/Ktqppdfrfa357+PKap5ebp+e755fnu367+4/511//U//y+l1s83//7fXbUMsmqpvV8nqz2ujdt5GuU3djrjcmKb3RN81mrXd/5qF7fOq3f3zr3SYm15B/5jl/10/Py08Pr9+6UdfKXevwUfnW2Varv+f3QCn7x5e/69dfvrzLv1zd96tfdn/qh49aLdS ... "
}Bold fields are required
Field
Type
Description
periodId
integer
The unique identifier of the period. Overtime periods start at 11. 1 = 1 OT1 = 11
compressedData
string
The compressedData key is a base64 encoded zlib compressed JSON string.
[
{
"class": "sport",
"eventId": "279299bd-7fa5-11ea-8359-00224d6a23e5",
"eventTime": "2019-06-23T03:09:18",
"eventType": "substitution",
"subType": "out",
"entityId": "0a970bca-fcf1-11e8-8eb2-f2801f1b9fd1",
"personId": "2ef7849a-fcf1-11e8-8eb2-f2801f1b9fd1",
"timestamp": "2020-04-16T05:43:10.279003",
"periodId": 4,
"clock": "PT10M0S",
"success": true,
"scores": {
"0a970bca-fcf1-11e8-8eb2-f2801f1b9fd1": "64",
"0a970e5e-fcf1-11e8-8eb2-f2801f1b9fd1": "68"
}
}, {
"class": "sport",
"eventId": "279299bf-7fa5-11ea-8359-00224d6a23e5",
"eventTime": "2019-06-23T03:09:18",
"eventType": "substitution",
"subType": "in",
"entityId": "0a970bca-fcf1-11e8-8eb2-f2801f1b9fd1",
"personId": "2ef7836e-fcf1-11e8-8eb2-f2801f1b9fd1",
"timestamp": "2020-04-16T05:43:10.279063",
"periodId": 4,
"clock": "PT10M0S",
"success": true,
"scores": {
"0a970bca-fcf1-11e8-8eb2-f2801f1b9fd1": "64",
"0a970e5e-fcf1-11e8-8eb2-f2801f1b9fd1": "68"
}
},
..... other events ...
]
Bold fields are required
Field
Type
Description
array
An array containing the events in this period.
X
object
An object containing information about a specific event. See the section for event for more information.
Was this helpful?