面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11645344
json
{
  "response": {
    "fps": 54,
    "fps_avg": 53,
    "entities_count": 92135,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": "90286614118341635",
    "domain": null,
    "id": 11645344,
    "ip": "139.99.145.5",
    "port": 28025,
    "query": 28027,
    "color": 0,
    "city": "Sydney",
    "description": "![BattleServer Zombies |AU|PVE|KITS|RAIDABLE BASES|](https://russeldelrosario.com/BattleServer/BannerMiniZombiesv4.png)\nRust is overrun with Zombies! Can you survive the challenges of this new world? \r\n \r\n【Server Features】 \r\n    • PURGE 1day before WIPE \r\n    • Raidable Bases \r\n    • Raiding NPCS's \r\n    • Events \r\n    • Boss Monsters \r\n    • Zombie Hordes Roam the map \r\n    • Kits \r\n    • Skill Tree \r\n    • Cooking \r\n    • Arena \r\n    • Teleports (home and tpr) \r\n    • Auto Building Upgrade (Bgrade) \r\n    • VIP \r\n    • Base Repair & Auto Base Repair \r\n  Farmers Friendly \r\n    • Pies and Teas are sellable for Server Points \r\n    • Normal XP gain for harvesting plants from a planter  \r\n    • Enhanced farming experience through Skill Tree Talents & Cooking Plugin \r\n \r\n【Features & Perks】\r\n  Additional Features and Perks can be found in our website/discord below: \r\n    • web: store.battleserver.gg \r\n    • discord: https://discord.gg/g2Rt9bZGRC \r\n    • Server: zombies.battleserver.gg:28025",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780177461,
    "last_online": 1780654228,
    "icon": null,
    "name": "BattleServer Zombies |AU|PVE|KITS|RAIDABLE BASES|",
    "connect": "139.99.145.5:28025",
    "request": "139.99.145.5:28027",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1780177461,
    "last_update": 1780654228,
    "banned": false,
    "wipe": 1778247559,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2417,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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