Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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,
                        "short_name":"Progress",
                        "name":"Progress",
                        "value":0,
                        "data_type":"binary"
                     },
                     {
                        "id":411,
                        "short_name":"Winner",
                        "name":"Winner",
                        "value":0,
                        "data_type":"binary"
                     },
                     {
                        "id":2,
                        "short_name":"Result",
                        "name":"Result",
                        "value":0,
                        "data_type":"integer"
                     },
                     {
                        "id":3,
                        "short_name":"Regular time",
                        "name":"Regular time",
                        "value":0,
                        "data_type":"integer"
                     },
                     {
                        "id":4,
                        "short_name":"First half",
                        "name":"First half",
                        "value":0,
                        "data_type":"integer"
                     },
                     {
                        "id":5,
                        "short_name":"Second half",
                        "name":"Second half",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":133,
                        "short_name":"Extratime 1st half",
                        "name":"Extratime 1st half",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":134,
                        "short_name":"Extratime 2nd half",
                        "name":"Extratime 2nd half",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":7,
                        "short_name":"Penalty",
                        "name":"Penalty",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":104,
                        "short_name":"Overtime",
                        "name":"Overtime",
                        "value":"",
                        "data_type":"integer"
                     }
                  ]
               },
               {
                  "counter":2,
                  "id":51447,
                  "type":"team",
                  "name":"Real Madrid",
                  "short_name":"Real Madrid",
                  "results":[
                     {
                        "id":412,
                        "short_name":"Progress",
                        "name":"Progress",
                        "value":0,
                        "data_type":"binary"
                     },
                     {
                        "id":411,
                        "short_name":"Winner",
                        "name":"Winner",
                        "value":0,
                        "data_type":"binary"
                     },
                     {
                        "id":2,
                        "short_name":"Result",
                        "name":"Result",
                        "value":2,
                        "data_type":"integer"
                     },
                     {
                        "id":3,
                        "short_name":"Regular time",
                        "name":"Regular time",
                        "value":2,
                        "data_type":"integer"
                     },
                     {
                        "id":4,
                        "short_name":"First half",
                        "name":"First half",
                        "value":2,
                        "data_type":"integer"
                     },
                     {
                        "id":5,
                        "short_name":"Second half",
                        "name":"Second half",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":133,
                        "short_name":"Extratime 1st half",
                        "name":"Extratime 1st half",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":134,
                        "short_name":"Extratime 2nd half",
                        "name":"Extratime 2nd half",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":7,
                        "short_name":"Penalty",
                        "name":"Penalty",
                        "value":"",
                        "data_type":"integer"
                     },
                     {
                        "id":104,
                        "short_name":"Overtime",
                        "name":"Overtime",
                        "value":"",
                        "data_type":"integer"
                     }
                  ]
               }
            ]
         }
      }
   }
}


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:

  • yes - result/score is updated only when the event is finished 

  • no - result/score is updated during the event

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:

  • live

  • scheduled

  • finished

  • cancelled

  • interrupted

  • deleted

  • other

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:

  • running

  • stopped

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:

  • person

  • team

  • double

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


  • No labels