面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11502444
json
{
  "response": {
    "fps": 56,
    "fps_avg": 54,
    "entities_count": 65280,
    "world_seed": 498456318,
    "world_size": 3500,
    "steam_id": "90286563936529438",
    "domain": null,
    "id": 11502444,
    "ip": "66.51.96.71",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Ashburn",
    "description": "![RustingAway Solo/Duo/Trio/Quad - Monthly](https://www.coatingsworld.com/wp-content/uploads/sites/9/2025/06/398_main-1.jpg)\nRustingAway Solo/Duo/Trio/Quad - Monthly Vanilla \r\n50% Upkeep\r\nIf you are caught circumventing this rule, your entire group will be WARNED/BANNED. \r\nMax. 4 (team members) authorized on TC, doors etc. over the course of a wipe. If a player leaves and a new members joins. Notify admin of change in #team-changes  and clear tc, doors bags, traps etc of old member. One team change per 3 days allowed.\r\nMax. 4 (team) basing together \r\nMax. 4 (team) raiding/roaming together. This includes  oil rigs and cargo ship.\r\nNO ALLIANCES!!\r\nTeaming will result in a 3 day ban, you and your teams bps wiped and base opened. \r\nNeutrality is permitted; where two separate groups do not actively assist each other (in combat or otherwise).(See info section)\r\nIf leaving the server feel free to open your base and leave.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780327401,
    "last_online": 1780576234,
    "icon": null,
    "name": "RustingAway Solo/Duo/Trio/Quad - Monthly",
    "connect": "66.51.96.71:28015",
    "request": "66.51.96.71:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207200,
    "last_update": 1780576234,
    "banned": false,
    "wipe": 1779726109,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4957,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11502444");
$data = json_decode($json, true);
var_dump($data);