Race sessions
GET
/
Markdown copyOpen in the playground →
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.
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
idpathrequired
race id issued by DataSportsAPI, a positive integer
Response
- data
RaceSession[]- meta
- race, count
- errors
- 403
history_not_in_plan— your plan’s history does not reach back to the race’s start404not_found— the id is not a race id (season and session ids are rejected too)404no_data— this race is the duplicate entry kept under a second series (same behaviour as /v2/races/{id})
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/races/{id}/sessions"Example
{ "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 } }