Team Service
Team Service
Section titled “Team Service”The Team service provides access to team information and membership data.
const teamService = iracing.team;Methods
Section titled “Methods”get(params)
Section titled “get(params)”Get information about a specific team.
Returns: Promise<TeamGetResponse>
Parameters:
teamId: number(required) - The team IDincludeLicenses?: boolean- Include license information for team members
Description: Returns detailed information about a specific team including its roster and settings.
const team = await iracing.team.get({ teamId: 12345, includeLicenses: true});
console.log(`Team: ${team.teamName}`);console.log(`Members: ${team.rosterCount}`);membership()
Section titled “membership()”Get team membership for the authenticated user.
Returns: Promise<TeamMembershipResponse>
Parameters: None
Description: Returns the team membership details for the currently authenticated member.
const membership = await iracing.team.membership();
console.log('Your teams:', membership);See Also
Section titled “See Also”- Member Service - Member profiles and data
- Stats Service - Team standings with
seasonTeamStandings() - Services Overview - All available services