# GET /v2/players/{id}/last-year

Group: Players

A player’s last 12 months, oldest first: each match with his rating, minutes, goals, assists and xG; the matches on the bench or missed (and why); injuries and transfers — with the leagues they name. Since 2026-11-22.

Plans: Pro and up (other plans get 403 endpoint_not_in_plan).

Note: type is match, bench, missing, injury or transfer; the match figures are null on the other types. Football and ice hockey where the source keeps it; empty lists otherwise.

## Parameters

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

## Response

- `data`: `PlayerYearSummary`
- `meta`: count (entries), historyFrom when older entries were cut by your plan
- Objects: PlayerYearSummary (https://sportsapi.app/markdown/en/reference.md#playeryearsummary)

## Errors

- 403 endpoint_not_in_plan — Free and Starter
- 404 not_found — an id we never issued

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}/last-year"
```

TypeScript:

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

Python:

```python
res = client.players.last_year(id)
```

Go:

```go
res, err := client.Players.LastYear(ctx, id)
```

CLI:

```bash
$ sportsapi players last-year <id>
```

## Example response

```json
{ "data": { "entries": [ { "type": "match", "at": "2025-12-02T20:00:00.000Z", "fixtureId": 201554, "playedForId": 4402, "leagueId": 200008,
      "rating": 5.4, "minutesPlayed": 67, "goals": 0, "assists": 0, "expectedGoals": 1.23, "goalsConceded": 1, "saves": 0, "missingReason": null },
      { "type": "missing", "at": "2026-03-03T20:00:00.000Z", "fixtureId": 201990, …, "missingReason": "injury" }, … ],
    "leagues": [ { "id": 200008, "name": "LaLiga", … } ] },
  "meta": { "count": 69 } }
```

---

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