11.3.7 • Published 8 months ago

hypixel-api-reborn v11.3.7

Weekly downloads
235
License
MIT
Repository
github
Last release
8 months ago

npm.io

Hypixel API • Reborn


npm.io

Reborn Hypixel API Client for Node.js with more new features


Easy for use • Compact ModeDiscord Support


Documentation

FunctionsArgumentsReturns
getPlayerUUID / NicknamePlayer
getGuildGID / Name / NicknameGuild
getFriendsUUID / NicknameMap
getWatchdogStatsObject
getOnlineNumber

Soon will be more functions


Setup

const Hypixel = require('hypixel-api-reborn');

// Parameters:
// API Key (String)
// Compart Mode (Boolean)

const hypixel = new Hypixel('API-KEY', true);

Examples

getPlayer

// Arguments:
// UUID / Player Nickname
hypixel.getPlayer('GravitonSurge').then(async (player) => {
    console.log(player.uuid) // -> 52d9a36f66ce4cdf9a56ad9724ae9fb4
    console.log(player.karma) // -> 4570876
    
    // if compact mode is ON
    console.log(player.rank) // -> [MVP+]
    console.log(player.level) // -> 138.01 
    console.log(player.isOnline()) // -> false
})

hypixel.getPlayer('abcde1234').then(async (player) => {
    console.log(player) // -> null
}).catch(e => {
    console.log(e) // -> Player does not exist
})

getGuild

// Arguments:
// Guild ID / Guild Name / Player Nickname
// id / name / player
hypixel.getGuild('The Foundation', 'name').then(async (guild) => {
    console.log(guild.name) // -> The Foundation
    console.log(guild.description) // -> Foundation ❤ AYS

    //if compact mode is ON
    console.log(guild.level) // -> 73
    console.log(guild.legacyRank) // -> 1
})

hypixel.getGuild('abcde1234', 'name').then(async (guild) => {
    console.log(guild) // -> null
}).catch(e => {
    console.log(e) // -> Guild does not exist
})

getFriends

// Arguments:
// UUID / Player Nickname
hypixel.getFriends('GravitonSurge').then(async (friends) => {
    console.log(friends.length) // -> 12
})

hypixel.getFriends('abcde1234').then(async (friends) => {

}).catch(e => {
    console.log(e) // -> Player does not exist
})

getWatchdogStats

hypixel.getWatchdogStats().then(async (stats) => {
    console.log(stats)
    /* -> 
    WatchdogStats {
        ByWatchdogTotal: 4112671,
        ByWatchDogLastMinute: 1,
        ByWatchdogRollingDay: 6538,
        ByStaffTotal: 1471159,
        ByStaffRollingDay: 1353
    }
    */
})

getOnline

hypixel.getOnline().then(async (online) => {
    console.log(online) // -> 34327
})
12.0.0-5

8 months ago

12.0.0-6

8 months ago

12.0.0-4

9 months ago

12.0.0-1

10 months ago

12.0.0-0

10 months ago

12.0.0-3

9 months ago

12.0.0-2

10 months ago

11.3.7

9 months ago

11.3.5

10 months ago

11.3.6

10 months ago

11.2.0

1 year ago

11.2.1

1 year ago

11.3.3

11 months ago

11.3.4

11 months ago

11.3.1

11 months ago

11.3.2

11 months ago

11.3.0

11 months ago

11.1.0

1 year ago

11.0.0

2 years ago

11.0.1

2 years ago

10.0.0

3 years ago

9.0.3

4 years ago

9.0.2

4 years ago

9.0.1

4 years ago

9.0.0

4 years ago

8.3.0

4 years ago

8.1.0

4 years ago

8.0.0

4 years ago

8.2.0

4 years ago

7.0.3

4 years ago

7.0.0

4 years ago

7.0.2

4 years ago

6.3.0

4 years ago

6.2.0

4 years ago

6.1.1

4 years ago

6.1.0

4 years ago

6.0.1

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.4

4 years ago

5.0.3

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.1.4

4 years ago

4.1.3

4 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.5.1

5 years ago

2.4.2

5 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.9

5 years ago

2.2.7

5 years ago

2.2.8

5 years ago

2.2.5

5 years ago

2.2.6

5 years ago

2.2.3

5 years ago

2.2.4

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.9

5 years ago

2.1.8

5 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago