Skip to content

Driver Stats Service

The Driver Stats by Category service provides statistical data for drivers broken down by racing category.

const driverStatsService = iracing.driverStatsByCategory;

Get driver statistics for the Oval category.

Returns: Promise<DriverStatsByCategoryOvalResponse>

Parameters: None

Description: Returns oval racing statistics for the authenticated driver.


Get driver statistics for the Road category.

Returns: Promise<DriverStatsByCategoryRoadResponse>

Parameters: None

Description: Returns road racing statistics for the authenticated driver.


Get driver statistics for the Dirt Oval category.

Returns: Promise<DriverStatsByCategoryDirtOvalResponse>

Parameters: None

Description: Returns dirt oval racing statistics for the authenticated driver.


Get driver statistics for the Dirt Road category.

Returns: Promise<DriverStatsByCategoryDirtRoadResponse>

Parameters: None

Description: Returns dirt road racing statistics for the authenticated driver.


Get driver statistics for the Sports Car category.

Returns: Promise<DriverStatsByCategorySportsCarResponse>

Parameters: None

Description: Returns sports car racing statistics for the authenticated driver.


Get driver statistics for the Formula Car category.

Returns: Promise<DriverStatsByCategoryFormulaCarResponse>

Parameters: None

Description: Returns formula car racing statistics for the authenticated driver.

async function getAllCategoryStats() {
const [oval, road, dirtOval, dirtRoad, sportsCar, formulaCar] =
await Promise.all([
iracing.driverStatsByCategory.oval(),
iracing.driverStatsByCategory.road(),
iracing.driverStatsByCategory.dirtOval(),
iracing.driverStatsByCategory.dirtRoad(),
iracing.driverStatsByCategory.sportsCar(),
iracing.driverStatsByCategory.formulaCar(),
]);
return { oval, road, dirtOval, dirtRoad, sportsCar, formulaCar };
}