Expose osu! stats for select users publicly as a JSON
Useful if you want to have an embed with your osu stats on your website. An example page using the API can be found in example.html
- Results are cached in memory and only updated on request after the interval expires
- Runs on Windows, Linux and whatever else you can compile it for
- Download a prebuilt binary from releases
- Create a
config.json
- Create an OAuth application here
- Copy the
Client ID
andClient Secret
Do not share this information!
- Create a
config.json
in the same directory following this example:
{
"bind_address": "0.0.0.0:6969",
"client_id": "12345",
"client_secret": "asdfhjksadlhfkldcnkljdsfhgjkldsfhgsjkdlfg",
"update_interval_minutes": 180,
"mode": "osu",
"user_ids": [
"10040223",
"7562902"
]
}
Don't make it update too often or you might get rate limited by the API. 180 is 3 hours
user_ids
is the list of users you want to expose.
- GET
/
- comma separated list of user IDs - GET
/user/<id>
- JSON object with user info
- Install Rust
- Clone the repo
- Run
cargo build --release
This project is licensed under the MIT license