ppy / osu-web

the browser-facing portion of osu!
https://osu.ppy.sh
GNU Affero General Public License v3.0
980 stars 383 forks source link

Make public the scores of realtime multiplayer rooms #9283

Closed TTTaevas closed 1 year ago

TTTaevas commented 2 years ago

Currently on the website (https://osu.ppy.sh/multiplayer/rooms/{room}) are the participants of a (lazer) room, some details about their performance, and the beatmapset of each playlist item in order from first played to last played However, unlike classic matches (https://osu.ppy.sh/community/matches/{match}), performances for individual beatmaps/playlist items are unavailable

As for the API (v2), more details are available through GET https://osu.ppy.sh/api/v2/rooms/{room}, such as who the room's host is, which difficulty/beatmap got played in a playlist item and with which mods and freemods Scores are supposedly obtainable through GET https://osu.ppy.sh/api/v2/rooms/{room}/playlist/{playlist}/scores, but such requests return a 401 Unauthorized with authentication: 'basic' as data, as if no (valid) token was provided, leading me to believe access to the scores of multiplayer rooms is currently restricted (unless I'm doing something wrong, but doing requests like GET https://osu.ppy.sh/api/v2/users/{user}/{mode} in a similar way works and does not return any 401)

Would it be possible to make the scores of realtime multiplayer rooms available to any OAuth client?

TTTaevas commented 1 year ago

Regarding the API, I'm pretty sure I had just completely messed up the scopes, oops So yeah, API currently works as intended, my bad