
How to Check Minecraft Server Status with JavaScript (Free API)
If you're building a Discord bot, a server dashboard, or a status page for your Minecraft community, you probably need a way to check if a server is online and how many players are connected. In this tutorial, I'll show you how to query any Minecraft server (Java or Bedrock) using a free API and a lightweight npm package — no API key required. The API Minecraft ServerHub provides a free REST API for checking Minecraft server status. It supports both Java Edition and Bedrock Edition servers, and returns data like: Online/offline status Player count (current and max) MOTD (Message of the Day) Server version Latency The full API documentation is here . Quick Start with the npm Package I published a zero-dependency wrapper called minecraft-server-status that makes it super easy: npm install minecraft-server-status Check a Java Server const { getJavaStatus } = require ( ' minecraft-server-status ' ); const status = await getJavaStatus ( ' mc.hypixel.net ' ); console . log ( `Players: ${ sta
Continue reading on Dev.to Webdev
Opens in a new tab




