面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/3779794
json
{
  "response": {
    "fps": 228,
    "fps_avg": 227,
    "entities_count": 44468,
    "world_seed": 622013933,
    "world_size": 3000,
    "steam_id": "90286376446659598",
    "domain": null,
    "id": 3779794,
    "ip": "147.135.31.203",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Oakton",
    "description": "Rusty Skulls is a Rust server for kids that can't play Rust good and wanna learn to do other stuff good too. \r\n\r\nWipes\r\n Map: Monthly with Facepunch updates.\r\n BPs: Only if Facepunch resets them.\r\n\r\nRules\r\n - No racism, bigotry, or toxic players.\r\n - No hacking, scripting, or exploiting bugs.\r\n - No advertising of any kind.\r\n - No evading bans or banned alts.\r\n - Respect all players.\r\n\r\nAn East Coast, USA Rust server running some plugins to help administer the server mostly. \r\n\r\nDiscord, server news, full server rules, and more available on our website, https://rustyskulls.com.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779134573,
    "last_online": 1780567830,
    "icon": null,
    "name": "Rusty Skulls",
    "connect": "147.135.31.203:28015",
    "request": "147.135.31.203:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1712830506,
    "last_update": 1780567830,
    "banned": false,
    "wipe": 1778177137,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2493,
    "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/3779794");
$data = json_decode($json, true);
var_dump($data);