Osu! API — Slider 0.2.1 Documentation - GitHub Pages
Maybe your like
Contents:
- What is a Beatmap?
- Working with Beatmaps
- Replays
- Osu! API
- User Information
- High Scores
- Beatmaps
- User Information
- Appendix
- Docs »
- Osu! API
- View page source
Peppy, being the hero that he is, exposes a web API for making queries about osu!. Slider provides a Python interface to this web API through a Client object. The client knows how to format messages to send to the osu! API and knows how to parse the results returned. It will also attempt to do argument validation client side to avoid making a bad web request.
User Information¶
The Client can fetch user information with the user() method. This method can look up a user by either username or user id. It will explicitly tell the osu! server which identifier you are using to avoid ambiguity. The method also accepts the game mode to fetch information about.
High Scores¶
If we already have a User object, we can request their high scores with the high_scores() method. This will return a list of HighScore objects which has metadata about the play like which map it was and the hit counts. Right now there is no way to recover the Replay object from the HighScore.
If we do not yet have a User object, we can request the high scores directly with user_best(). This takes the user identifier and game mode but just directly returns the list of HighScore objects. This method is more efficient if you only want to get the high scores for a user.
Beatmaps¶
The osu! API allows us to query for beatmaps themselves. Slider exposes this through the beatmap() method. This method can either be used to look up a single beatmap by id or md5 hash, or to fetch maps in bulk by date ranked.
Note
When fetching maps in bulk, we can only get 500 results at a time.
When we get results from the beatmap() method, they are returned as BeatmapResult objects instead of the normal slider.beatmap.Beatmap. The BeatmapResult object holds the extra information about a map which is only available through the client, for example: the pass and play counts.
The Beatmap can be fetched from the BeatmapResult object with the beatmap() method. This can be passed save=True to save the downloaded .osu file into the Library.
Tag » How To Use Osu Api
-
Use OSU! API V2 | Python Code Example - YouTube
-
Get OSU! API V2 Token And Use It To Make Requests ... - YouTube
-
How Do I Use The API? · Forum - Osu! - Ppy
-
Osu!api · Wiki
-
Osu API V2 : R/osugame - Reddit
-
Circleguard/ossapi: A Python Wrapper For Osu Api V2 And Api V1
-
LostPy/osu-: A Small Module To Get Informations With ... - GitHub
-
Osu-api-extended - Npm
-
Osu-tools - PyPI
-
Rosu_v2 - Rust
-
Osu-api: Documentation - Openbase
-
Osu! REST API - ProgrammableWeb
-
OsuEx.API — Osu!ex V0.2.0 - HexDocs
-
Node-osu-api - Npm Package - Snyk