JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q35580F
  • License MIT

Quickly retrieve data from the Hypixel Skyblock API

Package Exports

  • hyskydata

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyskydata) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

HySkyData

This package is meant for those who need hypixel prices

Created by: Apollo#6000

Setup

const hyskydata = require("hyskydata");

Retrieving all items

const hyskydata = require("hyskydata");

/**
 * Amount of pages to request
 * An example would be hyskydata.getAll(3);
 * Min-Max: 1-50
 * NOTE: The more pages you request, the more accurate the data is, BUT the slower the output response
 * ANOTHER NOTE: This is an Async/Await function
 */
hyskydata.getAll();

Output

{
  "BROWN_MUSHROOM": {
    "id": "BROWN_MUSHROOM",
    "name": "Brown Mushroom",
    "buyPrice": 9.58452030606239,
    "sellPrice": 8.6,
    "buyVolume": 358005,
    "sellVolume": 335488,
    "tag": null,
    "price": 9.092260153031194
  },
  "INK_SACK:3": {
    "id": "INK_SACK:3",
    "name": "Cocoa Beans",
    "buyPrice": 5.4,
    "sellPrice": 3.4,
    "buyVolume": 758537,
    "sellVolume": 625530,
    "tag": null,
    "price": 4.4
  },
  "INK_SACK:4": {
    "id": "INK_SACK:4"...

Retrieving specific items

const hyskydata = require("hyskydata");

/**
 * Supply Item IDs in the array, if there is no such thing it just skips it
 * and outputs whatever it CAN find
 */
hyskydata.getSpecific(["SUPERIOR_FRAGMENT", "SUPERIOR_DRAGON_CHESTPLATE"]);

Output

{
  "BOOSTER_COOKIE": {
    "id": "BOOSTER_COOKIE",
    "buyPrice": 969997.5,
    "buyVolume": 2100,
    "sellVolume": 5365,
    "tag": null,
    "price": 960498.9333333333
  },
  "SUPERIOR_FRAGMENT": {
    "id": "SUPERIOR_FRAGMENT",
    "name": "Superior Dragon Fragment",
    "buyPrice": 176792.5,
    "sellPrice": 163000.9,
    "buyVolume": 3112,
    "sellVolume": 207710,
    "tag": "sup frag drag",
    "price": 169896.7
}