TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/danielsl4/TFG_DAM_2526/llms.txt
Use this file to discover all available pages before exploring further.
/matches endpoint returns an ordered list of match objects for a season. Results are sorted by date ascending, then by match ID.
Authentication is optional. When a valid JWT is provided, each match object includes the userVote field showing the authenticated user’s current vote for that match. Without a token, userVote is null.
Responses are cached in Redis per season and per user combination. The cache is invalidated automatically whenever match data changes (events added or removed, status updates, finalisation).
Request
Method:GETPath:
/matches
Query parameters
ID of the season to retrieve matches for. When omitted, the endpoint returns matches belonging to the currently active season.
Headers
Optional.
Bearer <token> — include to receive the authenticated user’s vote in each match object.Response
200 OK
An array of match objects. Returns an empty array if no matches exist for the requested season.Unique match identifier.
Match date and time in ISO 8601 format (
YYYY-MM-DDTHH:MM:SS).Null when the home team slot is not yet assigned (e.g. a bracket placeholder).
Null when the away team slot is not yet assigned.
Descriptive label used when the home team is not yet determined (e.g.
"Winner Group A").Descriptive label used when the away team is not yet determined.
Goals scored by the home team. Null before the match starts.
Goals scored by the away team. Null before the match starts.
Home team penalty shootout goals. Only relevant when the match is decided by penalties.
Away team penalty shootout goals.
Venue where the match is played.
Current match status. One of
"pendiente" (upcoming), "en_curso" (in progress), or "finalizado" (finished).Competition phase, e.g.
"fase_de_grupos" or "eliminatoria".Name of the group this match belongs to, or null for knockout stages.
Localised day name in Spanish (e.g.
"Lunes", "Sábado"), derived from the match date.Free-text notes set by the referee, such as weather conditions or incidents.
The authenticated user’s current vote (
"local", "empate", or "visitante"). Null when no token is provided or the user has not voted.Aggregate vote counts for the match.
Examples
200 response (excerpt)