Message: incident [draft]
This type of message is sent when an incident occurs during the event/match that is running. The message includes information concerning the last incident and ALL event details (results, statistics) are updated in real time.
Message structure
.message | |
---|---|
id | Unique identifier for the message |
type | incident |
source | Internal attribute, please don't use this attribute |
ut | Information about the date and time of when the message was created. Format UNIX_TIMESTAMP |
..data | |
...incident | |
id | Unique identifier for the incident that occurred in the event |
action | Describes type of scout operation for the incident. Possible values:
|
incident_id | Identifier for the incident |
incident_name | Name of the incident. e.g. goal, yellow card, red card etc. |
participant_id | Unique identifier for the participant (player, team or coach) name related to incident |
participant_name | Participant's (player, team or coach) name related to incident. |
subparticipant_id | Team id that the player or coach is part of |
subparticipant_name | Team name that the player or coach is part of |
info | Internal attribute, please don't use this attribute |
important_for_trader | Possible values:
|
important | Internal attribute, please don't use this attribute |
add_data | Internal attribute, please don't use this attribute |
show_popup | Internal attribute, please don't use this attribute |
show_scores | Internal attribute, please don't use this attribute |
show_action | Internal attribute, please don't use this attribute |
show_time | Internal attribute, please don't use this attribute |
show_on_timeline | Internal attribute, please don't use this attribute |
event_time | Information when the incident occurs in format MM:SS |
event_status_id | Unique identifier for the event status |
event_status_name | Name of the event status |
x_pos | Ball position on X axis (percents) |
y_pos | Ball position on Y axis (percents) |
...event | |
id | Identifier of the event |
action | Describes type of operation for the event. Possible values:
|
start_date | Start date for the event in format: YYYY-MM-DD hh:mm |
name | Name of the event |
ft_only | Determines if only the full time result/score of the event is given . Possible values:
|
coverage_type | Type of event coverage. Possible values:
|
status_id | Unique identifier for the event status. The list of available statuses can be found in the API service method: statuses.index |
sport_id | Identifier for the sport in which the event is played. The list of available sports can be found in the API service method: sports.index |
round_id | The list of available rounds can be found in the API service method: rounds.index. Possible null value |
round_name | Name of the round. Possible null value |
day | Day of the season. This attribute is deprecated and will no longer used |
neutral_venue | Determines if event is played at a neutral venue. Possible values:
|
item_status | Describes status for the item (record). Possible values:
|
clock_time | Number of seconds that have passed in the current period |
clock_status | Clock status. Possible value:
|
area_id | Identifier for the area in which the competitions are played |
competition_id | Unique identifier for the competition. The list of available competitions can be found in the API service method: competitions.index |
season_id | Unique identifier for the season. |
stage_id | Unique identifier for the stage |
tour_id | Unique identifier for the tour in which a competition is played. The list of available competitions can be found in the API service method: tours.index |
gender | Competition gender. Possible values:
|
bet_status | Bet status. Possible values:
|
relation_status | Relation status. Attribute for internal purposes. Possible value:
|
status_type | Type of status. Possible values:
|
.....details | |
id | Unique identifier for the event details e.g: 1st quarter start time, length of the period. Possible values are different depending on the sport. |
value | Value related to the event detail |
.....participants | Only last changed participant will be sent in the message. |
counter | Number of participant 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 can be found in the API service method: participants.index |
name | Participant name |
short_name | Participants abbreviated name, max length: 20 characters |
acronym | Max 3 characters in length mini name, e.g. BAR, REA |
area_id | Determines the area represented by the participant. The complete list of possible areas can be retrieved using the API resource: areas.index |
area_name | Area name represented by the participant |
area_code | Max 3 characters in length of the abbreviated area name e.g. GER, POL, FRA |
ut | Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP |
......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 |
......stats | |
id | Unique identifier for the statistic. 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 statistic |
......subparticipants | |
.......subparticipant | |
id | Unique identifier of the participant |
counter | Number of subparticipant in the event |
name | Participants name |
short_name | Participants abbreviated name, max length: 20 characters |
acronym | Max 3 characters in length mini name, e.g. BAR, REA |
area_id | Unique identifier for the area represented by the participant |
area_name | Area name represented by the participant |
area_code | Max 3 characters in length for the abbreviated area name e.g. GER, POL, FRA |
ut | Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP |
........results | |
.........result | |
id | Unique identifier for the result |
value | Value related to the result |
........stats | |
.........stat | |
id | Unique identifier for the statistic |
value | Value related to the statistic |