# GET /v2/leagues/{id}/seasons/{seasonId}

Group: Leagues

Key figures for a season — running totals such as goals, home and away wins, draws and cards — plus the teams new to the division, whether relegated into it from above or promoted from below.

Plans: Every plan, Free included.

Note: The statistic keys come from our data source and differ between sports. hostCountries lists a tournament’s host nations as Country objects — CA, MX and US for the 2026 World Cup; eleven hosts for EURO 2020, with England as EN and Scotland as SX — and stays empty for a regular league season. A season with no figures still answers 200, with empty statistics and lists; only an unknown id, or a season from another league, gets 404.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | league id issued by DataSportsAPI, a positive integer |
| `seasonId` | path | yes | season id, as listed by /v2/leagues/{id}/seasons |

## Response

- `data`: `SeasonInfo`
- `meta`: season
- Objects: SeasonInfo (https://datasportsapi.com/markdown/reference.md#seasoninfo)

## Errors

- 404 not_found — seasonId does not belong to this league; the error message names the parameter, and /v2/leagues/{id}/seasons lists the valid ones

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/leagues/{id}/seasons/{seasonId}"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.season(id, seasonId);
```

Python:

```python
res = client.leagues.season(id, season_id)
```

Go:

```go
res, err := client.Leagues.Season(ctx, id, seasonId)
```

CLI:

```bash
$ dsa leagues season <id> <seasonId>
```

## Example response

```json
{ "data": { "statistics": { "goals": 198, "homeTeamWins": 31, "awayTeamWins": 24, "draws": 15,
                            "yellowCards": 280, "redCards": 9, … },
    "newcomersUpperDivision": [],
    "newcomersLowerDivision": [ { "id": 4502, "name": "Leeds United", "code": "LEE", … }, … ],
    "newcomersOther": [],
    "hostCountries": [] },
  "meta": { "season": 200386 } }
```

---

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/leagues/season/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
