# GET /v2/teams/{id}/race-seasons

Group: Teams

Motorsport and cycling: every series season a driver, rider or constructor took part in, newest first. Constructors are covered too, although they have no race career of their own.

Plans: Every plan, Free included.

Note: Hand a season id from here to /v2/teams/{id}/races for the results race by race, or to /v2/series/{id}/standings for that season’s table. A competitor from any other sport gives an empty array.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI team id, a positive integer |

## Response

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

## Errors

- 404 not_found — DataSportsAPI has never assigned this id

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/teams/{id}/race-seasons"
```

TypeScript:

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

Python:

```python
res = client.teams.race_seasons(id)
```

Go:

```go
res, err := client.Teams.RaceSeasons(ctx, id)
```

CLI:

```bash
$ dsa teams race-seasons <id>
```

## Example response

```json
{ "data": [ { "series": { "id": 300012, "name": "Formula 1", … }, "season": { "id": 300480, "name": "Formula 1 2026", "year": "2026", … } }, … ],
  "meta": { "count": 17 } }
```

---

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/teams/race-seasons/ · Group: https://datasportsapi.com/markdown/docs/teams.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
