PlayersEndpoint 62 of 116
Season heatmap
https://api.datasportsapi.com/
- 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
idpathRequiredDataSportsAPI player id, a positive integer
leaguequeryRequiredleague id, as listed by /v2/players/{id}/seasons
seasonqueryRequiredseason id, as listed by /v2/leagues/{id}/seasons
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.
dataSeasonHeatmapmeta- league, season, count (number of points)
{ "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
- 403
history_not_in_planthe season finished before your plan’s history window begins
- 404
no_datafor this player, league and season the source has no season heatmap; 404 not_found — the season id belongs to a different league
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code