All URIs are relative to https://members-ng.iracing.com
| Method | HTTP request | Description |
|---|---|---|
| getLookup | GET /data/lookup/get | |
| getLookupCountries | GET /data/lookup/countries | |
| getLookupDrivers | GET /data/lookup/drivers | |
| getLookupFlairs | GET /data/lookup/flairs | |
| getLookupLicenses | GET /data/lookup/licenses |
IracingAPIResponse getLookup()
import {
Configuration,
LookupApi,
} from '@iracing-data/api-client-fetch';
import type { GetLookupRequest } from '@iracing-data/api-client-fetch';
async function example() {
console.log("🚀 Testing @iracing-data/api-client-fetch SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: bearerAuth
accessToken: "YOUR BEARER TOKEN",
});
const api = new LookupApi(config);
try {
const data = await api.getLookup();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 401 | Access token is missing or invalid. | - |
| 429 | Rate limited | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 503 | Maintenance | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IracingAPIResponse getLookupCountries()
import {
Configuration,
LookupApi,
} from '@iracing-data/api-client-fetch';
import type { GetLookupCountriesRequest } from '@iracing-data/api-client-fetch';
async function example() {
console.log("🚀 Testing @iracing-data/api-client-fetch SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: bearerAuth
accessToken: "YOUR BEARER TOKEN",
});
const api = new LookupApi(config);
try {
const data = await api.getLookupCountries();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 401 | Access token is missing or invalid. | - |
| 429 | Rate limited | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 503 | Maintenance | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IracingAPIResponse getLookupDrivers(search_term, league_id)
import {
Configuration,
LookupApi,
} from '@iracing-data/api-client-fetch';
import type { GetLookupDriversRequest } from '@iracing-data/api-client-fetch';
async function example() {
console.log("🚀 Testing @iracing-data/api-client-fetch SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: bearerAuth
accessToken: "YOUR BEARER TOKEN",
});
const api = new LookupApi(config);
const body = {
// string | A cust_id or partial name for which to search.
search_term: search_term_example,
// number | Narrow the search to the roster of the given league. (optional)
league_id: 8.14,
} satisfies GetLookupDriversRequest;
try {
const data = await api.getLookupDrivers(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| search_term | string |
A cust_id or partial name for which to search. | [Defaults to undefined] |
| league_id | number |
Narrow the search to the roster of the given league. | [Optional] [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 401 | Access token is missing or invalid. | - |
| 429 | Rate limited | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 503 | Maintenance | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IracingAPIResponse getLookupFlairs()
import {
Configuration,
LookupApi,
} from '@iracing-data/api-client-fetch';
import type { GetLookupFlairsRequest } from '@iracing-data/api-client-fetch';
async function example() {
console.log("🚀 Testing @iracing-data/api-client-fetch SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: bearerAuth
accessToken: "YOUR BEARER TOKEN",
});
const api = new LookupApi(config);
try {
const data = await api.getLookupFlairs();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 401 | Access token is missing or invalid. | - |
| 429 | Rate limited | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 503 | Maintenance | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IracingAPIResponse getLookupLicenses()
import {
Configuration,
LookupApi,
} from '@iracing-data/api-client-fetch';
import type { GetLookupLicensesRequest } from '@iracing-data/api-client-fetch';
async function example() {
console.log("🚀 Testing @iracing-data/api-client-fetch SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: bearerAuth
accessToken: "YOUR BEARER TOKEN",
});
const api = new LookupApi(config);
try {
const data = await api.getLookupLicenses();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 401 | Access token is missing or invalid. | - |
| 429 | Rate limited | * x-ratelimit-limit - * x-ratelimit-remaining - * x-ratelimit-reset - |
| 503 | Maintenance | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]