All URIs are relative to https://members-ng.iracing.com
| Method | HTTP request | Description |
|---|---|---|
| getMember | GET /data/member/get | |
| getMemberAwardInstances | GET /data/member/award_instances | |
| getMemberAwards | GET /data/member/awards | |
| getMemberChartData | GET /data/member/chart_data | |
| getMemberInfo | GET /data/member/info | |
| getMemberParticipationCredits | GET /data/member/participation_credits | |
| getMemberProfile | GET /data/member/profile | Gets a requested user's profile. |
IracingAPIResponse getMember(cust_ids, include_licenses)
import {
Configuration,
MemberApi,
} from '@iracing-data/api-client-fetch';
import type { GetMemberRequest } 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 MemberApi(config);
const body = {
// string | Comma-separated list of customer IDs. Example: ?cust_ids=2,3,4
cust_ids: cust_ids_example,
// boolean (optional)
include_licenses: true,
} satisfies GetMemberRequest;
try {
const data = await api.getMember(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| cust_ids | string |
Comma-separated list of customer IDs. Example: ?cust_ids=2,3,4 | [Defaults to undefined] |
| include_licenses | boolean |
[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 getMemberAwardInstances(award_id, cust_id)
import {
Configuration,
MemberApi,
} from '@iracing-data/api-client-fetch';
import type { GetMemberAwardInstancesRequest } 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 MemberApi(config);
const body = {
// number
award_id: 8.14,
// number | Defaults to the authenticated member. (optional)
cust_id: 8.14,
} satisfies GetMemberAwardInstancesRequest;
try {
const data = await api.getMemberAwardInstances(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| award_id | number |
[Defaults to undefined] |
|
| cust_id | number |
Defaults to the authenticated member. | [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 getMemberAwards(cust_id)
import {
Configuration,
MemberApi,
} from '@iracing-data/api-client-fetch';
import type { GetMemberAwardsRequest } 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 MemberApi(config);
const body = {
// number | Defaults to the authenticated member. (optional)
cust_id: 8.14,
} satisfies GetMemberAwardsRequest;
try {
const data = await api.getMemberAwards(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| cust_id | number |
Defaults to the authenticated member. | [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 getMemberChartData(category_id, chart_type, cust_id)
import {
Configuration,
MemberApi,
} from '@iracing-data/api-client-fetch';
import type { GetMemberChartDataRequest } 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 MemberApi(config);
const body = {
// number | 1 - Oval; 2 - Road; 3 - Dirt oval; 4 - Dirt road
category_id: 8.14,
// number | 1 - iRating; 2 - TT Rating; 3 - License/SR
chart_type: 8.14,
// number | Defaults to the authenticated member. (optional)
cust_id: 8.14,
} satisfies GetMemberChartDataRequest;
try {
const data = await api.getMemberChartData(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| category_id | number |
1 - Oval; 2 - Road; 3 - Dirt oval; 4 - Dirt road | [Defaults to undefined] |
| chart_type | number |
1 - iRating; 2 - TT Rating; 3 - License/SR | [Defaults to undefined] |
| cust_id | number |
Defaults to the authenticated member. | [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 getMemberInfo()
import {
Configuration,
MemberApi,
} from '@iracing-data/api-client-fetch';
import type { GetMemberInfoRequest } 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 MemberApi(config);
try {
const data = await api.getMemberInfo();
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 getMemberParticipationCredits()
import {
Configuration,
MemberApi,
} from '@iracing-data/api-client-fetch';
import type { GetMemberParticipationCreditsRequest } 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 MemberApi(config);
try {
const data = await api.getMemberParticipationCredits();
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 getMemberProfile(cust_id)
Gets a requested user's profile.
import {
Configuration,
MemberApi,
} from '@iracing-data/api-client-fetch';
import type { GetMemberProfileRequest } 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 MemberApi(config);
const body = {
// number | Defaults to the authenticated member. (optional)
cust_id: 8.14,
} satisfies GetMemberProfileRequest;
try {
const data = await api.getMemberProfile(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| cust_id | number |
Defaults to the authenticated member. | [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]