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

Group: Fixtures

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

Plans: Requires Pro, Business or Enterprise; a Free or Starter key receives 403 endpoint_not_in_plan.

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

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | fixture id issued by DataSportsAPI, a positive integer |

## Response

- `data`: `AveragePositions`
- Objects: AveragePositions (https://datasportsapi.com/markdown/reference.md#averagepositions)

## Errors

Plus the common errors (https://datasportsapi.com/markdown/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/fixtures/{id}/average-positions"
```

TypeScript:

```ts
const { data, meta } = await client.fixtures.averagePositions(id);
```

Python:

```python
res = client.fixtures.average_positions(id)
```

Go:

```go
res, err := client.Fixtures.AveragePositions(ctx, id)
```

CLI:

```bash
$ dsa fixtures average-positions <id>
```

## Example response

```json
{ "data": { "home": [ { "player": { "id": 3772, "name": "David Raya", … }, "jerseyNumber": "1", "positionCode": "G",
                         "position": "goalkeeper", "x": 8.2, "y": 49.9, "pointsCount": 40 }, … ],
    "away": [ … ] } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/fixtures/average-positions/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
