Hypixel.NET
1.0.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Hypixel.NET --version 1.0.7
NuGet\Install-Package Hypixel.NET -Version 1.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hypixel.NET" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hypixel.NET --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hypixel.NET, 1.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Hypixel.NET as a Cake Addin #addin nuget:?package=Hypixel.NET&version=1.0.7 // Install Hypixel.NET as a Cake Tool #tool nuget:?package=Hypixel.NET&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Hypixel.NET C# Wrapper
This is my C# implmentation of the Hypixel API
NuGet Package
The NuGet package can be found at https://www.nuget.org/packages/Hypixel.NET/
Examples
Here are some examples from the Example project. Both Synchronous and Async methods are provided
using System;
using System.Threading.Tasks;
using Hypixel.NET;
namespace Examples
{
class Program
{
static async Task Main(string[] args)
{
var hypixel = new HypixelApi("YOUR API KEY", 300);
#region Synchronous
//Synchronous requests
var playerRequest = hypixel.GetUserByPlayerName("barrows");
Console.WriteLine(playerRequest.Player.Stats.SkyWars.Kills);
var playerUuidRequest = hypixel.GetUserByUuid("4c38f0a6-a36f-4f06-985c-7851b3853ccb");
Console.WriteLine(playerUuidRequest.Player.Stats.SkyWars.ArrowsShot);
var guildByGuildName = hypixel.GetGuildByGuildName("Develop");
Console.WriteLine(guildByGuildName.Guild.Coins);
var guildByPlayerName = hypixel.GetGuildByPlayerName("barrows");
Console.WriteLine(guildByPlayerName.Guild.Exp);
var guildByUuid = hypixel.GetGuildByUuid("4c38f0a6-a36f-4f06-985c-7851b3853ccb");
Console.WriteLine(guildByUuid.Guild.Name);
var getFriendsByUuid = hypixel.GetPlayerFriendsByUuid("4c38f0a6-a36f-4f06-985c-7851b3853ccb");
Console.WriteLine(getFriendsByUuid.Records.Count);
var getFriendsByPlayerName = hypixel.GetPlayerFriendsByPlayerName("barrows");
Console.WriteLine(getFriendsByPlayerName.Records.Count);
var getBoosters = hypixel.GetBoosters();
Console.WriteLine(getBoosters.Boosters.Count);
var watchdogStats = hypixel.GetWatchdogStats();
Console.WriteLine(watchdogStats.WatchdogTotal);
var getApiKey = hypixel.GetApiKeyInformation("YOUR API KEY");
Console.WriteLine(getApiKey.Record.TotalQueries);
var getLeaderboards = hypixel.GetLeaderboards();
Console.WriteLine(getLeaderboards.Leaderboards.SkyWars.Count);
var getGameCounts = hypixel.GetGameCounts();
Console.WriteLine(getGameCounts.Games.Limbo.Players);
var getSkyblockProfile = hypixel.GetSkyblockProfileByProfileId("4c38f0a6a36f4f06985c7851b3853ccb");
foreach (var member in getSkyblockProfile.Profile.Members)
{
Console.WriteLine(member.Value.PlayerStats.AuctionsBids);
}
var getProfilesByName = hypixel.GetSkyblockProfilesByName("barrows");
foreach (var profile in getProfilesByName)
{
Console.WriteLine(profile.Profile.ProfileId);
}
var getAuctionPage = hypixel.GetAuctionPage(0);
Console.WriteLine(getAuctionPage.Auctions[0].End);
var auctionsByPlayerUuid = hypixel.GetAuctionsByPlayerUuid("4c38f0a6a36f4f06985c7851b3853ccb");
Console.WriteLine(auctionsByPlayerUuid.Auctions[0].Auctioneer);
var auctionsByPlayerName = hypixel.GetAuctionsByPlayerName("barrows");
Console.WriteLine(auctionsByPlayerName.Auctions[0].Start);
var auctionsBySkyblockProfile = hypixel.GetAuctionsByProfileId("4c38f0a6a36f4f06985c7851b3853ccb");
Console.WriteLine(auctionsBySkyblockProfile.Auctions[0].ItemName);
var auctionsBySkyblockAuctionId = hypixel.GetAuctionByAuctionId("6a576eeb8f6e4941a72844147c378b65");
Console.WriteLine(auctionsBySkyblockAuctionId.Auction[0].ItemName);
#endregion
#region Async
//Async requests
var playerRequestAsync = await hypixel.GetUserByPlayerNameAsync("barrows").ConfigureAwait(false);
Console.WriteLine(playerRequestAsync.Player.Stats.SkyWars.Kills);
var playerUuidRequestAsync = await hypixel.GetUserByUuidAsync("4c38f0a6-a36f-4f06-985c-7851b3853ccb").ConfigureAwait(false);
Console.WriteLine(playerUuidRequestAsync.Player.Stats.SkyWars.ArrowsShot);
var guildByGuildNameAsync = await hypixel.GetGuildByGuildNameAsync("Develop").ConfigureAwait(false);
Console.WriteLine(guildByGuildNameAsync.Guild.Coins);
var guildByPlayerNameAsync = await hypixel.GetGuildByPlayerNameAsync("barrows").ConfigureAwait(false);
Console.WriteLine(guildByPlayerNameAsync.Guild.Exp);
var guildByUuidAsync = await hypixel.GetGuildByUuidAsync("4c38f0a6-a36f-4f06-985c-7851b3853ccb").ConfigureAwait(false);
Console.WriteLine(guildByUuidAsync.Guild.Name);
var getFriendsByUuidAsync = await hypixel.GetPlayerFriendsByUuidAsync("4c38f0a6-a36f-4f06-985c-7851b3853ccb").ConfigureAwait(false);
Console.WriteLine(getFriendsByUuidAsync.Records.Count);
var getFriendsByPlayerNameAsync = await hypixel.GetPlayerFriendsByPlayerNameAsync("barrows").ConfigureAwait(false);
Console.WriteLine(getFriendsByPlayerNameAsync.Records.Count);
var getBoostersAsync = await hypixel.GetBoostersAsync().ConfigureAwait(false);
Console.WriteLine(getBoostersAsync.Boosters.Count);
var watchdogStatsAsync = await hypixel.GetWatchdogStatsAsync().ConfigureAwait(false);
Console.WriteLine(watchdogStatsAsync.WatchdogTotal);
var getApiKeyAsync = await hypixel.GetApiKeyInformationAsync("YOUR API KEY").ConfigureAwait(false);
Console.WriteLine(getApiKeyAsync.Record.TotalQueries);
var getLeaderboardsAsync = await hypixel.GetLeaderboardsAsync().ConfigureAwait(false);
Console.WriteLine(getLeaderboardsAsync.Leaderboards.SkyWars.Count);
var getGameCountsAsync = await hypixel.GetGameCountsAsync().ConfigureAwait(false);
Console.WriteLine(getGameCountsAsync.Games.Limbo.Players);
var getSkyblockProfileAsync = await hypixel.GetSkyblockProfileByProfileIdAsync("4c38f0a6a36f4f06985c7851b3853ccb").ConfigureAwait(false);
foreach (var member in getSkyblockProfileAsync.Profile.Members)
{
Console.WriteLine(member.Value.PlayerStats.AuctionsBids);
}
var getProfilesByNameAsync = await hypixel.GetSkyblockProfilesByNameAsync("barrows").ConfigureAwait(false);
foreach (var profile in getProfilesByNameAsync)
{
Console.WriteLine(profile.Profile.ProfileId);
}
var getAuctionPageAsync = await hypixel.GetAuctionPageAsync(0).ConfigureAwait(false);
Console.WriteLine(getAuctionPageAsync.Auctions[0].End);
var auctionsByPlayerUuidAsync = await hypixel.GetAuctionsByPlayerUuidAsync("4c38f0a6a36f4f06985c7851b3853ccb").ConfigureAwait(false);
Console.WriteLine(auctionsByPlayerUuidAsync.Auctions[0].Auctioneer);
var auctionsByPlayerNameAsync = await hypixel.GetAuctionsByPlayerNameAsync("barrows").ConfigureAwait(false);
Console.WriteLine(auctionsByPlayerNameAsync.Auctions[0].Start);
var auctionsBySkyblockProfileAsync = await hypixel.GetAuctionsByProfileIdAsync("4c38f0a6a36f4f06985c7851b3853ccb").ConfigureAwait(false);
Console.WriteLine(auctionsBySkyblockProfileAsync.Auctions[0].ItemName);
var auctionsBySkyblockAuctionIdAsync = await hypixel.GetAuctionByAuctionIdAsync("6a576eeb8f6e4941a72844147c378b65").ConfigureAwait(false);
Console.WriteLine(auctionsBySkyblockAuctionIdAsync.Auction[0].ItemName);
#endregion
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 12.0.3)
- RestSharp (>= 106.6.10)
- System.Runtime.Caching (>= 4.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.9.4 | 707 | 12/17/2021 | |
1.0.9.3 | 645 | 3/7/2021 | |
1.0.9.2 | 590 | 8/1/2020 | |
1.0.9.1 | 497 | 6/28/2020 | |
1.0.9 | 484 | 5/14/2020 | |
1.0.8.1 | 479 | 4/20/2020 | |
1.0.8 | 601 | 3/13/2020 | |
1.0.7 | 555 | 12/26/2019 | |
1.0.6.1 | 473 | 12/14/2019 | |
1.0.6 | 516 | 10/20/2019 | |
1.0.5 | 582 | 10/19/2019 | |
1.0.4 | 472 | 10/13/2019 | |
1.0.3 | 514 | 8/13/2019 | |
1.0.1 | 585 | 3/20/2019 | |
1.0.0 | 571 | 3/16/2019 |
Async methods