# GET /v2/races/{id}

Group: Race sports

One race in full: series, season, round, status, dates, winner, circuit (motorsport: name, city, country, lap length), host country, laps and distance, category (cycling) and its sessions in start-time order. Each session carries its type, status, start time, laps, distance, winner, weather, track condition, temperatures and safety car, plus the stage’s towns and profile (cycling).

Plans: Every plan, Free included.

Note: startDate / endDate are UTC dates, whereas sessions have exact timestamps. winner refers to the main race — for a cycling stage race, the general classification — and is filled once it has finished. circuit.lengthMeters and distanceMeters are provided for Formula 1 and NASCAR, converted from miles where needed; MotoGP has laps only, because our data source keeps no circuit length or race distance for it. A race with no laps / distance of its own inherits those of the main race session.

## Parameters

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

## Response

- `data`: `Race`
- Objects: Race (https://datasportsapi.com/markdown/reference.md#race)

## Errors

- 403 history_not_in_plan — your plan’s history does not reach back to the race’s start
- 404 not_found — the id is not a race id (season and session ids are rejected too)
- 404 no_data — this is a duplicate that our data source files under a second series but never runs (NASCAR Cup); error.series, and error.race when a match is found, identify the genuine series and race

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

TypeScript:

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

Python:

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

Go:

```go
res, err := client.Races.Get(ctx, id)
```

CLI:

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

## Example response

```json
{ "data": {
    "id": 812345, "name": "Singapore GP", "slug": "singapore-gp", "sport": "motorsport",
    "series": { "id": 812300, "name": "Formula 1", "slug": "formula-1", "sport": "motorsport" },
    "season": { "id": 812301, "name": "Formula 1 2026", "year": "2026", "startYear": 2026, "endYear": 2026 },
    "round": 17, "status": "finished", "startDate": "2026-10-09", "endDate": "2026-10-11",
    "country": { "code": "SG", "name": "Singapore" },
    "circuit": { "name": "Marina Bay", "city": "Singapore", "country": { "code": "SG", "name": "Singapore" }, "lengthMeters": 4927 },
    "laps": 62, "distanceMeters": 305337, "category": null,
    "winner": { "id": 700001, "name": "Max Verstappen", "slug": "verstappen-max", "shortName": "M. Verstappen", "code": "VER", "image": "https://cdn.datasportsapi.com/v2/teams/700001/logo" },
    "sessions": [ …,
      { "id": 812350, "name": "Grand Prix", "type": "race", "status": "finished", "startTime": "2026-10-11T12:00:00.000Z",
        "laps": 62, "lapsCompleted": 62, "distanceMeters": 305337, "departureCity": null, "arrivalCity": null, "profile": null,
        "weather": "night", "trackCondition": "dry", "airTemperatureC": 30.2, "trackTemperatureC": 41.5, "humidityPercent": 77.4,
        "safetyCar": null, "winner": { "id": 700001, "name": "Max Verstappen", … } } ] } }
```

---

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