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
A number representing the Mods
to apply, defaults to 0 (no mod/None
)
Optional
gamemode: GamemodesThe gamemode the beatmap is in (useful if you wanna convert, for example, an osu! map to taiko)
A Promise with a Beatmap
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
Optional
user: User | { The Scores
' user, which is an Object with either a user_id
or a username
Optional
mods: ModsA number representing the Mods
to apply
A Promise with an array of Scores
set on a beatmap
Look for and get Beatmap
s with this! Throws an APIError
if the array would be empty
The maximum number of Beatmap
s 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
Optional
allow_Optional
beatmap: Beatmap | { Will look for its beatmapset_id
(if undefined, its beatmap_id
(if undefined, its file_md5
))
A number representing the Mods
to apply, defaults to 0 (no mod/None
)
Optional
set_owner: User | { The User
that owns the beatmapset
Optional
since: DateFilters out any Beatmap
of Category < 0
, and any Beatmap
with an approved_date
older than what's given
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
Private
logPrivate
requestBasically the endpoint, what comes in the URL after api/
The things to specify in the request, such as the beatmap_id when looking for a beatmap
How many attempts there's been to get the data
A Promise with the API's response
Generated using TypeDoc
Create an object of this class to get started!