Attributes of the event
Destination X coordinate of the event when the event has a start and end position (ie pass/throw in/goal kick/corner...)
Destination Y coordinate of the event when the event has a start and end position (ie pass/throw in/goal kick/corner...)
Game time in seconds from the start of the period.
Name of the event, something like "Pass", "Shot"....
Game period, starting from 1.
Player that generated the event. May be undefined for some event types.
The rule that created this event, undefined if it comes from the data source.
Raw tracking data associated with this event.
This value describe if the event action has failed or not, the meaning may vary depending on the event type.
Team that generated the event. May be undefined for some event types.
UTC absolute timestamp of the event.
x position of the event in percent of the field length (0 is the left goal)
y position of the event in percent of the field width (0 is the left sideline)
if the tracking information is available this object contains the tracking actions relative to the ball
Get the opponent team (the team that is not the one associated to this event)
if the tracking information is available this object contains the positional information of the players and the ball
Add an attribute to an event, optionally if you specify a player or a team the attribute will be added to all the events by the given player or team from that point on. If you specify a sequence as target the attribute will be added to all the events in the given sequence.
name of the attribute
optional value for the attribute (not available for boolean attrs, like "Cross")
the target for the attribute, player and team attributes persist from the time you add them to the end of the match
Returns true if the event can break a sequence.
if the event can break a sequence
Returns true if the event can create a sequence.
if the event can be the first one of a new sequence
Clone the event
a new event like the current one, not added to the match, with a different id
Check if the destination coordinates are within the given zone. Destination coordinates may not be available in many events, in that case the API returns false.
the zone to check against
Find the distance between two different events as % of the field size.
other event
the distance in %
Find the distance (in % of the field size) of the event from a given point.
x position on the field (0-100)
y position on the field (0-100)
the distance in %
Returns true if this event will break a sequence.
if the event does break the sequences.
Get the value an attribute with the given name from the event, returns undefined if the attribute does not exist.
name of the attribute (eg "Cross")
the attribute value, if it exists, undefined otherwise.
Find the depth of a team or a player group.
DEPTH is the horizontal distance between the front-most and back-most player of the selected player group/team.
the id of the team or the playergroup to apply the depth rule to, if not specified falls back to the team in the current event.
the number of meters between the front-most and the back-most player, or 0 if tracking data is not available.
Find the width of a team or a player group.
Width is the vertical distance between the left-most and right-most player on a team/player group.
the id of the team or the playergroup to apply the depth rule to, if not specified falls back to the team in the current event.
the number of meters between the left-most and right-most player, or 0 if tracking data is not available.
Check if the event has an attribute with the given name.
name of the attribute (eg "Cross")
a boolean.
Check if the event occurred within the given zone.
the zone to check against
Check if the event is of the given type (ie event.name === name).
type of the event (for instance Pass)
Returns true if the event is a shot event
An event occurred during the game