-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Have you ever wanted to connect to the Skyblock api via Python, but you weren't sure how? This well-documentated framework written in Python helps you to connect to the Skyblock API.
Install the package via PyPi:
pip install skypy-api
As a developer, you will need to get a personal API key or an API key for your app from the Hypixel developer dashboard.
Use this code:
import skypy
skypyapi = skypy.skypy("APIKEY")
to create a basic skypy object. This object is important as it is the base for everything else in this module.
Now, let's move on to your first project. Add this to the bottom of the code above
bazaarapi = skypyapi.bazaar()
print(bazaarapi.fetchAllProducts())
to get a list of all Bazaar items.
functions that don't have a class
(requires Authentication)
To get all Skyblock news, use this function.(This are the ingame news that you can find at your island NPC)
print(skypyapi.getNews())
View on PyPi: https://pypi.org/project/skypy-api/