面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511742
json
{
  "response": {
    "fps": 43,
    "fps_avg": 41,
    "entities_count": 167814,
    "world_seed": 1389037307,
    "world_size": 4800,
    "steam_id": "90286583313207327",
    "domain": null,
    "id": 11511742,
    "ip": "66.51.99.40",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "Dallas",
    "description": "![Pookie's BattleGround PVE](https://imgur.com/a/h1c5Ggs)\nPookie's Battleground...5X PVE Server\r\nFeatures:\r\n-Bi Monthly Wipe- RP Never Wipes, Bp's And Skill Tree Wipe Only At   Monthly Forced Wipe\r\n-Aggressive Bots Guard Monuments, and Bradley APC's Patrol Major Monuments\r\n-Tiered Bosses, Which Can Drop Legendary Items\r\n-Always Open And Buildable DeepSea\r\n-RaidableBases, Operation Fortress, Convoy, Armored Train and Many  \r\n Others\r\n-Server Shop\r\n-144 slot BackPack, Restore On Death\r\n-Vehicle License\r\n-Personal Marketplace\r\n-Farm Pro\r\n-Ganja\r\n-Plus Many More Quality Of Life Plug In's",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779353863,
    "last_online": 1780567828,
    "icon": null,
    "name": "Pookie's BattleGround PVE",
    "connect": "66.51.99.40:28010",
    "request": "66.51.99.40:28011",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353863,
    "last_update": 1780567828,
    "banned": false,
    "wipe": 1778176974,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5197,
    "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/11511742");
$data = json_decode($json, true);
var_dump($data);