ScoreSaber. Leaderboard

Allows interaction with the ScoreSaber Leaderboard API endpoints

Methods

(static) difficultiesByHash(mapHash) → {Promise.<Array>}

Gets a maps difficulties based on hash

Parameters:
NameTypeDescription
mapHashstring

Map hash

Returns:

Difficulties offered on by a map

Type: 
Promise.<Array>

(static) get(query, page, options) → {Promise.<Array>}

Gets a list of leaderboards based on filters

Parameters:
NameTypeDescription
querystring

Query for specific terms

pagenumber

Page of result

optionsobject

More Filters

PropertyTypeDescriptionValid Values
verifiedbooleanFilter by verified (️deprecation notice)
rankedbooleanIndicates if only ranked songs should be included.
qualifiedbooleanIndicates if only qualified songs should be included.
lovedbooleanIndicates if only loved songs should be included.
minStarnumberThe minimum star rating of songs to include.
maxStarnumberThe maximum star rating of songs to include.
categorynumberWhich category to sort by (0 = trending, date ranked = 1,0, 1, 2, 3, 4
scores set = 2, star difficulty = 3, author = 4)
sortnumberThe sorting order: 0 (Descending) or 1 (Ascending).0, 1
uniquebooleanOnly return one leaderboard of each id.
Returns:
Type: 
Promise.<Array>

(static) infoByHash(mapHash, difficulty, gameMode) → {Promise}

Gets leaderboard info based on map hash

Parameters:
NameTypeDescription
mapHashstring

Map hash

difficultynumber

(1 = Easy, 3 = Normal, 5 = Hard, 7 = Expert, 9 = Expert+)

gameModenumber

SoloStandard by default

Returns:

Information on queried leaderboard

Type: 
Promise

(static) infoById(leaderboardId) → {Promise}

Gets leaderboard information based on leaderboard id

Parameters:
NameTypeDescription
leaderboardIdnumber

Leaderboard ID

Returns:

Information on queried leaderboard

Type: 
Promise

(static) scoresByHash(mapHash, difficulty, countries, search, page, gameMode, withMetadata) → {Promise.<Array>}

Gets a list of scores for a given hash

Parameters:
NameTypeDescription
mapHashstring

Map hash

difficultynumber

(1 = Easy, 3 = Normal, 5 = Hard, 7 = Expert, 9 = Expert+)

countriesArray

Filter by ISO 3166-1 alpha-2 code

searchstring

Query for specific terms

pagenumber

Page of result

gameModenumber

SoloStandard by default.

withMetadataboolean

True by default. Returns total number of results, page number, and items per page

Returns:

Scores on queried leaderboard

Type: 
Promise.<Array>

(static) scoresById(leaderboardId, countries, search, page, withMetadata) → {Promise.<Array>}

Gets a list of scores for a given map

Parameters:
NameTypeDescription
leaderboardIdnumber

Leaderboard ID

countriesArray

Filter by ISO 3166-1 alpha-2 code

searchstring

Query for specific terms

pagenumber

Page of result

withMetadataboolean

True by default. Returns total number of results, page number, and items per page

Returns:

Scores on queried leaderboard

Type: 
Promise.<Array>