forum

osu!api open beta

posted
Total Posts
90
show more
Full Tablet

Vostok Sisters wrote:

Hello. I trying to grab information about top 100 scores of a specified beatmap.

But the server receives an empty response. Where error in my query?
If you specify the "u" parameter, it will return empty unless that player has an score in that map. Remove that parameter.
Also, try using '0' instead of 0 in the "m" parameter.
Put your api key in the "k" parameter if you haven't already.
wokalek

Full Tablet wrote:

Vostok Sisters wrote:

Hello. I trying to grab information about top 100 scores of a specified beatmap.

But the server receives an empty response. Where error in my query?
If you specify the "u" parameter, it will return empty unless that player has an score in that map. Remove that parameter.
Also, try using '0' instead of 0 in the "m" parameter.
Put your api key in the "k" parameter if you haven't already.

Nope, same query response

Full Tablet
https://github.com/ppy/osu-api/issues/139
It seems like get_scores doesn't work with POST requests in particular. Try doing a GET request instead.
wokalek

Full Tablet wrote:

https://github.com/ppy/osu-api/issues/139
It seems like get_scores doesn't work with POST requests in particular. Try doing a GET request instead.
Yes, with get-request it's works. Thanks.
wokalek
/api/get_scores

k - api key (required).
b - specify a beatmap_id to return score information from (required).
u - specify a user_id or a username to return score information for.
If I specify the username in the query, does the user's top results return or result what in the top 100 best of all time and users?

//Ref API
Blank_Dream
how can i know if my request for api is declined or can be accepted soon? :cry: :cry: :cry: :cry: :cry:
Adri
Hello, as I do not think there is something about it yet, it's kind of a feature request;

When requesting user information, how do we differentiate an error from a non existent user from a restricted user from a permanently banned user ?

I have a set of users and I am thinking of lowering requests rates depending on user activity / API repsonse.

The problems I ran into were Invalid answers : I cannot interprate them as a banned user because they happen randomly as well, and I don't want to untrack someone totally legit, but it results in probably many restricted or banned users to generated requests once a day each, lowering the service quality for others :/

If it already exists I didn't know about it,if not this would be a great feature :)
ColdVolcano
[Redacted] turns out it's in the docs
Ameo
Hi. I've noticed that the API has been changed from aggregating S+SH and SS+SSH ranks to now providing these values as separate entries in the returned JSON for the `get_user` endpoint. This is a great change (although exposing it behind a new version or modified endpoint would have been nice), but it doesn't seem to be returning accurate data.

The `count_rank_s` and `count_rank_sh` attributes are reporting the same value for all users that I've tested. This value is lower than previous values for the `count_rank_s` attribute in the past, leading me to believe that this is a bug in the API.

My guess is that the API is reporting the count of non-HD S ranks for both of those attributes, and that the `count_rank_sh` is innacurate. Can anyone else confirm that this is the case?
Adri
Oh I didn't notice that this change had been made >< This is where all the SS went for the past month ! I made the change too but it would have been nice to be warned ^^ Also if this is reverted or something it would be nice to be warned ^^
Player368
Why?
SPOILER
This display site

This display api


please help me, I don `t know why this happens. and it breaks my code
Adri
Yes this is a known bug they didn't fix, rank_sh is the same as rank_ss somehow. For now I just dont count it because it's broken
- Incarndine -
Honestly can't wait for new progress on the game! keep up the good progress!
vanessahime
I just didn't understand, can someone help me to tell what is the point of this discussion ?
MTG
Une api OSU! cool
CacTuZ
Its loooks preaty good xDDD
_Nox_

XPJ38 wrote:

Is there a fair use limit? (e.g. no more than XX requests per day)

For get_user, I suppose there is a mode parameter for getting user information for Taiko, CtB and osu!mania? Or do I have to file an issue in GitHub? Nevermind, I found it, the parameter to add is called "m" :D I have edited the GitHub wiki.


Gooood, I totally remember the 2008 one. Random comment but your image gave me nostalgia lol xd
buggycode
Can anyone help me understand the /get_beatmaps endpoint?

From my understanding is that based on these variables that you can narrow down what maps you want to search.

these variables
since - return all beatmaps ranked or loved since this date. Must be a MySQL date. In UTC
s - specify a beatmapset_id to return metadata from.
b - specify a beatmap_id to return metadata from.
u - specify a user_id or a username to return metadata from.


For [since] is it possible to find beatmaps that aren't loved or ranked?

Thanks
binarymatrix
Is it possible to get an API-key without having a discord account?

I'd rather not register to discord with my actual email and using guerrilla mail to register didn't work either due to them asking for verification by phone because discord detected 'something out of the ordinary going on'.
varn88
Hello,
I bumped into an issue trying to get the response from a request, that has more than 500 hits, but it's limited to giving 500. Is there a way to send a new request to get the remaining results that didn't fit in the first response(the next 500, and then the next 500 and so on)?

I'm trying to use the get_beatmaps query to get unranked mania maps, and since they are unranked the 'since' keyword doesn't apply and I can't find any other way to control from which point I want to get the results.

I've also opened an issue about it on the github page of the api wiki, but it didn't see much traffic and I'm hoping I can get an advice here.
oSumAtrIX

varn88 wrote:

Hello,
I bumped into an issue trying to get the response from a request, that has more than 500 hits, but it's limited to giving 500. Is there a way to send a new request to get the remaining results that didn't fit in the first response(the next 500, and then the next 500 and so on)?

I'm trying to use the get_beatmaps query to get unranked mania maps, and since they are unranked the 'since' keyword doesn't apply and I can't find any other way to control from which point I want to get the results.

I've also opened an issue about it on the github page of the api wiki, but it didn't see much traffic and I'm hoping I can get an advice here.


the osu! api does not support a "since" parameter therefore I recommend using bloodcats api
Kimochi Warui
I'm trying to get an info about a player with login "Loli Hikikomori" trough old api but get null in return. I try 3 other players - everyhting is fine. Could the fact that he had been banned long time ago be the problem?
oliebol
WoctorDho
Is there a way to use the api to download all of someone's plays?
abraker
not all. Only if their score is in top 500
Adri
is it top 500 now ? i thought you could only get top 100 scores from a beatmap
Oderjunks

peppy wrote:

I've had an API available for a while but until now it has been on a private on-request basis. In order to try and make developing third party services which expand and support osu!, I have added an API key setup and started to document the API.


I was just making a web client for osu! and this is going to be very helpful!
Shinjxi
A web client osu! That would be cool
mathias777
making a livecount is legal?, ive made one
Carlodium

mathias777 wrote:

making a livecount is legal?, ive made one
i think yes?
Please sign in to reply.

New reply