# GET /v2/players/{id}/statistics

Group: Players

The player’s season statistics in one league: totals and averages (goals, minutes, averageRating, expected goals, passes, duels, …).

Note: Keys follow the match statistics’ vocabulary (totalShots, shotsOnGoal, passes, averageRating, goalInvolvements, minutesPerGoal — absent with no goals —, kilometersCovered = metersCovered / 1000, …).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `league` | query | yes | a league id from /v2/players/{id}/seasons |
| `season` | query | yes | a season id from /v2/leagues/{id}/seasons |
| `type` | query | no | one of the season’s types from /seasons (overall \| home \| away \| regularSeason \| playoffs); default: the season’s own — overall, else regularSeason |

## Response

- `data`: `PlayerStatistics`
- `meta`: league, season, type (the one used)
- Objects: PlayerStatistics (https://sportsapi.app/markdown/en/reference.md#playerstatistics)

## Errors

- 400 bad_request — missing league or season, type not one of overall, home, away, regularSeason, playoffs
- 404 no_data — the source has no statistics for that player, league, season and type (404 not_found: an id we never issued)
- 404 not_found — season is not one of this league’s seasons (the message names the parameter; list them with /v2/leagues/{id}/seasons)

Plus the common errors (https://sportsapi.app/markdown/en/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/players/{id}/statistics?league=…&season=…"
```

TypeScript:

```ts
const { data, meta } = await client.players.statistics(id, { league, season });
```

Python:

```python
res = client.players.statistics(id, league=league, season=season)
```

Go:

```go
res, err := client.Players.Statistics(ctx, id, &sportsapi.PlayersStatisticsParams{League: league, Season: season})
```

CLI:

```bash
$ sportsapi players statistics <id> --league <league> --season <season>
```

## Example response

```json
{ "data": { "team": { "id": 4438, "name": "Manchester City", "slug": "manchester-city", "shortName": "Man City",
             "code": "MCI", "image": "…" },
    "statistics": { "appearances": 7, "minutesPlayed": 620, "goals": 8, "assists": 0, "averageRating": 7.93,
                    "totalShots": 27, "shotsOnGoal": 13, "expectedAssists": 0.91, … } },
  "meta": { "league": 195828, "season": 200386, "type": "overall" } }
```

---

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/players/statistics · All docs: https://sportsapi.app/markdown/en/docs.md
