Server status
get real-time server status
get
https://sr-api.sfirew.com
/server/<address>:<port>
get the server status
If the server port is 25565, you don't need to set it specially, the API will set it automatically.
curl
JavaScript fetch
curl https://sr-api.sfirew.com/server/mc.hypixel.net
fetch('https://sr-api.sfirew.com/server/mc.hypixel.net')
.then(function(response) {
return response.json();
})
.then(function(statusJSON) {
console.log('statusJSON', statusJSON);
});
{
"ip": "mc.hypixel.net", // host address
"port": 25565, // server port
"online": true, // is online? if online will be true, else false
"isp": { // isp info
"name": "Hypixel, INC", // isp name
"city": "Val-des-Monts", // isp service city
"location": "45.62145, -75.64044", // Latitude, Longitude
"distance": "11980 km" // distance
},
"hostname": "hidden", // true host address, current is hidden
"query_place": "Taiwan", // the query host region
"query_host_id": "taipei-main", // the query host id
"icon": "data:image/png;base64,iVBORw0...", // if icon size is large it may take a while time
"motd": {
// raw motd data
"raw": " §aHypixel Network §c[1.8-1.19]\n §c§lLUNAR MAPS §7§l§ §6§lCOSMETICS §7| §d§lSKYBLOCK 0.17.3",
// parsed html
"html": " <span style=\"color: #55FF55;\">Hypixel Network </span><span style=\"color: #FF5555;\">[1.8-1.19]<br/> </span><span style=\"color: #FF5555;font-weight: bold;\">LUNAR MAPS </span><span style=\"color: #AAAAAA;font-weight: bold;\">§ </span><span style=\"color: #FFAA00;font-weight: bold;\">COSMETICS </span><span style=\"color: #AAAAAA;font-weight: bold;\">| </span><span style=\"color: #FF55FF;font-weight: bold;\">SKYBLOCK 0.17.3</span>"
},
// server info is players name list or custom message
"info": {
"raw": [], // raw data
"html": "" // parsed html
},
"players": {
"max": 100000, // max players in server
"online": 60342, // current players
"sample": [] // players list, some server won't view
},
"version": {
"name": "Requires MC 1.8 / 1.19", // server software or verion name
"protocol": 758
},
"ping": 181 // server ping time - base unit millisecond
}
Last modified 6mo ago