Skip to content

Livematches in play

Demo: Matchboard, opens in a new tab
Docs v2

Fixtures

Player heatmap

GET

/v2/fixtures/{id}/heatmap/{playerId}

Pro and up

View as MarkdownTry in Playground →

A single football player’s activity map for the fixture — each recorded position sample, expressed as percentages of the pitch.

Football only, in covered leagues. x measures distance along the pitch in the direction the player attacks (100 = the goal being attacked) and y measures across it. points is empty when no heatmap exists, and other sports likewise get 200 with empty points; an unknown fixture or player id gets 404.

Parameters

id

pathrequired

fixture id issued by DataSportsAPI, a positive integer

playerId

pathrequired

player id issued by DataSportsAPI, for example taken from /lineups

Response

meta
playerId, count

Any /v2 call can also come back with one of the common errors.

curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/fixtures/{id}/heatmap/{playerId}"
Example
{ "data": { "points": [ { "x": 61.2, "y": 23.4 }, { "x": 58, "y": 31.5 }, … ] },
  "meta": { "playerId": 3759, "count": 214 } }