Driver Stats Service
Driver Stats Service
Section titled “Driver Stats Service”The Driver Stats by Category service provides statistical data for drivers broken down by racing category.
const driverStatsService = iracing.driverStatsByCategory;Methods
Section titled “Methods”oval()
Section titled “oval()”Get driver statistics for the Oval category.
Returns: Promise<DriverStatsByCategoryOvalResponse>
Parameters: None
Description: Returns oval racing statistics for the authenticated driver.
const ovalStats = await iracing.driverStatsByCategory.oval();console.log('Oval Stats:', ovalStats);road()
Section titled “road()”Get driver statistics for the Road category.
Returns: Promise<DriverStatsByCategoryRoadResponse>
Parameters: None
Description: Returns road racing statistics for the authenticated driver.
const roadStats = await iracing.driverStatsByCategory.road();console.log('Road Stats:', roadStats);dirtOval()
Section titled “dirtOval()”Get driver statistics for the Dirt Oval category.
Returns: Promise<DriverStatsByCategoryDirtOvalResponse>
Parameters: None
Description: Returns dirt oval racing statistics for the authenticated driver.
const dirtOvalStats = await iracing.driverStatsByCategory.dirtOval();console.log('Dirt Oval Stats:', dirtOvalStats);dirtRoad()
Section titled “dirtRoad()”Get driver statistics for the Dirt Road category.
Returns: Promise<DriverStatsByCategoryDirtRoadResponse>
Parameters: None
Description: Returns dirt road racing statistics for the authenticated driver.
const dirtRoadStats = await iracing.driverStatsByCategory.dirtRoad();console.log('Dirt Road Stats:', dirtRoadStats);sportsCar()
Section titled “sportsCar()”Get driver statistics for the Sports Car category.
Returns: Promise<DriverStatsByCategorySportsCarResponse>
Parameters: None
Description: Returns sports car racing statistics for the authenticated driver.
const sportsCarStats = await iracing.driverStatsByCategory.sportsCar();console.log('Sports Car Stats:', sportsCarStats);formulaCar()
Section titled “formulaCar()”Get driver statistics for the Formula Car category.
Returns: Promise<DriverStatsByCategoryFormulaCarResponse>
Parameters: None
Description: Returns formula car racing statistics for the authenticated driver.
const formulaCarStats = await iracing.driverStatsByCategory.formulaCar();console.log('Formula Car Stats:', formulaCarStats);Common Use Cases
Section titled “Common Use Cases”Get All Category Stats
Section titled “Get All Category Stats”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 };}See Also
Section titled “See Also”- Stats Service - General statistics and standings
- Member Service - Member profiles and chart data
- Services Overview - All available services