osu-web icon indicating copy to clipboard operation
osu-web copied to clipboard

Add more fields (star rating, user country) to response of `/scores` endpoint

Open MrHeliX opened this issue 4 months ago • 1 comments

I have no idea how feasible this is, but it would be really cool if star rating could be part of the response returned by the /scores endpoint.

Use case: I am currently using this endpoint to collect incoming scores and group them by country to generate statistics on country #1 scores. Star rating is an essential part of the score, but since mods influence the star rating (and this gets really out of hand with Lazer scores), I have to calculate each star rating separately.

In addition to this, it would be great if the user's country could also be part of the response, but again I have no idea how feasible that is considering table lookups.

MrHeliX avatar Aug 20 '25 11:08 MrHeliX

Creating a separate issue for this seems pointless - it'd also be great if rank_global could be included. I assume it's not the most viable since it'd require an ES lookup and the current behaviour just funnels from the database directly, but maybe there's a more intermediary solution.

tsunyoku avatar Aug 21 '25 10:08 tsunyoku