Skip to content

v2.beatmap.id.attributes

cyperdark edited this page May 23, 2023 · 1 revision

Return attributes (stars, combo, stats) of beatmap

Authentication

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

Function

await v2.beatmap.id.attributes(beatmap_id, body)

Parameters

Parameter Type Description
beatmap_id number Beatmap id
body.mods ``string[] number``
body.ruleset string osu or fruits or mania or taiko
body.ruleset_id number 0 or 1 or 2 or 3

Response

export interface response {
  attributes: {
    star_rating: number;
    max_combo: number;
    aim_difficulty: number;
    speed_difficulty: number;
    speed_note_count: number;
    flashlight_difficulty: number;
    slider_factor: number;
    approach_rate: number;
    overall_difficulty: number;
    stamina_difficulty: number;
    rhythm_difficulty: number;
    colour_difficulty: number;
    peak_difficulty: number;
    great_hit_window: number;
  };
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally