ppy / osu-api

Public API for accessing osu! related data.
320 stars 16 forks source link

New parameter for /get-user : type=rank #181

Open Stalzak opened 7 years ago

Stalzak commented 7 years ago

Hey, how about allowing to select a user not by name or id, but by their current rank ? I saw a lot of guys asking for leader boards, top x players or other whatnots, but that might be an easy solution.

I'm trying to build a side project in which I'd draw a line chart of pp versus rank. Wait was that proper English ? I don't know, I found the saying on Wikipedia. Anyway, the idea would be to build a graph showing how much pp is worth ranks as of now, and allowing to pinpoint users and ranks on it. It would be the representation of the figurative mountain the user's badges talk about, and that'll allow to see how much pp you need to get to a given rank, or the skill gap between two users and so on.

For that, I would need the ability to get user information at a given rank. Say, if I want to see how much pp has the guy currently #10000, I would use u=10000 and type=rank. Would that be possible ?

(By the way, I just looked into GraphQL since an issue talking about a only parameter got linked to that. Are you using that peppy ? Since I might need to do a lot of request once every day to build the graph, I might as well only ask for what I need)

jxu commented 6 years ago

Agree 100%. I speculate it's possible to get significantly more information using country rankings (the 10,000th US player is rank #63,604, and theoretically going through all leaderboards for all 234 "countries" should get everyone) but this should really be in the API.

jxu commented 6 years ago

102