Skip to content
cyperdark edited this page May 9, 2022 · 1 revision

Return match details

Authentication

const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);

Function

await v1.match()

Parameters

Parameter Type Description
id string id of the user

Response

export interface response {
  match: {
    id: number;
    name: string;
    time: {
      start: string;
      end: string;
    };
  };
  games: {
    id: number;
    time: {
      start: string;
      end: string;
    };
    beatmap_id: number;
    mode: {
      id: number;
      name: string;
    };
    types: {
      match: number;
      scoring: {
        id: number;
        name: string;
      };
      team: {
        id: number;
        name: string;
      };
    };
    mods: {
      id: number;
      name: string;
    };
    scores: {
      team: {
        id: number;
        name: string;
      };
      slot: number;
      user: {
        id: number;
      };
      score: number;
      combo: {
        max: number;
        perfect: number;
      };
      hits: number[];
      mods: {
        id: number;
        name: string;
      };
      rank: string;
      pass: string;
    };
  };
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally