Get beatmap user scores

The beatmaps.getBeatmapUserScores method on a Client instance makes a GET request to the beatmaps/{beatmap}/scores/users/{user}/all endpoint and returns a user’s scores on a beatmap.

Example

const scores = await api.beatmaps.getBeatmapUserScores(1816113, 12408961, {
  query: {
    mode: 'osu'
  }
});

Parameters

ParameterTypeOptionalDescription
beatmapnumberID of the beatmap to get scores from
usernumberID of the user to get scores from
optionsGetBeatmapScoresOptions

options.query

ParameterTypeOptionalDescription
modeGameModeGamemode of the scores to return

Returns

Promise<Score[]>;

Types

Possible Exceptions

See the error handling documentation for more information.

  • invalid_json_syntax
  • network_error
  • unexpected_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 .