-
Notifications
You must be signed in to change notification settings - Fork 16
v2.beatmap.id.attributes
cyperdark edited this page May 23, 2023
·
1 revision
Return attributes (stars, combo, stats) of beatmap
const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);
await v2.beatmap.id.attributes(beatmap_id, body)
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
|
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;
};
}