面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9947195
json
{
  "response": {
    "fps": 55,
    "fps_avg": 55,
    "entities_count": 136863,
    "world_seed": 46262112,
    "world_size": 5000,
    "steam_id": "90286609327306764",
    "domain": null,
    "id": 9947195,
    "ip": "147.93.162.6",
    "port": 28215,
    "query": 28216,
    "color": 0,
    "city": "Lauterbourg",
    "description": "![[DE]GK-PVE](http://webundmedienfactory.de/gameserver/rust_bastian/rust_images/new_rustimage.png)\nDay 90 Minuten, Night 15 Minuten.\r\n\r\nBots, Airfield Event und Amored Train (random Spawn).\r\nCargo Crash und Air Drop Events (random).\r\n\r\nPlugins: NoDecay (im Baukreis 100) - Zweige verfallen immer!!!, ShowSphere, NTeleportation, ZLevels, Skins, EnhancedHammer, ExtendedCrafting, RemoverTool, SecurityLights, SignArtist und mehr - findet es raus.\r\n\r\nDie BluePrints und die ZLevels bleiben für 3 Monate - Habt Spass :)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780604660,
    "last_online": 1780612828,
    "icon": null,
    "name": "[DE]GK-PVE",
    "connect": "147.93.162.6:28215",
    "request": "147.93.162.6:28216",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1754223489,
    "last_update": 1780612828,
    "banned": false,
    "wipe": 1780604664,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3529,
    "language": "fr",
    "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/9947195");
$data = json_decode($json, true);
var_dump($data);