Your API key, which you can get at https://osu.ppy.sh/p/api
(default none) Which events should be logged
(default https://osu.ppy.sh/api/) The server where the requests should be sent to
Look for and get a singular Beatmap with this!
An Object with the ID of the difficulty/Beatmap of the beatmapset
An array of Mods to apply, defaults to an empty array
Optionalgamemode: GamemodesThe gamemode the beatmap is in (useful if you wanna convert, for example, an osu! map to taiko)
A Promise with a Beatmap
Look for and get Beatmaps with this! Throws an APIError if the array would be empty
The maximum number of Beatmaps there should be in the array, cannot exceed 500
Filter in the beatmaps by the gamemode (unless "all"), but if allow_converts then instead convert if possible the beatmaps to that gamemode
Optionalbeatmap: Beatmap | { beatmap_id?: number; beatmapset_id?: number; file_md5?: string }Will look for its beatmapset_id (if undefined, its beatmap_id (if undefined, its file_md5))
An array of Mods to apply, defaults to an empty array
Optionalset_owner: User | { user_id?: number; username?: string }The User that owns the beatmapset
Optionalsince: DateFilters out any Beatmap of Category < 0, and any Beatmap with an approved_date older than what's given
The maximum number of Scores to get, cannot exceed 100
A number representing the Scores' Gamemode
An Object with the ID of the difficulty/Beatmap of the beatmapset
Optionaluser: User | { user_id?: number; username?: string }The Scores' user, which is an Object with either a user_id or a username
An array of Mods to apply, defaults to an empty array
A Promise with an array of Scores set on a beatmap
The ID of the Match
A Promise with a Match
If the API's server is set to https://ripple.moe/api, getMatch might not work as it's currently unsupported by Ripple,
see https://docs.ripple.moe/docs/api/peppy
Specify the gamemode the score was set in, then say if you know the id of the Score OR if you know the score's User, Beatmap, and Mods
A number representing the Gamemode the Score was set in
An Object that contains a score with an id, or an Object that specifies info about the score (User, Beatmap, and Mods)
If possible, a Replay of that Score
If the API's server is set to https://ripple.moe/api, getReplay might not work as it's currently unsupported by Ripple,
see https://docs.ripple.moe/docs/api/peppy
A Promise with an array of Scores set by the User within the last 24 hours in a specific Gamemode
A Promise with an array of Scores set by the User within the last 24 hours in a specific Gamemode
Create an object of this class to get started!