FutsalLeague Manager exposes a statistics API that surfaces season-wide numbers at three levels: global aggregates for the whole competition, per-team rankings across five performance dimensions, and individual player leaderboards for goals and cards. All figures are scoped to a single season and update automatically as matches are finalized. Registered users also have access to a personal stats view that shows their prediction game score and full vote history.Documentation 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.
Global statistics
Theglobal block in the statistics response summarises the entire season in six figures.
| Field | Description |
|---|---|
matchesPlayed | Total number of finalized matches in the season. |
totalGoals | Sum of all goals scored across every finalized match. |
avgGoals | Average goals per finalized match, rounded to two decimal places. |
totalYellows | Sum of all yellow cards issued, aggregated from team_stats. |
totalReds | Sum of all red cards issued, aggregated from team_stats. |
totalCleanSheets | Number of finalized matches where at least one side kept a clean sheet (home goals = 0 or away goals = 0). |
Team rankings
TheteamRankings block contains five separate top-5 lists, each ranking teams by a different metric.
| Ranking | Sorted by |
|---|---|
mostWins | Most matches won (won DESC). |
mostLosses | Most matches lost (lost DESC). |
mostDraws | Most matches drawn (drawn DESC). |
bestOffense | Most goals scored (goals_for DESC). |
bestDefense | Fewest goals conceded (goals_against ASC). |
id, name, logo_url, and the raw stat values (won, lost, drawn, goals_for, goals_against).
Individual player rankings
TheindividualRankings block contains three top-5 player lists.
| Ranking | Sorted by |
|---|---|
topScorers | Most goals scored in regular time (goals DESC). Penalty-shootout goals are excluded. |
topYellowCards | Most yellow cards received (yellow_cards DESC). Only players with at least one yellow card appear. |
topRedCards | Most red cards received (red_cards DESC). Only players with at least one red card appear. |
id, name, photo_url, their current team_name, and the value (the raw stat count).
Season filtering
All statistics are scoped to a season. Passseason_id to query any historical season.
season_id is omitted, the endpoint resolves the active season automatically (is_active = true).
Statistics response
Voting leaderboard
A separate endpoint returns the top 10 users ranked by prediction game points for the season.user role are included.
user_points row for the season; users who have never predicted correctly are not shown.
Personal stats
Authenticated users can retrieve their own prediction game summary via a protected endpoint.history array contains the last 20 matches the user voted on for the season, ordered by match date descending. Each entry shows the prediction made (my_prediction), the actual result (real_result), and whether a point was awarded (points_awarded: 1 for correct, 0 or null for incorrect or still pending).