Skip to content
cyperdark edited this page May 12, 2022 · 3 revisions

Return pp and details about beatmap

Function

tools.pp.calculate()

Parameters

Parameter Type Description
id string id of the beatmap
mods string/number Name of the mods HDDT or mods number 72
combo string/number Max combo of the play
miss number Amount of misses
acc number Amount of accuracy

Response

export interface response {
  id: {
    set: number;
    diff: number;
  };
  mods: {
    id: number;
    name: string;
  };
  status: {
    id: number;
    name: string;
  };
  stats: {
    star: {
      pure: number;
      aim: number;
      speed: number;
    };
    ar: number;
    od: number;
    cs: number;
    hp: number;
    bpm: {
      api: number;
      min: number;
      max: number;
    };
    combo: number;
    time: {
      full: number;
      drain: number;
    };
  };
  pp: {
    current: number;
    fc: number;
    acc: {
    80: number;
    81: number;
    82: number;
    83: number;
    84: number;
    85: number;
    86: number;
    87: number;
    88: number;
    89: number;
    90: number;
    91: number;
    92: number;
    93: number;
    94: number;
    95: number;
    96: number;
    97: number;
    98: number;
    99: number;
    100: number;
    };
  };
  data: {
    artist: string;
    title: string;
    creator: {
      id: number;
      name: string;
    };
    favs: number;
    rating: number;
    source: string;
    genre_id: {
      id: number;
      name: string;
    };
    language_id: {
      id: number;
      name: string;
    };
    tags: string;
    diff: string;
  };
  other: {
    download_unavailable: boolean;
    audio_unavailable: boolean;
    storyboard: boolean;
    video: boolean;
    packs: string;
    bg: {
      full: string;
      raw: string;
      slim: {
      1: string;
      2: string;
      };
      cover: {
      1: string;
      2: string;
      };
      card: {
      1: string;
      2: string;
      };
      list: {
      1: string;
      2: string;
      };
    };
  };
  req: {
    id: number;
    combo: number;
    mods: number;
    acc: number;
    miss: number;
  };
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally