Skip to content

Instantly share code, notes, and snippets.

@zt3h
zt3h / gist:809b7bf5a98b851317dc50e13e89ef7f
Created November 20, 2021 10:17
Code Example in JS for /networth/categories
const axios = require('axios');
const getActiveProfile = function (profiles, uuid) {
return profiles.sort((a, b) => b.members[uuid].last_save - a.members[uuid].last_save)[0];
};
const getNetworth = async function (uuid, key) {
const { data } = await axios.get(`https://api.hypixel.net/skyblock/profiles?key=${key}&uuid=${uuid}`);
const activeProfile = getActiveProfile(data.profiles, uuid);
@zt3h
zt3h / gist:8b516ddcf3fc1c8d3be5a270a413a828
Last active December 22, 2021 17:17
Example Response for /networth/categories
{
"status": 200,
"data": {
"categories": {
"storage": {
"total": 767754968,
"top_items": [
{
"id": "hyperion",
"name": "Withered Hyperion ✪✪✪✪✪",
@zt3h
zt3h / gist:aaa28d1cf874640e36f32836d3034e82
Last active December 22, 2021 17:18
Example JSON body for /networth/categories
{
"data": {
"last_save": 1631208157138,
"inv_armor": {
"type": 0,
"data": "H4sIAAAAAAAAAN1X3U4bRxQe45AY04Q0ipTSXmTSNlUo2WZ/vV6kXhjbYBNsEzA29o01uztrL6x33f0BnHfofW8q9aISL9An4FHyHG3UM7uGgEOEqNSmCgLsOfudOWfOnO/bmSxCcyhlZxFCt2bQjG2muBSaLXqRG6ayKB2S/hy6RV1jgNhPCs3vurpPyQHRHZpKo7mKbdI1h/QDePo2i+6YdjByyBicNj2fZsC6iL49PVF3Qp+6/XCwgk9PjGVJgQ/tWcE1bOqGGMZLaAlQRd8OcXFAXIMmQEF5ehkJhgvQEhmS/gSqCVNQWQAoQt8BuEKJk8QmyyqubF0GMssSegK4ErWoG9Az4GXUErrPFjKi1EwAAh9nUnVD6jh2n06yhgfi1PpEhWXyEGxrlIQD6uM1Ai5uH++hr+MpDChqQAM88I7wwO4P8NiLsEFcbAEQPQaMTi2oKA7JAfNjZmzGy8f6GH0DAIgs8PCJiWtin5qRAfNdwMXp62OWocI/he8/QE5fnp7k1iLA7NAQr3puFKxAVYMBxIgzq5FjPIirhwNAhB6rtajwb379PZ7hq7hqxJnsFs/2QE3iPWEB8y3qj3EQjh07GLCAYNPO6hLHi8Os+8QNg6R4rHRvfvkNX9hhxGwAG0HlIFCRhMTwhjpzUB16SB02s3B6Yp6eOKcnB+T0hOGSEftf6zQr1SJebTSaO/gdLI1mDc/xfLS4uJhBt+pkSFkbmGf5lR3ah7xwMzqmpocbx7ADZoCyaKF8HPqkEIa+rUchDdJowSeQ7rgXjfo+MSmjQypzNn1GVFbi3wzKDD3TtmzqozskiZJBc55v9223Sfrozm79Zb3RrmcYFdHD8mZ5vVBv9pq7e+VSoxfnn0WfMT5CXkPwZqGtpKd6VtJTEDqLY