Thread Status:
Not open for further replies.
  1. Oh lol
     
    #41
    • Funny Funny x 1
  2. MindMC

    MindMC Well-Known Member

    MindMC
    MVP+
    Messages:
    481
    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.
     
    #42
    • Funny Funny x 1
  3. 120/minute
     
    #43
    • Funny Funny x 1
    • Useful Useful x 1
  4. Hypickles

    Hypickles Active Member

    Hypickles
    VIP+
    Messages:
    266
    2/s :) But I recommend only doing one per second, because when you go above it, you might not be able to request anymore :p
     
    #44
    • Funny Funny x 1
    • Useful Useful x 1
  5. 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 :)

    Example: http://hypixel.maxkorlaar.com/friends/Minikloon
     
    #45
    • Like Like x 1
    • Funny Funny x 1
  6. MindMC

    MindMC Well-Known Member

    MindMC
    MVP+
    Messages:
    481
    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
     
    #46
    • Funny Funny x 1
  7. It'll have a field in the reply "throttle": true
     
    #47
    • Useful Useful x 2
    • Funny Funny x 1
  8. MindMC

    MindMC Well-Known Member

    MindMC
    MVP+
    Messages:
    481
    ok, tysm
     
    #48
    • Funny Funny x 1
  9. MindMC

    MindMC Well-Known Member

    MindMC
    MVP+
    Messages:
    481
    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.
     
    #49
    • Funny Funny x 1
  10. #50
    • Useful Useful x 2
    • Funny Funny x 1
  11. MindMC

    MindMC Well-Known Member

    MindMC
    MVP+
    Messages:
    481
    #51
    • Funny Funny x 1
  12. Are there any caching conditions?
     
    #52
    • Funny Funny x 1
  13. M0N3Y

    M0N3Y Well-Known Member

    M0N3YBALL3R
    MVP+
    Slate SLATE
    MEMBER
    Messages:
    2,399
    is there a way to how a list of a everyone with a certain rank?
     
    #53
    • Funny Funny x 1
  14. There is no way to request all Hypixel players at once, or to filter such a list.
     
    #54
    • Funny Funny x 1
  15. M0N3Y

    M0N3Y Well-Known Member

    M0N3YBALL3R
    MVP+
    Slate SLATE
    MEMBER
    Messages:
    2,399
    Rip
     
    #55
    • Funny Funny x 1
  16. I wouldn't even want to think about where I would store literally millions of these players :p
     
    #56
    • Funny Funny x 1
  17. 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 :(
     
    #57
    • Funny Funny x 1
  18. 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.
     
    #58
    • Like Like x 2
    • Funny Funny x 1
    • Useful Useful x 1
    • Hype Train Hype Train x 1
  19. GREECE4EVER

    GREECE4EVER New Member

    Messages:
    1
    how i can appeal a ban?
     
    #59
    • Dislike Dislike x 1
    • Funny Funny x 1
    • Hype Train Hype Train x 1
  20. ZedHP

    ZedHP Modera.. (╯°□°)╯︵ ┻━┻

    ZedHP
    MVP+
    The Swamp §2ⓢⓦⓐⓜⓟ§6
    Member
    Messages:
    2,306
    To appeal for a ban or a mute please go to hypixel.net/appeal
     
    #60
    • Like Like x 1
    • Funny Funny x 1
Thread Status:
Not open for further replies.

Share This Page