Client#
- class asyncpixel.Hypixel(api_key: str | UUID | None = None)[source]#
Client class for hypixel wrapper.
- await auction_from_player(player: str) List[AuctionItem] | None [source]#
Get auction data from player.
- Parameters:
player (str) – player.
- Returns:
list of auction items.
- Return type:
List[AuctionItem]
- await auction_from_profile(profile_id: str) List[AuctionItem] | None [source]#
Get auction data from profile.
- Parameters:
profile_id (str) – profile id.
- Returns:
list of auction items.
- Return type:
List[AuctionItem]
- await auction_from_uuid(uuid: str | UUID) List[AuctionItem] | None [source]#
Get auction from uuid.
- Parameters:
uuid (UUID) – minecraft uuid.
- Returns:
list of auctions.
- Return type:
List[AuctionItem]
- await auctions(page: int = 0, retry: int = 3) Auction [source]#
Get the auctions available.
- Parameters:
- Returns:
Auction object.
- Return type:
- Raises:
ApiNoSuccessError – Could not get auctions.
- await auctions_ended(retry: int = 3) AuctionEnded [source]#
Get the auctions that have ended.
- Parameters:
retry (int) – Amount of retries to get the data from the api Defaults to 3.
- Returns:
AuctionEnded object.
- Return type:
- Raises:
ApiNoSuccessError – Could not get auctions ended.
- await bazaar() Bazaar [source]#
Get info of the items in the bazaar.
- Returns:
object for bazzar.
- Return type:
- await boosters() Boosters [source]#
Get the current online boosters.
- Returns:
object containing boosters.
- Return type:
- await game_count() GameCounts [source]#
Gets number of players per game.
- Returns:
game counts.
- Return type:
- await guild_by_player(player_uuid: str | UUID) Guild | None [source]#
Get guild by player.
- Parameters:
player_uuid (UUID) – uuid of a player in the guild.
- Returns:
guild object.
- Return type:
- await key_data(key: str | None = None) Key [source]#
Get information about an api key.
- Parameters:
key (str, optional) – api key. Defaults token provided in class.
- Raises:
InvalidApiKeyError – No api key available.
- Returns:
Key object.
- Return type:
- await leaderboards() Dict[str, List[Leaderboards]] [source]#
Get the current leaderboards.
- Returns:
raw json response.
- Return type:
Dict[str, Leaderboards]
- await news() List[News] [source]#
Get current skyblock news.
- Returns:
List of news objects.
- Return type:
List[News]
- await player(uuid: str | UUID) Player | None [source]#
Get information about a player from their uuid.
- Parameters:
uuid (UUID) – uuid of player.
- Returns:
player object.
- Return type:
- await player_count() int [source]#
Get the current amount of players online.
- Returns:
number of online players.
- Return type:
- await player_friends(uuid: str | UUID) List[Friend] | None [source]#
Get a list of a players friends.
- Parameters:
uuid (UUID) – the uuid of the player you wish to get friends from.
- Returns:
returns a list of friend elements.
- Return type:
List[Friend]
- await player_status(uuid: str | UUID) Status | None [source]#
Get current online status about a player.
- Parameters:
uuid (UUID) – uuid of player.
- Returns:
Status object of player.
- Return type:
- await recent_games(uuid: str | UUID) List[Game] | None [source]#
Get recent games of a player.
- Parameters:
uuid (UUID) – uuid of player.
- Returns:
list of recent games.
- Return type:
List[Game]
- await resources_achievements() Dict[str, Any] [source]#
Get the current resources. Does not require api key.
- Returns:
raw json response.
- Return type:
Dict[str, Any]
- await resources_challenges() Dict[str, Any] [source]#
Get the current resources. Does not require api key.
- Returns:
raw json response.
- Return type:
Dict[str, Any]
- await resources_guilds_achievements() Dict[str, Any] [source]#
Get the current resources. Does not require api key.
- Returns:
raw json response.
- Return type:
Dict[str, Any]
- await resources_guilds_permissions() Dict[str, Any] [source]#
Get the current resources. Does not require api key.
- Returns:
raw json response.
- Return type:
Dict[str, Any]
- await resources_quests() Dict[str, Any] [source]#
Get the current resources. Does not require api key.
- Returns:
raw json response.
- Return type:
Dict[str, Any]
- await resources_skyblock_collections() Dict[str, Any] [source]#
Get the current resources. Does not require api key.
- Returns:
raw json response.
- Return type:
Dict[str, Any]
- await resources_skyblock_skills() Dict[str, Any] [source]#
Get the current resources. Does not require api key.
- Returns:
raw json response.
- Return type:
Dict[str, Any]