nodejs package to fetch minecraft server status/info.
- Pure Node.js - No external dependencies
- Dual Edition Support - Check both Java and Bedrock servers
- Simple API - Promise-based interface
- Error Handling - Proper error propagation
- Configurable - Optional API key support
- With API key: 100 requests/minute
- Without API key: 50 requests/minute
npm install @gglvxd/minecraftserverstatus
const MinecraftServerStatus = require('@gglvxd/minecraftserverstatus');
// Create instance (API key optional)
const statusChecker = new MinecraftServerStatus();
// Check Java server
statusChecker.checkJava('mc.hypixel.net')
.then(status => console.log('Java Server Status:', status))
.catch(error => console.error('Error:', error));
// Check Bedrock server
statusChecker.checkBedrock('hivebedrock.network')
.then(status => console.log('Bedrock Server Status:', status))
.catch(error => console.error('Error:', error));
Get your api key at https://fryde.id.lv/dashboard/apikey
const statusChecker = new MinecraftServerStatus('your_api_key_here');
async function checkServers() {
try {
const javaStatus = await statusChecker.checkJava('mc.hypixel.net');
console.log('Java Server Online:', javaStatus.online);
const bedrockStatus = await statusChecker.checkBedrock('hivebedrock.network');
console.log('Bedrock Players Online:', bedrockStatus.players.online);
} catch (error) {
console.error('Error checking servers:', error);
}
}
checkServers();
Creates a new instance of the status checker.
apiKey
(String, optional): Your API key if you have one
Checks the status of a Java edition server.
ip
(String, required): Server IP addressport
(Number, optional, default=25565): Server portpremium
(Boolean, optional, default=false): Use premium points- Returns: Promise that resolves with server status object
Checks the status of a Bedrock edition server.
ip
(String, required): Server IP addressport
(Number, optional, default=19132): Server portpremium
(Boolean, optional, default=false): Use premium points- Returns: Promise that resolves with server status object
{
"online": true,
"ip": "mc.hypixel.net",
"port": 25565,
"version": "Requires MC 1.8 / 1.21",
"protocol": 47,
"players": {
"online": 41844,
"max": 200000
},
"motd": {
"raw": "§f §aHypixel Network §c[1.8-1.21]§f\n §d§lSKYWARS UPDATE §7- §b§lDISASTERS v0.3",
"clean": " Hypixel Network [1.8-1.21]\n SKYWARS UPDATE - DISASTERS v0.3"
},
"favicon": "data:image/png;base64,..."
}
{
"online": true,
"ip": "hivebedrock.network",
"port": 19132,
"version": {
"name": "1.0",
"protocol": 121
},
"players": {
"online": 23065,
"max": 100001
},
"edition": "MCPE",
"motd": {
"raw": "§fBEDWARS + BUILD BATTLE§f\nHive Games",
"clean": "BEDWARS + BUILD BATTLE\nHive Games"
},
"gameMode": "Survival",
"serverGUID": "1747355109132437"
}
The API may return errors with the following status codes:
400
: Missing required parameters429
: Rate limit exceeded500
: Server error503
: Server offline/unreachable
These errors will be rejected as promises with the error object from the API.
MIT