The Statistics API exposes three endpoints. The main endpoint returns season-level aggregates alongside team and individual player rankings. Two additional endpoints expose a public top-10 user leaderboard and an authenticated endpoint that returns a user’s own porra (match-prediction) points and 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.
GET /statistics — season statistics and rankings
GET /statistics — season statistics and rankings
Returns global season statistics, five-team rankings across several categories, and top-five individual player leaderboards. When no
Path:
Auth: None
season_id is given, the active season is used.Method: GETPath:
/statisticsAuth: None
Query parameters
Season to aggregate statistics for. Defaults to the active season.
Response
Aggregate match and card counts for the season.
Five ranked lists of teams, each containing up to 5 entries.
Top-5 player leaderboards.
Example
Response
GET /statistics/user-ranking — top-10 users by porra points
GET /statistics/user-ranking — top-10 users by porra points
Returns the global leaderboard of the top 10 users ranked by total porra (match-prediction) points. Ties are broken alphabetically by username.Method:
Path:
Auth: NoneResponse —
An array of up to 10 user objects:
GETPath:
/statistics/user-rankingAuth: None
Response — 200 OK
An array of up to 10 user objects:User ID.
Username.
Total porra points accumulated.
Example
Response
GET /statistics/user-stats — personal porra stats (auth required)
GET /statistics/user-stats — personal porra stats (auth required)
Returns the authenticated user’s total porra points, their current global rank, and a history of their last 20 match votes with outcomes.Method:
Path:
Auth: JWT requiredResponse —
GETPath:
/statistics/user-statsAuth: JWT required
Response — 200 OK
Total porra points earned by the user.
User’s position in the global ranking (1-indexed).
Up to 20 most recent vote records, ordered by match date descending.