Skip to content

Commit 0e27b70

Browse files
authored
Add API endpoint for getting Skyblock bingo event and goals data
1 parent 3ab486a commit 0e27b70

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,11 @@ def get_current_election(self) -> dict:
100100
election_info = json.loads(api_request)
101101
del election_info["mayor"]
102102
return election_info
103+
104+
def get_bingo_event(self) -> dict:
105+
"""
106+
Returns a `dict` of information regarding the current bingo event and goals in Skyblock.
107+
"""
108+
api_request = requests.get("https://api.hypixel.net/resources/skyblock/bingo").content
109+
bingo_data = json.loads(api_request)
110+
return bingo_data

0 commit comments

Comments
 (0)