面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511506
json
{
  "response": {
    "fps": 63,
    "fps_avg": 60,
    "entities_count": 123977,
    "world_seed": 0,
    "world_size": 4500,
    "steam_id": "90286588586843158",
    "domain": null,
    "id": 11511506,
    "ip": "66.51.96.63",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "Ashburn",
    "description": "![Grim's Place|HARDCORE PVE|NO RAID|CODE ENFORCED](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nWelcome to Grim's Place |HARDCORE PVE|Vanilla\r\nExperience a challenging survival environment where the world is your primary enemy.\r\n\r\nJoin our Discord: https://discord.gg/bGvX7zyeJw\r\n\r\nCore Features:\r\nTrue PvE Environment: No player-on-player violence. Focus on survival, building, and conquering the map.\r\n\r\nTC Base Upgrade: One-click upgrades! Easily upgrade or repair your entire structure directly from your Tool Cupboard.\r\n\r\nQuality of Life:\r\nRemover Tool: Quickly fix building mistakes with /remove.\r\n\r\nActive Performance: Hosted on high-speed hardware for a smooth, low-latency experience.\r\n\r\nThe Rules:\r\nNo griefing or stealing from other players' bases.\r\n\r\nBe respectful in global chat.\r\n\r\nExploiting or cheating will result in a permanent ban.\r\n\r\nCall All Monuments and Airdrops Example: AD@j12 or @cargo, or @raidable base j14",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779959623,
    "last_online": 1780589430,
    "icon": null,
    "name": "Grim's Place|HARDCORE PVE|NO RAID|CODE ENFORCED",
    "connect": "66.51.96.63:28035",
    "request": "66.51.96.63:28036",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779353851,
    "last_update": 1780589430,
    "banned": false,
    "wipe": 1779218216,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2051,
    "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/11511506");
$data = json_decode($json, true);
var_dump($data);