Skip to content

API Overview

The package exports one client class, HypixelApiService (aliased as HypixelClient), a provider-based identity layer, an always-on computed enrichment layer, and every raw parser type from @breezil/hypixel-parsers (re-exported). All endpoint methods are async and return null rather than throwing when there is no API key, the target is unknown, or the upstream call fails.

ts
import { HypixelClient } from "@breezil/hypixel-api";

const hypixel = new HypixelClient("YOUR-API-KEY");

Where everything lives

AreaPageWhat's inside
Client and configClient & ConfigConstructor forms, endpoint groups, ping/request/hasApiKey/keys/clearCache, multi-key round-robin, cache/rate-limit/retry pipeline behavior
IdentityResolver & Identity StorescreateResolver, createMojangResolver, provider chaining, IdentityStore port, memory and JSON-file stores
EndpointsPlayer, Guild, Network, Resources, SkyBlock, HousingEvery method, the exact Hypixel endpoint it hits, parameters, and return types
Computed layerOverview & Enriched TypesWithComputed, every Enriched* type, and the unit conventions
Computed referencePlayer, Guild, SkyBlock Member, Garden, Network, Economy, per-mode pages in the sidebarEvery computed interface, field, and formula
Shared mathShared Math & TablesRatio helpers, level curves, prestige tables, oscillation buckets

Endpoint map

Hypixel endpointClient methodReturns
/playerplayer.get(idOrName)EnrichedPlayer (raw + .computed, every stats block enriched)
/playerplayer.raw(idOrName)the unparsed player object
/statusplayer.status(idOrName)PlayerStatus
/recentgamesplayer.recentGames(idOrName)EnrichedRecentGame[]
/guildguild.byId / byName / byPlayerEnrichedGuild
/boostersnetwork.boosters()BoosterFeed (booster state + enriched boosters)
/countsnetwork.counts()EnrichedGameCounts
/leaderboardsnetwork.leaderboards()EnrichedLeaderboards
/punishmentstatsnetwork.watchdog()EnrichedWatchdogStats
/resources/achievementsresources.achievements()Timestamped<...>
/resources/challengesresources.challenges()Timestamped<...>
/resources/questsresources.quests()Timestamped<...>
/resources/guilds/achievementsresources.guildAchievements()GuildAchievements
/resources/gamesresources.games()Timestamped<...>
/resources/vanity/petsresources.vanityPets()Timestamped<VanityResource>
/resources/vanity/companionsresources.vanityCompanions()Timestamped<VanityResource>
/skyblock/profilesskyblock.profiles(idOrName)EnrichedSkyBlockProfile[]
/skyblock/profileskyblock.profile(profileId)EnrichedSkyBlockProfile
/skyblock/gardenskyblock.garden(profileId)EnrichedGarden
/skyblock/museumskyblock.museum(profileId)EnrichedMuseum
/skyblock/bazaarskyblock.bazaar()Timestamped<Record<string, EnrichedBazaarProduct>>
/skyblock/auctionsskyblock.auctions(page?)EnrichedAuctionsPage
/skyblock/auctionskyblock.auction(by, query)EnrichedAuction[]
/skyblock/auctions_endedskyblock.endedAuctions()Timestamped<EnrichedEndedAuctions>
/skyblock/firesalesskyblock.fireSales()EnrichedFireSale[]
/skyblock/newsskyblock.news()SkyBlockNewsItem[]
/resources/skyblock/itemsskyblock.items()Timestamped<SkyBlockItem[]>
/resources/skyblock/skillsskyblock.skills()SkyBlockSkillsResource
/resources/skyblock/collectionsskyblock.collections()SkyBlockCollectionsResource
/resources/skyblock/electionskyblock.election()SkyBlockElectionResource
/resources/skyblock/bingoskyblock.bingo()SkyBlockBingoResource
/skyblock/bingoskyblock.playerBingo(idOrName)PlayerBingoEvent[]
/housing/activehousing.active()HousingHouse[]
/housing/househousing.get(houseId)HousingHouse
/housing/houseshousing.forPlayer(idOrName)HousingHouse[]
any v2 pathrequest<T>(endpoint)success-checked raw body

Raw parser types (HypixelPlayer, Guild, SkyBlockProfile, HousingHouse, and the rest) are documented on the raw type reference and re-exported from this package.

Released under the MIT License.