1. Basically what the title says. Is there a way to get guild info of a player from the JSON API (api.hypixel.net)?
     
    #1
    • Funny Funny x 1
  2. minifreddusch

    minifreddusch Well-Known Member

    minifreddusch
    MVP+
    Messages:
    3,413
    There is!

    First, find the ID of the guild. You'll need an API key for all of the actions (get one by running /api on the server).
    You'll need to know the UUID of a player of the guild, as finding guilds via byName doesn't seem to work for now. This is how you can get the UUID of a player:
    https://api.mojang.com/users/profiles/minecraft/The_Bloodhound

    This will give you the guild id:
    https://api.hypixel.net/findGuild?key=INSERTYOURAPIKEY&byUuid=INSERTPLAYERUUID

    Then, you'll have an ID like 5713e39b0cf23c0d9cae8465.

    To now get information about the guild and its members:
    https://api.hypixel.net/guild?key=INSERTYOURAPIKEY&id=5713e39b0cf23c0d9cae8465

    Make sure to replace the guild id with yours in the URL above.
     
    #2
    • Useful Useful x 3
    • Funny Funny x 1
  3. Thank you very much!
     
    #3
    • Funny Funny x 1
  4. Hey I know this thread is old but how do I search for members in the guild
     
    #4
  5. minifreddusch

    minifreddusch Well-Known Member

    minifreddusch
    MVP+
    Messages:
    3,413
    The API guild response includes the guild members in an array. See my post above on how to get a guild response from the API.
     
    #5
    • Like Like x 1
  6. Thanks got it. Is the byName function deprecated? My IGN always gives the response null for guilds.
     
    #6
  7. minifreddusch

    minifreddusch Well-Known Member

    minifreddusch
    MVP+
    Messages:
    3,413
    Yeah, you should go with byUuid.
     
    #7
    • Useful Useful x 1

Share This Page