This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": 200, | |
"data": { | |
"categories": { | |
"storage": { | |
"total": 767754968, | |
"top_items": [ | |
{ | |
"id": "hyperion", | |
"name": "Withered Hyperion ✪✪✪✪✪", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 |