We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5d73ed + bcd092c commit 281e626Copy full SHA for 281e626
api.py
@@ -14,6 +14,13 @@ def get_uuid(self, player_name: str) -> str:
14
return content["id"]
15
16
# API Retrieval Commands
17
+ def get_player_info(self, player_name: str) -> dict:
18
+ """Fetches data of a specific player, including game stats."""
19
+ player_uuid = self.get_uuid(player_name)
20
+ api_request = requests.get(f"https://api.hypixel.net/player?key={self.api_key}&uuid={player_uuid}").content
21
+ player_data = json.loads(api_request)
22
+ return player_data
23
+
24
def get_auctions(self, page: int = 0) -> dict:
25
"""
26
Returns a `dict` of the 1000 latest auctions in Skyblock.
0 commit comments