PlayersEndpoint 54 of 116
Player seasons
GET
https://api.datasportsapi.com/
- Plan
- All plans
- Auth
Bearer dsa_live_…- Parameters
- 1 required · 0 optional
- Returns
PlayerLeagueSeasons[]
Lists each league and season for which the player has statistics, together with the statistics types offered in each (overall, home, away, regularSeason, playoffs).
01Parameters
idpathRequiredDataSportsAPI player id, a positive integer
02Request
The same call from the command line and each SDK. The SDK lines assume a client created with your key; left out, it is read from DATASPORTSAPI_API_KEY. Installing a client: SDKs & CLI.
curl -H "Authorization: Bearer dsa_live_…" \
"https://api.datasportsapi.com/v2/players/{id}/seasons"03Response
The top-level keys of the JSON body. Each object links to its full shape in the data reference.
dataPlayerLeagueSeasons[]meta- count
ObjectsPlayerLeagueSeasons
Example response
5 lines
{ "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 } }04Errors
Nothing specific to this endpoint: only the account-wide errors below apply.
Any key can also meet401
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code