Average positions
GET
/
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
idpathrequired
fixture id issued by DataSportsAPI, a positive integer
Response
- data
AveragePositions
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": [ … ] } }