Skip to content

v2.scores.user.beatmap

cyperdark edited this page May 23, 2023 · 1 revision

Return best user score on beatmap

Authentication

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

Function

await v2.scores.user.beatmap(beatmap, user, object)

Parameters

Parameter Type Description
beatmap number id of the beatmap
user string/number id of the user
object.mode string osu or fruits or mania or taiko
object.mods string[] Array of matching mods ['HD', 'DT']
object.best_only boolean Return only best score from the beatmap

Response

export interface response {
  accuracy: number;
  best_id: number;
  created_at: string;
  id: number;
  max_combo: number;
  mode: string;
  mode_int: number;
  mods: string[];
  passed: boolean;
  perfect: boolean;
  pp: number;
  rank: string;
  replay: boolean;
  score: number;
  statistics: {
    count_100: number;
    count_300: number;
    count_50: number;
    count_geki: number;
    count_katu: number;
    count_miss: number;
  };
  type: string;
  user_id: number;
  current_user_attributes: {
    pin: {
      is_pinned: boolean;
      score_id: number;
      score_type: string;
    };
  };
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally