Skip to content

v2.teams.details_v3

ck edited this page Jun 5, 2026 · 1 revision

async Retrieve details about a team.

Usage example

const { auth, v2 } = require('osu-api-extended');

async function main() {
  try {
    await auth.login({
      type: 'v2',
      client_id: CLIENT_ID,
      client_secret: CLIENT_SECRET,
      cachedTokenPath: './test.json' // path to the file your auth token will be saved (to prevent osu!api spam)
    });

    const result = await v2.teams.details({
      id: 5118,
    });
    if (result.error != null) {
      console.log(result.error);
      return;
    };

    console.log(result);
  } catch (error) {
    console.log(error);
  };
};

main();
Parameter Type Description
params.id number or string;
params.mode Modes_names or number;
addons.legacy_only? boolean
addons.apiVersion? '20240130' or '99999999' or null or ''
addons.authKey? string
addons.timeout_ms? number
addons.ignoreSessionRefresh? boolean

Response

export interface teams_details_response {
  flag_url: string
  id: number
  name: string
  short_name: string
  cover_url: string
  created_at: string
  default_ruleset_id: number
  description: string
  is_open: boolean
  empty_slots: number
  leader: Leader
  members: Member[]
  statistics: Statistics
}

export interface Statistics {
  team_id: number
  ruleset_id: number
  play_count: number
  ranked_score: number
  performance: number
}

export interface Member {
  avatar_url: string
  country_code: string
  default_group: string
  id: number
  is_active: boolean
  is_bot: boolean
  is_deleted: boolean
  is_online: boolean
  is_supporter: boolean
  last_visit: null | string
  pm_friends_only: boolean
  profile_colour: null
  username: string
  country: Country
  cover: Cover2
  groups: any[]
  team: Team
}

export interface Cover2 {
  custom_url: null | string
  url: string
  id: null | string
}

export interface Leader {
  avatar_url: string
  country_code: string
  default_group: string
  id: number
  is_active: boolean
  is_bot: boolean
  is_deleted: boolean
  is_online: boolean
  is_supporter: boolean
  last_visit: string
  pm_friends_only: boolean
  profile_colour: null
  username: string
  country: Country
  cover: Cover
  groups: any[]
  team: Team
}

export interface Team {
  flag_url: string
  id: number
  name: string
  short_name: string
}

export interface Cover {
  custom_url: string
  url: string
  id: string
}

export interface Country {
  code: string
  name: string
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally