面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11677438
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 116224,
    "world_seed": 1234567,
    "world_size": 4500,
    "steam_id": "90286614327898136",
    "domain": null,
    "id": 11677438,
    "ip": "91.229.114.98",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![TUNNELRATS.GG PVE - HALF UPKEEP|+NPCs|PVP ZONES|PURGE](https://i.imgur.com/zzSvQGG.png)\nWelcome to tunnelrats.gg! \r\n Map Wipe - Monthly \r\n BPs Wipe - Monthly \r\n \r\n Our community website tunnelrats.gg has our discord \r\n Join to get updates, support, giveways and more! \r\n\r\n Our Official Server Clan 'Ocean Rats' recruitment is open \r\n Open a ticket in our discord to learn more.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780622058,
    "last_online": 1780654235,
    "icon": null,
    "name": "TUNNELRATS.GG PVE - HALF UPKEEP|+NPCs|PVP ZONES|PURGE",
    "connect": "91.229.114.98:28015",
    "request": "91.229.114.98:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780216208,
    "last_update": 1780654235,
    "banned": false,
    "wipe": 1780622234,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5576,
    "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/11677438");
$data = json_decode($json, true);
var_dump($data);