面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9884470
json
{
  "response": {
    "fps": 73,
    "fps_avg": 74,
    "entities_count": 116294,
    "world_seed": 1646674732,
    "world_size": 4500,
    "steam_id": "90286604926789647",
    "domain": null,
    "id": 9884470,
    "ip": "193.31.31.106",
    "port": 28020,
    "query": 28021,
    "color": 0,
    "city": "Dallas",
    "description": "![Draconic - MODDED PVE |NO RAIDING|NO DECAY|NO BP WIPE|](https://i.imgur.com/o7c4XjC.png)\n[ Draconic PVE - Modded / Monthly ] \r\nNewcomers welcome!\r\n\r\n[ Wipe Schedule ]\r\nWeekly map wipe every first Thursday of the month @ 12PM Central\r\nMonthly BP wipe on force wipe\r\n\r\n[ Server Info ]\r\n - PVE\r\n - Friendly Players\r\n - No Decay\r\n - Backpacks - Lockable Vehicles\r\n - Minicopter Storage\r\n - Kits\r\n - Shorter Event Spawns\r\n - Raidable Bases\r\n - Active Admin Support\r\n - Live Discord Integration\r\n - VIP Skip Queue\r\n\r\n[ RULES ]\r\n - NO KILLING/RAIDING/GRIEFING/STEALING\r\n - Call out when you are at monuments. eg: @Dome\r\n - Call out airdrops when you are under them. eg:@AD K13\r\n - Lock your bases (We cannot guarantee your stuff wont't get tampered with)\r\n - Respect other players and have fun\r\n\r\nJoin our discord!  -  discord.gg/QY3RymY6zj\r\nMemberships at shop.draconic.store",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598667,
    "last_online": 1780636225,
    "icon": null,
    "name": "Draconic - MODDED PVE |NO RAIDING|NO DECAY|NO BP WIPE|",
    "connect": "193.31.31.106:28020",
    "request": "193.31.31.106:28021",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 5,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1753696222,
    "last_update": 1780636225,
    "banned": false,
    "wipe": 1780598686,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 995,
    "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/9884470");
$data = json_decode($json, true);
var_dump($data);