Skip to content

v1.user.scores.category

Jyotirmoy Bandyopadhyaya [Bravo68] edited this page May 27, 2022 · 2 revisions

Return scores from user for a specified type

Authentication

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

Function

await v1.user.scores.category()

Parameters

Parameter Type Description
user string id of the user
mode string osu or fruits or mania or taiko
type string u is a user_id or a username. Use string for usernames or id for user_ids
event_days string Max number of days between now and last event date. Range of 1-31. Optional, default value is 1

Response

export interface response {
  date: string;
  beatmap: number;
  rank: string;
  user: {
    id: number;
  };
  score: {
    id: number;
    total: number;
  };
  combo: {
    max: number;
    full: number;
  };
  hits: number[];
  mods: {
    id: number;
    name: string;
  };
  accuracy: number;
  pp: number;
  replay: number;
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally