Skip to content

Livematches in play

Demo: Matchboard, opens in a new tab
Docs v2

Fixtures

Average positions

GET

/v2/fixtures/{id}/average-positions

Pro and up

View as MarkdownTry in Playground →

Average position of every player during the fixture, grouped by side.

Football only, in covered leagues; otherwise the lists are empty. Coordinates use the heatmap frame, oriented in the team’s attacking direction.

Parameters

id

pathrequired

fixture id issued by DataSportsAPI, a positive integer

Response

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}/average-positions"
Example
{ "data": { "home": [ { "player": { "id": 3772, "name": "David Raya", … }, "jerseyNumber": "1", "positionCode": "G",
                         "position": "goalkeeper", "x": 8.2, "y": 49.9, "pointsCount": 40 }, … ],
    "away": [ … ] } }