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

Group: Fixtures

Each player’s average position in the fixture, per side.

Plans: Pro + Business only (other plans get 403 endpoint_not_in_plan).

Note: Football, covered leagues; empty lists otherwise. Coordinates as in the heatmap, in the team’s direction of attack.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |

## Response

- `data`: `AveragePositions`
- Objects: AveragePositions (https://sportsapi.app/markdown/en/reference.md#averagepositions)

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/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
$ sportsapi 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.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/fixtures/average-positions · All docs: https://sportsapi.app/markdown/en/docs.md
