Skip to content
datasportsAPI

PlayersCareer

Documentation

/

Type to filter the docs by title or path.

PlayersEndpoint 61 of 116

Career

GET

/v2/players/{id}/career

Plan
All plans
Auth
Bearer dsa_live_…
Parameters
1 required · 0 optional
Returns
PlayerCareerSeason[]

The player’s career table, newest season first: statistics for each competition and season played at club and international level, either overall or split into regular season / playoffs where the league does so.

Worth knowing

There is a row for each competition, season and type, so an NBA season yields two rows (regularSeason and playoffs). statistics shares its keys with /v2/players/{id}/statistics, and passing a row’s league and season ids to that endpoint returns the same figures. Seasons that finished before your plan’s history window are omitted.

01Parameters

  • idpathRequired

    DataSportsAPI 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}/career"

03Response

The top-level keys of the JSON body. Each object links to its full shape in the data reference.

data
PlayerCareerSeason[]
meta
count; historyFrom is added if your plan excluded older seasons
Example response
{ "data": [
    { "league": { "id": 195900, "name": "UEFA Champions League", … }, "season": { "id": 200410, "name": "UEFA Champions League 26/27", "year": "26/27", "startYear": 2026, "endYear": 2027 },
      "team": { "id": 18, "name": "Arsenal", … }, "type": "overall",
      "statistics": { "appearances": 3, "goals": 1, "assists": 1, "minutesPlayed": 108, "averageRating": 7.07, "expectedGoals": 1.35, … } },
    { "league": { "id": 195850, "name": "UEFA Nations League", … }, "season": { … }, "team": { "id": 412, "name": "England", … }, "type": "overall", "statistics": { … } }, … ],
  "meta": { "count": 49 } }

04Errors

Nothing specific to this endpoint: only the account-wide errors below apply.

Any key can also meet401unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code