# GET /v2/series/{id}/seasons

Group: Race sports

Lists a series’ seasons, most recent first.

Plans: Every plan, Free included.

## Parameters

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

## Response

- `data`: `Season[]`
- `meta`: count
- Objects: Season (https://datasportsapi.com/markdown/reference.md#season)

## Errors

- 404 no_data — our data source keeps no season list for this series

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

TypeScript:

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

Python:

```python
res = client.series.seasons(id)
```

Go:

```go
res, err := client.Series.Seasons(ctx, id)
```

CLI:

```bash
$ dsa series seasons <id>
```

## Example response

```json
{ "data": [ { "id": 812301, "name": "Formula 1 2026", "year": "2026", "startYear": 2026, "endYear": 2026 }, … ],
  "meta": { "count": 77 } }
```

---

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