Race
GET
/
View as MarkdownTry in Playground →
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).
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
idpathrequired
race id issued by DataSportsAPI, a positive integer
Response
- data
Race- 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 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
Any /v2 call can also come back with one of the common errors.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/races/{id}"Example
{ "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", … } } ] } }