StatsHub Docs
APIEndpoint referenceTournament

/tournament/{id}/{seasonId}/players

Every player with statistics recorded in a season, with their team.

GET
/api/tournament/{id}/{seasonId}/players

Every player with statistics recorded in a season, with their team.

Two things about the original are kept deliberately.

The tournament and season are resolved and checked, but the player query filters on the season alone — it never joins back to the tournament. A comment in the original explains why: an earlier version referenced the seasons table without joining it and Postgres rejected the query outright, so the fix dropped the clause on the grounds that a season id already identifies one tournament season. The lookups above therefore act as validation only.

The result is unbounded and unordered, exactly as the original. Adding a LIMIT here would change which players a client receives.

Path Parameters

id*string
seasonId*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/tournament/string/string/players"
{  "data": [    "string"  ],  "message": "string"}