Skip to content
FuchsCrafter edited this page Apr 30, 2024 · 15 revisions

Introduction

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.

Getting started

Installation

Install the package via PyPi:

pip install skypy-api

Getting an API key

As a developer, you will need to get a personal API key or an API key for your app from the Hypixel developer dashboard.

Your first code

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.

Basic Functions

functions that don't have a class

Function: getNews

(requires Authentication)

To get all Skyblock news, use this function.(This are the ingame news that you can find at your island NPC)

Example

print(skypyapi.getNews())
Clone this wiki locally