Skip to content

Livematches in play

Demo: Matchboard, opens in a new tab
Docs v2

Players

Player seasons

GET

/v2/players/{id}/seasons

All plans

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

id

pathrequired

DataSportsAPI player id, a positive integer

Response

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 } }