Skip to content
Rgghgh edited this page Jul 19, 2016 · 3 revisions

Using the API

Server Info

GET https://rgghgh.com/minecraft/mcp/api/<SERVER ADDRESS>/<OPTIONAL:SERVER PORT>

returns a json string with the server info, for example:

{
  "status": "online",
  "latency": 910.0,
  "motd": "A Minecraft Server",
  "version": "1.10",
  "players": {
    "max": 20,
    "list": [
      {
        "name": "Rgghgh",
        "id": "8354ecdd-7352-4ff4-8d79-7b22f94f94d5"
      },
      {
        "name": "SuperDando",
        "id": "70f5571e-fd78-3c6b-8ee6-19f9e37a9d8a"
      }
    ],
    "online": 2
  }
}

if the server is offline, the returned json will be:

{
  "status": "offline"
}

Favicon

GET https://rgghgh.com/minecraft/mcp/api/fav/<SERVER ADDRESS>/<OPTIONAL:SERVER PORT>

Clone this wiki locally