Team heatmap
GET
/
Markdown copyOpen in the playground →
One side’s activity map for a football fixture: the position samples of its outfield players in one list and its goalkeeper’s in another, laid out on the same frame as a single player’s heatmap. Available since 2026-11-20.
Football only, in covered leagues. Coordinates are percentages of the pitch with the chosen side attacking from left to right, the same frame /v2/fixtures/{id}/heatmap/{playerId} uses, so the two can share one drawing: render the points as a density. When our data source holds no heatmap for the match both lists come back empty with 200. meta.count is the number of outfield samples.
Parameters
idpathrequired
fixture id issued by DataSportsAPI, a positive integer
teamqueryrequired
home | away: the side whose map you want
Response
- data
TeamHeatmap- meta
- team, count (outfield samples)
- errors
- 400
bad_request— team is missing, or is neither home nor away403history_not_in_plan— the fixture predates the history your plan covers404not_found— no fixture carries this id
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/fixtures/{id}/heatmap?team=…"Example
{ "data": { "points": [ { "x": 58.5, "y": 92.4 }, { "x": 40.1, "y": 82.6 }, … ],
"goalkeeperPoints": [ { "x": 4.2, "y": 50.1 }, … ] },
"meta": { "team": "home", "count": 882 } }