Fetch the complete list of matches for a season, ordered by date. Without aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Danielsl4/TFG_DAM_2526_Consulta2/llms.txt
Use this file to discover all available pages before exploring further.
season_id query parameter the API returns matches for the currently active season. Responses are served from Redis when available; the cache is segmented by season and by authenticated user so vote data remains accurate per caller.
Endpoint
Authentication
Optional. Supply aBearer token in the Authorization header to receive the authenticated user’s vote (userVote) on each match. Unauthenticated requests return userVote: null.
Query parameters
Filter matches by season ID. When omitted, the API returns matches belonging to the current active season.
Response
Returns an array of match objects. Each object contains:Unique match identifier.
Match date and time in ISO 8601 format (
YYYY-MM-DDTHH:MM:SS).Home team data.
null when the team slot is still unassigned (e.g. knockout bracket placeholders).Away team data.
null when unassigned.Descriptive label for an unresolved home-team slot (e.g.
"Winner Group A").Descriptive label for an unresolved away-team slot.
Goals scored by the home team.
null before the match begins.Goals scored by the away team.
null before the match begins.Penalty shootout goals for the home team (knockout rounds only).
Penalty shootout goals for the away team (knockout rounds only).
Venue information.
Match status. One of:
pendiente, en_curso, finalizado.Competition phase. One of:
fase_de_grupos, octavos, cuartos, semis, final.Name of the group this match belongs to.
null for knockout-phase matches without a group.Localised day name in Spanish (e.g.
"Lunes", "Sábado").Free-text notes added by the referee.
The authenticated user’s current vote:
local, empate, or visitante. null when the user has not voted or the request is unauthenticated.Aggregated vote counts for this match.
Caching
Responses are cached in Redis and keyed by both season and user identity:| Scenario | Cache key |
|---|---|
| No auth, current season | matches:current |
| No auth, specific season | matches:season:{season_id} |
| Authenticated, current season | matches:current:user:{user_id} |
| Authenticated, specific season | matches:season:{season_id}:user:{user_id} |