面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11260975
json
{
  "response": {
    "fps": 100,
    "fps_avg": 99,
    "entities_count": 56667,
    "world_seed": 1343747332,
    "world_size": 3750,
    "steam_id": "90286558582183955",
    "domain": null,
    "id": 11260975,
    "ip": "96.240.4.167",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Jersey City",
    "description": "![StableRust [Solo/Duo/Trio/Quad] | Monthly | No BP Wipe | Low Up](https://www.dropbox.com/scl/fi/4dftcq42z7n2nytsvw6s9/StableRust.png?rlkey=0jypz6ldoh1yb4lbn2ng2ulqw&st=3yb57q37&dl=1)\nJoin Stable Rust for a Top-Tier Rust Experience!\r\n\r\nPowered by a high-performance bare metal server with cutting-edge hardware and lightning-fast internet, expect seamless gameplay every time. Supported by active non-playing admins and a thriving community.\r\n\r\nFeatures:\r\n • Monthly map wipes (1st Thursday, 2PM EST)\r\n • No blueprint wipes ever\r\n • 50% upkeep\r\n • Merged Outpost & Bandit\r\n • Patrol heli won’t flee or crash at monuments\r\n • Survival bonus: Hunger/thirst boosts recovery\r\n • Minicopters spawn on roads\r\n • Networked based global rendering\r\n \r\n Rules:\r\n • Solo, Duo, Trio, or Quad only. If you want to swap members then make sure to clear auth. Players violating this rule will receive a temp ban. Multiple violations will result in perm ban.\r\n • Alliances allowed with other teams/players however roam, raid, & defense is limited within your own team ONLY.\r\n • Respect all—no hate, spam, or cheats\r\n • Play fair, use common sense\r\n • Report issues to admins",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780495440,
    "last_online": 1780551027,
    "icon": null,
    "name": "StableRust [Solo/Duo/Trio/Quad] | Monthly | No BP Wipe | Low Up",
    "connect": "96.240.4.167:28015",
    "request": "96.240.4.167:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 4,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1774555213,
    "last_update": 1780551027,
    "banned": false,
    "wipe": 1778175623,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1144,
    "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/11260975");
$data = json_decode($json, true);
var_dump($data);