States
Last updated
Last updated
The state
include allows you to retrieve additional information about the current state of a fixture. Including the state
in your API request ensures that the response includes details about the current state of the fixture, such as whether the match is ongoing, has ended, is postponed, or is in any other specific state.
You can use the state include in your API request by adding the &include=
parameter and setting it to state
to ensure that the response includes information about the current state of the fixture. For a GET All Fixtures request, that would look like this:
If you want to filter fixtures based on specific states, you can use the &filter=
parameter in your API request. Then you can filter like this: &filter=fixtureStates:StateIDs
. This is optional and depends on your use case. So, if, for example, you want to manage fixtures that are delayed or interrupted, use the state information to filter and handle such scenarios like this:
You can find all the different Fixture State IDs on this page:
Understanding how the different fixture states interact and transition between each other is crucial for effectively managing football data. Below is an in-depth explanation of how the various fixture states in our API can interact and interchange with one another:
State | Transitions to | Why? |
---|---|---|
|
| Game has been suspended and will continue at a later time or day |
|
| Game has been cancelled |
|
| Win has been awarded to a participant because there are no other contestants |
|
| Game has been abandoned and will continue at a later time or day |
|
| Game is delayed, so it will start later |
|
| The winner is being decided externally |
|
| The game is postponed |
|
| The game starts |
|
| When the game reaches half-time |
|
| When half-time has been concluded |
|
| When the 2nd half has concluded |
|
| When no winner has been decided (usually in knock-out fixtures) |
|
| When Extra Time starts |
|
| When the 1st half of extra time ends |
|
| When the short break between extra time ends |
|
| When extra time ends |
|
| When no winner was decided and the match goes to penalties |
|
| When the penalty shoot-out starts. |
|
| When the penalty shoot-out has concluded |
Awarded (AWAR
): Winner is being decided externally.
No further transitions. The game remains in the Awarded
state.
Interrupted (INT
): The game has been interrupted, possibly due to bad weather.
Transitions to various states based on the reason for interruption.
Awaiting Updates (AU
): Can occur when there is a connectivity issue or something.
No immediate transition. The game remains in the Awaiting Updates
state until further updates.
Deleted (DEL
): Game is not available anymore via normal API calls because it has been replaced.
Can be retrieved by adding &filters=deleted
to a request to the Fixtures endpoint.
Pending (PEN
): The fixture is awaiting an update.
No immediate transition. The game remains in the Pending
state until further updates.