面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9006001
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 9006001,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 9000034,
    "owner": 120307,
    "boosts": 1,
    "last_offline": 1761717171,
    "last_online": 1760792434,
    "icon": null,
    "name": "✦ Welcome to Techy Bechy SMP! ✦ [OneBlock | SMP | Parkour]",
    "connect": null,
    "request": null,
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": null,
    "country": "HK",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1746871294,
    "last_update": 1761717171,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": 1,
    "list_hidden": true,
    "hide_address": true,
    "hide_query": false,
    "position_game": 6047,
    "language": "zh",
    "parked": true,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": {
      "username": "AlbertWU",
      "avatar": "593377cc-fc29-4ece-80f9-ad69904241bd.jpg"
    },
    "mods": [
      {
        "id": 1601,
        "name": "Essentials"
      },
      {
        "id": 1718,
        "name": "WorldEdit"
      },
      {
        "id": 1591,
        "name": "CoreProtect"
      },
      {
        "id": 1720,
        "name": "WorldGuard"
      },
      {
        "id": 1593,
        "name": "GeyserMC"
      },
      {
        "id": 1697,
        "name": "Geyser-Spigot"
      },
      {
        "id": 1715,
        "name": "Vulcan"
      },
      {
        "id": 1695,
        "name": "floodgate"
      }
    ],
    "disabled_modules": []
  }
}

代码示例

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