Skip to content
datasportsAPI

PlayersSeason heatmap

Documentation

/

Type to filter the docs by title or path.

PlayersEndpoint 62 of 116

Season heatmap

GET

/v2/players/{id}/heatmap

Plan
Pro + Business
Auth
Bearer dsa_live_…
Parameters
3 required · 0 optional
Returns
SeasonHeatmap

Football: a player’s match heatmaps summed over one league season to show where they were active — each point with the number of samples recorded on it — plus the matches included.

Plan access

Requires a Pro or Business plan; every other plan receives 403 endpoint_not_in_plan.

Worth knowing

x / y range from 0 to 100 as in the match heatmap, with x running along the pitch in the direction the player’s team attacks. Use count to weight the density. Limited to football in covered leagues.

01Parameters

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}/heatmap?league=…&season=…"

03Response

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

data
SeasonHeatmap
meta
league, season, count (number of points)
Example response
{ "data": { "points": [ { "x": 69, "y": 9, "count": 1 }, { "x": 69, "y": 11, "count": 2 }, … ], "fixtureCount": 7, "fixtureIds": [701120, 701061, …] },
  "meta": { "league": 195828, "season": 200386, "count": 397 } }

04Errors

  • 403history_not_in_plan

    the season finished before your plan’s history window begins

  • 404no_data

    for this player, league and season the source has no season heatmap; 404 not_found — the season id belongs to a different league

Any key can also meet401unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code