node-hypixel.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published
NPM Install Info

NPM Version NPM Downloads Deps

node-hypixel.js

Simple node.js lib for using Hypixel's API, with 100% API coverage! Making it easy to fetch data about players, resources, skyblock and much more!

Installation npm install node-hypixel.js

Documentation

https://node-hypixel.tiiny.site/index.html

Example

// Create a new HypixelClient instance.
const { HypixelClient } = require("node-hypixel.js");
const client = new HypixelClient("API KEY");

// Get player by their display name.
client
  .getPlayerByDisplayname("iColtz")
  .then((player) => {
    // Console log the player.
    console.log(player);
  })
  .catch((error) => {
    // Log the error if there is one.
    console.log(error);
  });

FAQ

  • How to obtain an API key? It's simple go on Minecraft Hypixel server, and type the command /api to obtain an api key.

  • How to get my UUID? Go to https://api.mojang.com/users/profiles/minecraft/DISPLAY_NAME_HERE and change the end of the url to use players display name.

Author

Author: iColtz

/node-hypixel.js/

    Package Sidebar

    Install

    npm i node-hypixel.js

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    1.49 MB

    Total Files

    43

    Last publish

    Collaborators

    • coltz