-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieve ranking for top 10.000 #102
Comments
Yes, this would be useful. Otherwise I'll have to scrape the rankings. I don't imagine this being too taxing on the website. In fact, top 20k or 100k would be more useful, as top 10k doesn't cover all users of interest (ex. cheaters) |
Really need this |
Hey @peppy! This is a very old request needed by many people here, is there any update on whether it's possible to add an endpoint? Would be enough to receive a list of IDs for up to top 100k players, or at least top 10k for each country separately (like it's done on the website). I imagine a lot of people resort to scraping the website and I really wouldn't want to put that extra load on your servers if an API was available. Thanks! |
@grumd to actually get his attention try tweeting and mentioning him |
So I've noticed api v2 is being implemented and this endpoint is already actually done. The only problem I have is that it seems like it's not possible to autorize for api v2 yet. |
It is totally possible tho, read up about laravel pasport oauth2 and look into lazer sourecode how the endpoints are called (just dont use the lazer client-id/secret, peppy has mentioned multiple times on the dev discord he doesnt want ppl to do that). Also as we speak there is work being done in osu-web to get proper scopes going |
@omkelderman huh that's actually what I've ended up doing after spending 3 hours reading osu-web code lol. I'll look up how lazer is calling the endpoints though! That's a good hint, thanks! Can you link the dev discord btw? |
@omkelderman Also, you seem knowledgeable in this topic, can you help with this? |
Ok so it seems that not all types of tokens are enabled for api v2. Only grant_type of |
Yeah I already got there, thanks :D |
@grumd see my comments on #227 |
@peppy any plans to implement this? |
Perhaps also more than 10.000, although allowing it to do only at a very limited rate (like get_replay)
Of course, this actually means that we get something like /api/get_top, and there are
p
andl
which are kinda self-explanatory on what they do, and the requester is allowed to know who is each rank's player, up to the 10.000th rank.The text was updated successfully, but these errors were encountered: