i have one question for the network dev @Plancke why did you guys make an API? do you use your own API to code hypixel's plugins. for bukkit you can download bukkit and when coding plugins you use the bukkit api. does this mean you need to download a hypixel thing to use the hypixel api? why would we use the hypixel ap over other apis. I just learned java im only 14 i hope i did not ask anything dumb. #PANCAKESQUAD
They probably use bukkit or spigot to code their plugins. However their API allows players to access data such as players' stats, guilds' stats, etc. Take a look at this website, that's what the API was created for.
In this case the Hypixel API is their way of externally accessing data. Instead of having framework for coding a plugin (Ie the Bukkit, Player and World class), it has framework for accessing a player's data externally
The API of Hypixel returns a JSON object that includes data from their database. This is a way to let third party programmers gather info from the database without actual access to the database itself. The API returns a certain amount of data. In this case guild-, server- and playerinfo. If you had access to the actual database, you would be able to see other (maybe important) data, but of course, this wouldn't be safe. To mess around with the data, you can typ /api when you're logged in on Hypixel. You get an API key. This code is required to request data from the hypixel API. The data can be gathered using a webrequest. Example: If you go into your browser and go to https://api.hypixel.net/player?key=XXXXXXXXXXXXXXXX&name=hypickles, where XXX is your personal API key, you get my stats on Hypixel. In your program, you need to perform a GET webrequest to this URL and you get the JSON object to put in a variable. Properties can be gathered like this: data.property.subproperty. (where property is the actual name of the property you need, like wins, kills, ...) JSON is the same file format that Minecraft data often uses. (resourcepacks) JSON data is known to be processed very easily. The way it works is KEY : VALUE. You have a property with a value, it's as simple as that If you have any other questions, don't hesitate to ask (I have experience with the API using C# and webbased languages) ~Your friendly pickle. PS: Working on the webversion of the Hypickles Reporter, check the old windows version here!
So I'm trying to get information about the guild I am like the other players in it. As a foundation I tried to use the URL from @Hypickles video so in the end it looked like this: https://api.hypixel.net/guild?key=XXXXXXXXXXXXXXX&byUuid=b89b381f84f644c8a59bd4618c108f8c (Of course with a working API key.) But when I tried to access it the reason why it didn't work was specified as: "No \"id\" field!". Hope you can help me on that. Thanks in advance.
@Craftofant The actual URL should be like this: https://api.hypixel.net/findGuild?byUuid=playeruuid&key=XXXXXXXXX This one isn't in my video, I kind of forgot Your version of the URL needs the Guild ID for more information about the guild. To get the necessary guildinfo by playername, you can use findGuild. I hope this helped you out Greetings, Your friendly pickle.
So the one "problem" with guild member lists is the API request limit and I have some questions about it: -How many requests can you send without being blocked? -How long does it take until you are able to send requests again? -As what is the cause specified when you are blocked? Or is it displayed as something else? -Do you know if it is allowed to use multiple API keys to bypass the limit? Thanks in advance
120/minute, you get unblocked once the minute on the server passes, the cause could be your key specifically being blocked or a global throttle that is applied... globally... to protect our systems. And no don't use multiple keys.