Get beatmap scores
The getBeatmapScores method on a LegacyClient instance makes a GET request to the get_scores endpoint and returns an array of scores on a beatmap.
Example
const scores = await legacyApi.getBeatmapScores({
b: 131891
});
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
| params | GetBeatmapScoresParams | The request’s URL parameters | |
| params.b | number | Scores from a beatmap with a specific beatmap ID | |
| params.u | string | number | ✓ | Scores from a user with a specific user ID or username |
| params.m | GameMode | ✓ | Scores from a specific gamemode |
| params.limit | number | ✓ | Limit amount of scores to return (100 max.) |
| params.type | UserType | ✓ | Specify if u is a user ID (id) or a username (string) |
Returns
Promise<LegacyBeatmapScore[]>;
Types
Possible Exceptions
See the error handling documentation for more information.
invalid_json_syntaxnetwork_errorunexpected_response
Notice that something is missing? Found a typo? Think something's incomplete? Or think that something can be explained better? Feel free to open a pull request or submit an issue on the library's Github repository .