面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11800806
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 45901,
    "world_seed": 1,
    "world_size": 3000,
    "steam_id": "90287015856912393",
    "domain": null,
    "id": 11800806,
    "ip": "66.51.97.50",
    "port": 28000,
    "query": 28001,
    "project_id": null,
    "color": 0,
    "city": "City of London",
    "description": "Play for fun not loot online raids Please Enjoy this show\r\nFeatures:\r\n• Solo/Duo/Trio Max\r\n• Weekly Map Wipe Fridays\r\n• Monthly BP Wipe\r\n• Fast Smelting 3x\r\n• Stack Sizes Increased\r\n• Active Non-Playing Admins\r\nGameplay:\r\n• Vanilla progression feel\r\n• Balanced raiding no explosive spam\r\n• PvP-focused monuments & events\r\n• Oil Rig / Cargo / Locked Crates tuned\r\nCommands:\r\n• /kit starter",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781463027,
    "last_online": 1781560828,
    "icon": null,
    "name": "Welcome to our 10x Vanilla+ S.M.P Solo Duo Trio Quad",
    "connect": "66.51.97.50:28000",
    "request": "66.51.97.50:28001",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781463027,
    "last_update": 1781560828,
    "banned": false,
    "wipe": 1781440146,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6236,
    "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/11800806");
$data = json_decode($json, true);
var_dump($data);