彡 Pʅαɳeƚcɾαfƚ 彡 » Planetcraft.de - [1.18-1.21] Survival | Mining | Building | Paintball | Versus | PvP 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9647685
json
{
  "response": {
    "steam_id": null,
    "domain": "planetcraft.de",
    "id": 9647685,
    "ip": "5.231.25.167",
    "port": 25565,
    "query": 25565,
    "color": 0,
    "city": "Eygelshoven",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1772835783,
    "score": 0,
    "last_online": 1776103858,
    "icon": null,
    "name": "彡 Pʅαɳeƚcɾαfƚ 彡 » Planetcraft.de - [1.18-1.21] Survival | Mining | Building | Paintball | Versus | PvP",
    "connect": "planetcraft.de:25565",
    "request": "5.231.25.167:25565",
    "map": null,
    "gamemode": null,
    "version": "Paper 1.21.11",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1751370367,
    "last_update": 1776103858,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3203,
    "language": "nl",
    "parked": false,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/9647685");
$data = json_decode($json, true);
var_dump($data);