Skip to content
API v2 docs

Fixtures

Team heatmap

GET

/v2/fixtures/{id}/heatmap

All plans

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

id

pathrequired

fixture id issued by DataSportsAPI, a positive integer

team

queryrequired

home | away: the side whose map you want

Response

meta
team, count (outfield samples)
errors
400 bad_request — team is missing, or is neither home nor away403 history_not_in_plan — the fixture predates the history your plan covers404 not_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 } }