面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11731576
json
{
  "response": {
    "fps": 115,
    "fps_avg": 113,
    "entities_count": 73780,
    "world_seed": 626446703,
    "world_size": 3700,
    "steam_id": "90286553177010184",
    "domain": null,
    "id": 11731576,
    "ip": "66.51.99.54",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Dallas",
    "description": "![RUSTY GOOSE | PVE/PVP Hard Mode | Monthly](https://www.dropbox.com/scl/fi/mj1deoqhknwwreajkv8gs/Gemini_Generated_Image_ta0qz3ta0qz3ta0q.png?rlkey=w9hooys5k67cq8xjqlf5dgeea&st=arn1q858&dl=1)\n☢️ Welcome to RUSTY GOOSE | PVE/PVP Hard Mode | Monthly☢️\r\n\r\nA custom Rust experience blending PvE survival with high-stakes PvP. Fight through dangerous AI, roaming events, and unpredictable encounters while building your empire in a world that constantly fights back.\r\n\r\nOur plugins are designed to expand Rust without ruining the core survival feel. Whether you're grinding loot, running monuments, farming resources, or hunting players, every trip outside your base comes with risk.\r\n\r\nPvE. PvP. Events. Survival.\r\nJust Rust with a brutal twist. 🔥",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780411277,
    "last_online": 1780551630,
    "icon": null,
    "name": "RUSTY GOOSE | PVE/PVP Hard Mode | Monthly",
    "connect": "66.51.99.54:28025",
    "request": "66.51.99.54:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780411277,
    "last_update": 1780551630,
    "banned": false,
    "wipe": 1778181010,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6112,
    "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/11731576");
$data = json_decode($json, true);
var_dump($data);