面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11644890
json
{
  "response": {
    "fps": 54,
    "fps_avg": 57,
    "entities_count": 141401,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286574922002458",
    "domain": null,
    "id": 11644890,
    "ip": "178.214.223.32",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "City of London",
    "description": "![Atlantica - EU 5x | Bi-Weekly | PVE |](https://cdn.imgchest.com/files/75d0b05ae603.png)\nWelcome To Atlantica PVE\r\n 5X Gather \r\n Keep Inventory On Death\r\n Bigger Stacks\r\n Events\r\n Abandoned Bases\r\n Spawn Mini's\r\n Starter Kits\r\n Noobs Welcome\r\n Tree Houses\r\n SkinBox\r\n Automated Farms\r\n Faster Plant Growth\r\n Shop\r\n Raidable Bases\r\n Abandoned Bases",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780177439,
    "last_online": 1780552833,
    "icon": null,
    "name": "Atlantica - EU 5x | Bi-Weekly | PVE |",
    "connect": "178.214.223.32:28015",
    "request": "178.214.223.32:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 500,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780177439,
    "last_update": 1780552833,
    "banned": false,
    "wipe": 1779386091,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5711,
    "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/11644890");
$data = json_decode($json, true);
var_dump($data);