Recent form
Form summarizes a team's latest completed matches, commonly as wins, draws and losses. A five-character value such as WDLWW is compact and easy to display, but it is not a complete performance model. It treats a narrow win and a dominant win equally and may mix opponents of very different strength.
Use form as descriptive context. Define whether the sequence is newest-first or oldest-first, whether all competitions are included and what happens when fewer than five matches are available.
Elo-style strength ratings
An Elo-style system updates team ratings after each result. The size and direction of the update depend on the expected outcome and the observed outcome. Beating a much stronger opponent should usually move a rating more than beating a much weaker opponent.
A rating is only meaningful inside its own implementation. Starting values, home advantage, season resets, goal-margin adjustments and the match set all affect the number. OpenFootAPI labels the field Elo-style rather than implying equivalence with an external official rating.
Rest days and schedule context
Rest days measure the interval since a team's previous completed match. The value can help describe fixture congestion, but it does not capture travel, squad rotation or training load. At the beginning of a dataset, there may be no previous match and the correct value is null rather than an invented number.
Table position and venue record
Table position is derived from current-season results and should be treated as a snapshot. Early in a season, a position can move sharply because the sample is small. Postponed matches can also leave teams with different numbers of games played.
Venue record separates home and away performance into wins, draws and losses. It adds useful context without claiming that venue alone caused the difference.
Head-to-head history
Head-to-head aggregates previous meetings between the same teams. It is easy to understand and popular in match previews, but old meetings may involve different managers, players or competitive conditions. Always return the number of included matches so consumers can distinguish a long history from a single result.
Why one context endpoint is useful
Without a context endpoint, every customer must fetch match history, resolve team identity, choose a time window, sort results and calculate the same features. A normalized context response performs that work once and exposes the freshness of the underlying fields.
OpenFootAPI's match-context endpoint returns both teams, recent form, Elo-style rating, rest, table position, venue record and head-to-head in one response. Fields can be null when the available history is insufficient; clients should treat that as explicit information, not an error.
curl "https://openfootapi.com/v1/matches/match_olg_83156/context" \
-H "Accept: application/json"Frequently asked questions
How many matches should recent form include?
Five is a common display window because it balances recency and readability, but the correct window depends on the product. The definition must remain consistent and documented.
Is Elo a prediction?
Elo is a relative strength rating. It can be an input to a prediction model, but the rating alone is not a complete probability forecast.
Why can match-context fields be null?
A new season or incomplete archive may not contain enough prior matches to calculate rest, table position or form reliably. Returning null is more honest than fabricating a value.
Sources and further reading
Product descriptions and examples were checked against the OpenFootAPI v1 contract on 21 August 2026.
