StatsHub Docs
APIEndpoint referenceDashboard

/dashboard/leagues/{id}/seasons

The seasons a tournament has fixtures for.

GET
/api/dashboard/leagues/{id}/seasons

The seasons a tournament has fixtures for.

name and year are both built from the season id, because that is all the events table carries — there is no join to seasons here. A season with a null id is named "Season " and reported as year "Unknown", which is the original's output and not a placeholder introduced by the port.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Path Parameters

id*integer
Formatint64

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/dashboard/leagues/0/seasons"
[  {    "property1": null,    "property2": null  }]