Get Minecraft Server Status with NodeJs Request

With this simple snippet and quick snipped you can get the status of your or other’s minecraft server just by entering 1 command line with NodeJs.

Keep in mind that you should have some basic understanding of NodeJs and a local installation where you can test out the code below.

 

You should also have installed the NodeJs Request library. The code above is basically sending a GET request to mcapi.us to get the current status of the minecraft server.

Run it like this:

node app.js SERVER_IP SERVER_PORT

Leave a Reply

Your email address will not be published. Required fields are marked *