Message: basic_livescore
This type of message is sent when the game result has been changed. Available only for partners with “Livescore Add-on” purchased.
Message example:
{
"id":35376083,
"uuid":"9dd67741-56f9-47e6-9c86-c239cf48c5e6",
"type":"basic_livescore",
"source":1,
"ut":1662614487,
"data":{
"eventbasiclivescoreinfo":{
"event":{
"id":1822556,
"name":"Barcelona - Real Madrid",
"start_date":"2022-09-07 21:00",
"ft_only":"no",
"status_id":33,
"status_name":"1st half",
"status_type":"live",
"sport_id":5,
"sport_name":"Soccer",
"clock_time":290,
"clock_status":"running",
"ut":1662614487,
"participants":[
{
"counter":1,
"id":51448,
"type":"team",
"name":"Barcelona",
"short_name":"Barcelona",
"results":[
{
"id":412,
"value":0,
},
{
"id":411,
"value":0,
},
{
"id":2,
"value":0,
},
{
"id":3,
"value":0,
},
{
"id":4,
"value":0,
},
{
"id":5,
"value":"",
},
{
"id":133,
"value":"",
},
{
"id":134,
"value":"",
},
{
"id":7,
"value":"",
},
{
"id":104,
"value":"",
}
]
},
{
"counter":2,
"id":51447,
"type":"team",
"name":"Real Madrid",
"short_name":"Real Madrid",
"results":[
{
"id":412,
"value":0,
},
{
"id":411,
"value":0,
},
{
"id":2,
"value":2,
},
{
"id":3,
"value":2,
},
{
"id":4,
"value":2,
},
{
"id":5,
"value":"",
},
{
"id":133,
"value":"",
},
{
"id":134,
"value":"",
},
{
"id":7,
"value":"",
},
{
"id":104,
"value":"",
}
]
}
]
}
}
}
}
Message structure details:
.message |
|
---|---|
id | Unique identifier for the message |
uuid | Universally unique identifier |
type | basic_livescore |
source | Internal attribute, please do not use this attribute |
ut | Information about the date and time of when the message was created. Format UNIX_TIMESTAMP. |
..data |
|
…eventbasiclivescoreinfo |
|
...event |
|
id | Identifier of the event |
name | Name of the event |
start_date | Start date for the event in format: YYYY-MM-DD hh:mm |
ft_only | Determines if only the full time result/score of the event is given. Possible values:
|
status_id | Unique identifier of the event status. The list of available statuses you can find in API service method: statuses.index |
status_name | Name of the status |
status_type | Type of status. Possible values:
|
sport_id | Identifier for the sport in which the event is played. The list of available sports you can find in API service method: sports.index |
sport_name | Name of sport |
clock_time | Number of seconds that have passed in the current period |
clock_status | Clock status. Possible value:
|
ut | Information about the date and time of when the game was updated. Format UNIX_TIMESTAMP. |
....participants | Only last changed participant will be sent in the message. |
counter | Number of participants in the event. Participant with counter="1" is the home team, "2" is the away team |
id | Unique identifier of the participant. The list of available participants you can find in API service method: participants.index |
type | Informs about the type of participant. Possible values:
|
name | Participant name |
short_name | Participants abbreviated name, max length: 20 characters |
.....results | |
id | Unique identifier for the result. Possible values are different depending on the sport. For more information please find node details in the sports.show API method |
value | Value related to the results |