Fixtures
Player heatmap
GET/v2/fixtures/{id}/heatmap/{playerId}Pro + Business
Where one player was active during the fixture: every position sample, in pitch percentages.
Football, covered leagues. x runs along the pitch in the player’s direction of attack (100 = the goal attacked), y across it. Empty points when there is no heatmap (and 200 with empty points in other sports); 404 for a fixture or player id that does not exist.
Parameters
id
our numeric id (positive integer)
playerId
our player id (e.g. from /lineups)
Response
- data
Heatmap- meta
- playerId, count
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/fixtures/{id}/heatmap/{playerId}"
Example
{ "data": { "points": [ { "x": 61.2, "y": 23.4 }, { "x": 58, "y": 31.5 }, … ] }, "meta": { "playerId": 3759, "count": 214 } }