Football Match State V1 (old)
- 1 Ably Football Match State V1
- 1.1 Introduction
- 1.2 Football Match State
- 2 Section Explanations
- 2.1 matchActions
- 2.1.1 collections specific properties
- 2.1.2 goals
- 2.1.3 yellowCards
- 2.1.4 secondYellowCards
- 2.1.5 straightRedCards
- 2.1.6 penalties
- 2.1.7 penaltyRiskStateChanges
- 2.1.8 substitutions
- 2.1.9 shotsOnTarget
- 2.1.10 shotsOffTarget
- 2.1.11 shotsOffWoodwork
- 2.1.12 blockedShots
- 2.1.13 corners
- 2.1.14 cornersV2
- 2.1.15 penaltiesAwarded
- 2.1.16 fouls
- 2.1.17 offsides
- 2.1.18 goalKicks
- 2.1.19 missedPenalties
- 2.1.20 savedPenalties
- 2.1.21 throwIns
- 2.1.22 possessionChanges
- 2.1.23 stoppageTimeAnnouncements
- 2.1.24 phaseChanges
- 2.1.25 clockActions
- 2.1.26 dangerStateChanges
- 2.1.27 bookingStateChanges
- 2.1.28 lineupUpdates
- 2.1.29 systemMessages
- 2.1.30 kickOffs
- 2.1.31 varStateChanges
- 2.2 matchStatus
- 2.3 statistics
- 2.4 awayTeam
- 2.5 homeTeam
- 2.6 other
- 2.6.1 source
- 2.6.2 fixtureId
- 2.6.3 sequence
- 2.6.4 messageTimestampUtc
- 2.6.5 isReliable
- 2.6.6 isCoverageCancelled
- 2.6.7 reliabilityReasons
- 2.1 matchActions
Ably Football Match State V1
Introduction
The document describes the Football V1 Match state contract and provides examples of using it.
Example API calls:
PullAPI: https://platform.matchstate.api.geniussports.com/api/v1/sources/GeniusSportsInPlay/sports/10/fixtures/10489892
Ably LiveAccess: https://platform.matchstate.api.geniussports.com/api/v1/sources/GeniusSportsInPlay/sports/10/fixtures/10489892/liveaccess
Football Match State
Section Explanations
matchActions
NOTE: All Match Actions includes the following additional fields (hence description is not copied in below actions).
"matchActions": [
{
"id": 0,
"sequenceId": 0,
"phase": "PreMatch",
"timeElapsedInPhase": "string",
"team": "Home",
"playerInternalId": "string",
"isConfirmed": true,
"timestampUtc": "2022-10-19T14:16:10.998Z"
}
| A unique identifier of the action |
| Within the scope of the action collection, the sequence of the action |
| Enum that describes the phase at which the action occurred: PreMatch, FirstHalf, HalfTime, SecondHalf, PostMatch, FullTimeNormalTime, ExtraTimeFirstHalf, ExtraTimeHalfTime, ExtraTimeSecondHalf, Penalties |
| The time in seconds in the phase that the action occured |
| Indicates which team made that action |
| The player id that the action was awarded to |
| Indicates whether the action is confirmed |
| The Utc timestamp of the action |
collections specific properties
NOTE: All Match Actions collections can include the following additional fields.
{
"isCollected": true,
"isReliable": true,
"timestampUtc": "2022-10-19T14:16:10.999Z"
}
| True if this data type is being collected for this fixture, False otherwise |
| Indicates whether the current match collection is reliable or not |
| The Utc timestamp of the collection |
goals
The collection of goals scored in a match.
"goals": {
"goals": [
{
"id": 0,
"sequenceId": 0,
"phase": "PreMatch",
"timeElapsedInPhase": "string",
"team": "Home",
"scoredByInternalId": "string",
"assistByInternalId": "string",
"isOwnGoal": true,
"wasScoredFromPenalty": true,
"isConfirmed": true,
"timestampUtc": "2022-10-19T14:16:10.998Z"
}
]
| The player that scored the goal |
| The player assisted in the scoring of the goal |
| True if this was an own goal, False otherwise. Will be null if it is not known whether goal was an own goal |
| True if this goal was scored from a penalty, False otherwise. Will be null if it is not known whether goal was scored from a penalty |
yellowCards
The collection of yellow cards awarded.
secondYellowCards
The collection of second yellow cards awarded.
straightRedCards
The collection of straight red cards awarded.
penalties
The collection contains information about the given penalty.
| The penalty outcome with one of the following properties: |
penaltyRiskStateChanges
The collection of penalty risk changes will include “Start” and “Stop” of penalty risk actions.
| The risk state of a penalty with the following properties : |
substitutions
The collection lists all the player substitutions that occur in a match.
| The player id coming onto the pitch |
| The player id coming off the pitch |
shotsOnTarget
The collection of on-target shots by each team
| The player id that saved the shot |
| If the ball was returned to play |
shotsOffTarget
The collection of off-target shots by each team
shotsOffWoodwork
The collection of times each team has hit the woodwork
| If the ball was returned to play |
blockedShots
The collection of times each team has had an on-target shot blocked
corners
The collection of corners awarded to each team
cornersV2
The new collection of corners awarded to each team
| Object contains corner awarded properties: |
| Object contains corner taken properties: |
penaltiesAwarded
The collection of awarded penalties
fouls
The collection of fouls committed by each team
| The team that made the foul |
| The player id that was fouled |
| The player id that cause the foul |
offsides
The collection of offsides by each team
goalKicks
The collection of goal kicks by each team
missedPenalties
The collection of missed penalties by each team
savedPenalties
The collection of saved penalties by each team
throwIns
The collection of throw Ins by each team
possessionChanges
The collection of possession data changes by each team
stoppageTimeAnnouncements
The collection of stoppage announcement time by each team
| Game’s stoppage time |
phaseChanges
The collection of match phase changes in order by each team
| Enum that describes the previous phase of the match |
| Enum that describes the current phase of the match |
| The start time of the current phase |
clockActions
The collection of clock actions
| An Enum describing the clock activity. Possible values are: |
| True if the clock is running, False otherwise |
dangerStateChanges
The collection of danger state changes
| Enum of danger state data: |
bookingStateChanges
The collection of booking state changes
| An Enum that describes the current booking state. Possible values: |
lineupUpdates
The collection of all the changes in lineups
| An array of changes to the lineups |
| A lineup |
| An array of Player objects listing players who will start the match on the pitch:
|
| An array of Player objects listing players who will start the match on the bench |
|
|
| The formation for the team |
systemMessages
The collection of any system messages sent regarding the match
| Message identifier |
| The actual message |
kickOffs
The collection of kickoffs by each team
varStateChanges
The collection of var state changes
| An Enum that describes the current Video Assistant Referee state. Possible values: |
| Enum that describes the reason for the var: |
| Enum that describes the outcome of the var: |
| (V2) An Enum that describes the current Video Assistant Referee outcome. Possible values: |
| (V2) An Enum that describes the current Video Assistant Referee outcome. Possible values: |
matchStatus
The matchStatus property reflects the current match status.
"matchStatus": "Finished"
| Enum that describes the current match status: |
statistics
Statistics for the match
awayTeam
Indicates the away team details
| Away team Id |
| Away team name |
| Describes strip details.
*All colors are RGB scale
|
homeTeam
Indicates the away team details
| Home team Id |
| Home team name |
| Describes strip details.
*All colors are RGB scale
|
other
Overview of the game data
source
The source property describes the source that is providing the feed for Match State
fixtureId
The fixtureId property indicates the id of the mapped source fixture to Genius Sports fixture
Use case: Id of this fixture (match).
sequence
The sequence property indicates
Use case: Sequence of the latest feed match event.
messageTimestampUtc
The messageTimestampUtc property indicates the exact time of this match state message.
Use case: Time when match state was last updated.
isReliable
The isReliable property is used to note whether the given match state is reliable or not. This property is a result of the reliabilityReasons statuses.
Reliability is used to indicate that some of the information within the message may be inaccurate and it should not be relied on for purposes where message accuracy is critical.
Use case: Current match state is reliable.
isCoverageCancelled
The isCoverageCancelled property is used to note whether the coverage of this match has been canceled or not.
Use case: Coverage for this match has not been canceled.
reliabilityReasons
The reliabilityReasons section contains a list of items considered in order to make an automatic decision about whether the match state is reliable or not.
Use case: The heartbeat for the current match state has been lost, the feed is considered reliable and the coverage is unknown.
| The time that coverage was cancelled |
| An Enum that describes the current Video Assistant Referee state. Possible values: |
| An Enum that describes the current Video Assistant Referee reason. Possible values: |
| An Enum that describes the current Video Assistant Referee outcome. Possible values: |
| (V2) An Enum that describes the current Video Assistant Referee outcome. Possible values: |
| (V2) An Enum that describes the current Video Assistant Referee outcome. Possible values: |
| Boolean: True if this is the second leg of a two match fixture |
| The score from the first leg of a two-leg fixture. Populated only if IsSecondLeg is True |
| The expected duration of the first and second halves |
| The expected duration of the first and second halves of extra time if match can go to extra time |
| True if the match will go to extra time if normal time ends in a draw |
| True if the match will go straight to penalties if normal time ends in a draw |
| True if the match will go to penalties if extra time ends in a draw |
| Indicates the source of this match state. |
| Indicates the mapped Genius Sports fixture id |
| Indicates the sequence number of the feed match events |
| Timestamp of the latest update to match state (UTC) |
| Indicates whether the current match state is reliable or not |
| Indicates whether the coverage for this particular match has been cancelled or not |
|
|