Separate names with a comma.
Does anyone know how much queries can be made to the api per second? I'm coding a mod where I need to get the players friend list, then see the last login dates of everyone on said friend list. I don't want to spam the players api key with requests.
2/s But I recommend only doing one per second, because when you go above it, you might not be able to request anymore
My implementation of this is that I fetch everything as fast as I can, and when I hit the limit (it tells me when I do so, I don't keep track of my requests) then I wait 10 seconds, 20 seconds, 30 seconds etc till I can make new requests again
ty for everyones helpful replies! I don't want to get any of my mod users api keys banned.
@Max Korlaar does the api reply anything specific is the key is getting maxed out, so I can implement your method? Or is it just a check if something doesn't happen, wait for x ammount of seconds
It'll have a field in the reply "throttle": true
Another thing, since you all are so helpful How do you convert the time stamps returned by the api eg:
"lastLogin":1473042353577, into something more "useful" per say, for example a calendar object. This is in java btw. I looked into oscillations but I'm not sure if that is going to help me.
convert them into Date objects using new Date(value)
if you're using Java you could also take a look at our implementation
In APIUtil i added a method to convert a timestamp into a Joda DateTime
thank you so much!
Are there any caching conditions?
is there a way to how a list of a everyone with a certain rank?
There is no way to request all Hypixel players at once, or to filter such a list.
I wouldn't even want to think about where I would store literally millions of these players
I'm new to code so I may ask something dumb, : in order to get "throttle": true you must make a request. Imagine that I make a key info request each 10 seconds, I could reach the limit the last 10sc of a minute
You get the throttle response for every request (so also player/guild etc), ideally you'd keep track of it on each request and globally throttle your application when it hits the limit.
how i can appeal a ban?
To appeal for a ban or a mute please go to hypixel.net/appeal