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

Group: Races & series

Every session of a race, earliest first — practice, sprint, qualifying (split into parts Q1, Q2…) and the race itself, or the stages of a cycling race. Each comes with its type, status and start time, laps and distance, weather, track condition, temperatures and safety car, the winner and, in cycling, the stage towns and profile.

Plans: Every plan, Free included.

Note: Pass a session id, or a part id from parts, as session= to /results and /laps. Besides a knock-out qualifying’s rounds, parts lists any other part the source keeps: a Formula 1 practice has one, "Part 1", which holds the live timing while the practice runs. If the source lists no sessions, the list is empty.

## Parameters

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

## Response

- `data`: `RaceSession[]`
- `meta`: race, count
- Objects: RaceSession (https://datasportsapi.com/markdown/reference.md#racesession)

## 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 race is the duplicate entry kept under a second series (same behaviour as /v2/races/{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/races/{id}/sessions"
```

TypeScript:

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

Python:

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

Go:

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

CLI:

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

## Example response

```json
{ "data": [ …,
    { "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, "parts": [], "winner": { "id": 700001, "name": "Max Verstappen", … } } ],
  "meta": { "race": 812345, "count": 6 } }
```

---

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