Minecraft Server Status API

Beginner's Pick Games & Comics / No Auth Required Beginner HTTPS
Free to Use
87 A
Measured Score 0 50 100 Speed 27/30 Consistency 17/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

The Minecraft Server Status API lets you check whether a Minecraft server is online and retrieve its player count, version, and MOTD without connecting to the server yourself. It works for both Java and Bedrock edition servers, and requires no API key. This is perfect for server dashboards, bots, or community websites.

Beginner Tip

Use the /2/server/status/java/{host} endpoint to check any public Java server — replace {host} with the server address (e.g. hypixel.net). The response tells you online status, player count, and server version at a glance.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.mcsrvstat.us/2/hypixel.net
Result
HTTP 200 · application/json · 17,276 bytes · compressed
Response time
39 ms (median of 3) · fastest 37 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
ip string 172.65.197.160
port integer 25565
debug object {14 fields}
motd object {3 fields}
players object {2 fields}
version string Requires MC 1.8 / 1.21
online boolean true
protocol integer 47
protocol_name string 1.8.9
hostname string mc.hypixel.net
icon string data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA…
eula_blocked boolean false

Captured Response

Captured from a real request to https://api.mcsrvstat.us/2/hypixel.net on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "ip": "172.65.197.160",
  "port": 25565,
  "debug": {
    "ping": true,
    "query": false,
    "bedrock": false,
    "srv": false,
    "querymismatch": false,
    "ipinsrv": false,
    "cnameinsrv": false,
    "animatedmotd": false,
    "cachehit": true,
    "cachetime": 1786391305,
    "cacheexpire": 1786391605,
    "apiversion": 2,
    "dns": {
      "a": [
        {
          "…": "(3 more fields)"
        }
      ]
    },
    "error": {
      "query": "Failed to read from socket."
    }
  },
  "motd": {
    "raw": [
      "§f                 §aHypixel Network §c[1.8/26.2]"
    ],
    "clean": [
      "                 Hypixel Network [1.8/26.2]"
    ],
    "html": [
      "<span style=\"color: #FFFFFF;\">                 </span><span style=\"color: #55FF55;\">Hypixel Network </span><span style=\"color: #FF5555;\">[1.8/26.2]</span>"
    ]
  },
  "players": {
    "online": 40816,
    "max": 200000
  },
  "version": "Requires MC 1.8 / 1.21",
  "online": true,
  "protocol": 47,
  "protocol_name": "1.8.9",
  "hostname": "mc.hypixel.net",
  "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAt0UlEQVR4XnV7B3hc1bX12Oq9Te+9d400TV2yLFndkiXZlm1Z7r3gChibEhwgiQ1JSELCgzyaqYFQQggvCQ/SXx6…",
  "eula_blocked": false
}

Field Reference

online True if the server responded to the status ping, false if it is offline or unreachable
players Player information with online (current count) and max (server capacity) fields
version The Minecraft version string the server is running (e.g. 1.20.1)
motd Message of the day in raw and clean formats; clean strips color codes for easy display
icon Base64-encoded PNG of the server icon, ready to use as an img src data URI

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.mcsrvstat.us/2/hypixel.net";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

online: false even for a running server The target Minecraft server may have blocked external pings, or the hostname could be wrong
Verify the server address is correct and try connecting manually in Minecraft. Some servers disable the ping response in their config.
Cached stale data The API caches results for a few minutes to reduce load on Minecraft servers
The cache TTL is typically 5 minutes — display the cached_at or debug.cachetime field in your UI so users know when data was last refreshed
CORS errors in browser Browser security policy blocking direct API calls from a frontend app
Proxy the request through your backend server, or use a serverless function to call the Minecraft Status API and return the result to your frontend

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 27/30
Consistency 17/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 39ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS NO
Category Games & Comics
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →