Single-header C++ wrapper for Hypixel API JSON shapes tracked by HypixelDatabase/HypixelTracking.
The wrapper keeps the original JSON available while adding typed nested accessors.
nlohmann/json is vendored in include/nlohmann.
#include <hypixel.hpp>
nlohmann::json response = /* API response */;
auto api = hypixel::parse_player_response(response);
auto skywars = api.player().stats().SkyWars();
double xp = skywars.skywars_experience().value_or(0.0);parse_player_responseparse_achievements_responseparse_challenges_responseparse_companions_responseparse_games_responseparse_guild_responseparse_guild_achievements_responseparse_guild_permissions_responseparse_pets_responseparse_quests_responseparse_skyblock_profile_v2_responseparse_skyblock_garden_responseparse_skyblock_bazaar_products_responseparse_skyblock_collections_responseparse_skyblock_skills_responseparse_skyblock_items_response
- Accessors return lightweight views into the original
nlohmann::json; keep the JSON object alive while using them. - Missing or mismatched scalar values return
std::nulloptfrom.get<T>(). - Use
.value_or(default_value)for fallback values. - Use
.raw()when you need direct access to the underlying JSON field.