Player seasons
GET
/
View as MarkdownTry in Playground →
Lists each league and season for which the player has statistics, together with the statistics types offered in each (overall, home, away, regularSeason, playoffs).
Parameters
idpathrequired
DataSportsAPI player id, a positive integer
Response
- data
PlayerLeagueSeasons[]- meta
- count
Any /v2 call can also come back with one of the common errors.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/players/{id}/seasons"Example
{ "data": [ { "league": { "id": 195828, "name": "Premier League", "slug": "premier-league", "sport": "football",
"category": "England", "country": { "code": "EN", "name": "England" }, "image": "…" },
"seasons": [ { "id": 200386, "name": "Premier League 26/27", "year": "26/27", "startYear": 2026, "endYear": 2027,
"types": ["overall", "home", "away"] }, … ] }, … ],
"meta": { "count": 19 } }