Allows interaction with the ScoreSaber Leaderboard API endpoints
- Source
Methods
(static) difficultiesByHash(mapHash) → {Promise.<Array>}
Gets a maps difficulties based on hash
Name | Type | Description |
---|---|---|
mapHash | string | Map hash |
Difficulties offered on by a map
- Type:
- Promise.<Array>
(static) get(query, page, options) → {Promise.<Array>}
Gets a list of leaderboards based on filters
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
query | string | Query for specific terms | ||||||||||||||||||||||||||||||||||||||||||||
page | number | Page of result | ||||||||||||||||||||||||||||||||||||||||||||
options | object | More Filters
|
- Source
- Type:
- Promise.<Array>
(static) infoByHash(mapHash, difficulty, gameMode) → {Promise}
Gets leaderboard info based on map hash
Name | Type | Description |
---|---|---|
mapHash | string | Map hash |
difficulty | number | ( |
gameMode | number |
|
- Source
Information on queried leaderboard
- Type:
- Promise
(static) infoById(leaderboardId) → {Promise}
Gets leaderboard information based on leaderboard id
Name | Type | Description |
---|---|---|
leaderboardId | number | Leaderboard ID |
- Source
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
Name | Type | Description |
---|---|---|
mapHash | string | Map hash |
difficulty | number | ( |
countries | Array | Filter by ISO 3166-1 alpha-2 code |
search | string | Query for specific terms |
page | number | Page of result |
gameMode | number | SoloStandard by default. |
withMetadata | boolean | True by default. Returns total number of results, page number, and items per page |
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
Name | Type | Description |
---|---|---|
leaderboardId | number | Leaderboard ID |
countries | Array | Filter by ISO 3166-1 alpha-2 code |
search | string | Query for specific terms |
page | number | Page of result |
withMetadata | boolean | True by default. Returns total number of results, page number, and items per page |
- Source
Scores on queried leaderboard
- Type:
- Promise.<Array>