Home ยป Hive Gen API

Hive Generation API

The HiveMC Generation API is a Image Generation Service which fetches Player Statistics from the Hive API and display them in Images and/or Graphs. This project is currently being maintained by NTM Development.

Features:
  • Fast, Cached Responses
  • Supports both Monthly and All Time Statistics
  • Supports the Hive Bedrock Edition Server. (Java Edition Statistics and Graphs are Coming Soon)
  • Customisation (Such as Backgrounds, Graph Type etc.)

Getting Started

This API is only using the GET method for endpoints. Responses will return in a Image Buffer and you can refer to the documentation here.

Example: Discord.js (^12.3.1) and Superagent (^5.2.2)


    const { MessageEmbed } = require("discord.js");
    const { get } = require("superagent");
                
    exports.run = async (bot, message, args) => {
        const { body } = await get(`https://hivegen.ntmnathan.com/api/stats/bedrock/monthly/dr`)
        .query({ player: `Bricen120`, bg: "game" })
                
        const embed = new MessageEmbed()
            .attachFiles({ attachment: body, name: "hivesig.png" })
            .setImage("attachment://hivesig.png")
                
        message.channel.send(embed);
                
    }

   

API Wrappers

Unfortunately, there are no wrappers for Hive Gen yet. If you have created a Hive Gen Wrapper and would like to have your NPM module listed here. Please message NTM Nathan#0001 on Discord.


Bugs, Feedback and Support

If you have encountered a bug, or like to give feedback, or support. Please join the NTM Discord Server. Please remember that this project is not an official HiveMC Project. So anything regarding this API must go to NTM Development.


Projects

The following projects use Hive Gen...


Examples