Skip to content

Lookup Service

The Lookup service provides reference data and search functionality for drivers, countries, licenses, and more.

const lookupService = iracing.lookup;

Get a list of all countries.

Returns: Promise<LookupCountriesResponse>

Parameters: None

Description: Returns a list of all countries available in the iRacing system.


Search for drivers by name.

Returns: Promise<LookupDriversResponse>

Parameters:

  • searchTerm: string (required) - Name or partial name to search for
  • leagueId?: number - Limit search to a specific league

Description: Searches for drivers matching the given term. Optionally restrict results to members of a specific league.


Get available profile flairs.

Returns: Promise<LookupFlairsResponse>

Parameters: None

Description: Returns the list of available flairs that can be displayed on member profiles.


Get general lookup data.

Returns: Promise<LookupGetResponse>

Parameters: None

Description: Returns general lookup reference data used across the API.


Get all license levels.

Returns: Promise<LookupLicensesResponse>

Parameters: None

Description: Returns the list of all license levels and groups in the iRacing system.