- api v1
- api v2
- TypeScript support
- Openable replay file
npm i @aqilcont/osu-api-extended
const { V1, V2, mods, tools } = require('osu-api-extended');
const v1 = new V1('YOUR_OSU_KEY');
//const v2 = new V2('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET');
(async () => {
try {
let beatmap = await v1.beatmap({ b: 2632763 });
console.log(beatmap.date.update);
} catch (err) {
console.error(err);
}
})();
Get beatmap data
Get user best scores
Get match data
Get recent user scores
Download replay file of the score
Get scores of user ob beatmap
Get user data
Get country name by code
Calculate accuracy from hits
Download beatmap file
Remote pp calculation (std only)
Calculate rank from hits
Get name of mods from id
Get id of mods from name