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

Group: Race sports

Lists the races in one season of a series. Sessions are left out here; fetch them from /v2/races/{id}.

Plans: Every plan, Free included.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | series id issued by DataSportsAPI, a positive integer |
| `season` | query | no | season id from /v2/series/{id}/seasons; the most recent season is used if omitted |

## Response

- `data`: `RaceSummary[]`
- `meta`: season (the season actually served), count, and historyFrom when your plan’s history window hid older races
- Objects: RaceSummary (https://datasportsapi.com/markdown/reference.md#racesummary)

## Errors

- 400 bad_request — season is invalid
- 403 history_not_in_plan — your plan’s history window begins after this season ended
- 404 not_found — the season id is not among this series’ seasons; 404 no_data — no seasons exist for the 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}/races"
```

TypeScript:

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

Python:

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

Go:

```go
res, err := client.Series.Races(ctx, id, &datasportsapi.SeriesRacesParams{})
```

CLI:

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

## Example response

```json
{ "data": [ { "id": 812210, "name": "Australian GP", "round": 1, "status": "finished", "startDate": "2026-03-06", "endDate": "2026-03-08",
    "circuit": { "name": "Albert Park", … }, "winner": { … }, … }, … ],
  "meta": { "season": 812301, "count": 24 } }
```

---

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