Skip to content

Constants API

All methods in the Constants API are available through the constants property of the iRacingAPI instance.

Categories

Get the categories.

ts
const categories = await ir.constants.getCategories();

https://members-ng.iracing.com/data/constants/categories

Divisions

Get the divisions.

ts
const divisions = await ir.constants.getDivisions();

https://members-ng.iracing.com/data/constants/divisions

Event Types

Get the event types.

ts
const eventTypes = await ir.constants.getEventTypes();

https://members-ng.iracing.com/data/constants/eventtypes