面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607044
json
{
  "response": {
    "fps": 107,
    "fps_avg": 106,
    "entities_count": 70237,
    "world_seed": 648252,
    "world_size": 3500,
    "steam_id": "90286584200782857",
    "domain": null,
    "id": 11607044,
    "ip": "216.245.177.18",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![BTARust.net | US | Vanilla+ Monthly | QoL/Loot+ | No Team Limit](https://www.btarust.net/Header.png)\nBTARust.net Vanilla+ Monthly US\r\n\r\n• Active Staff\r\n• Monthly Wipes\r\n• Vanilla+ QoL\r\n• No Team Limit\r\n• Discord Rewards\r\n• Kits & Clans\r\n• Longer Days / Short Nights\r\n• New Player Wipe Protection\r\n\r\nSERVER RULES\r\n1. No cheating, scripting, or exploiting\r\n2. No racism, hate speech, or harassment\r\n3. No doxxing or real-life threats\r\n4. No excessive spam or mic abuse\r\n5. Respect staff decisions\r\n6. No advertising outside communities\r\n7. Follow Rust & Discord ToS\r\n8. No team limit\r\n9. Wipe protection abuse may result in bans\r\n\r\nDiscord: discord.gg/HhrxErrDXg\r\nWebsite: https://www.btarust.net",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779951825,
    "last_online": 1780579241,
    "icon": null,
    "name": "BTARust.net | US | Vanilla+ Monthly | QoL/Loot+ | No Team Limit",
    "connect": "216.245.177.18:28015",
    "request": "216.245.177.18:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915493,
    "last_update": 1780579241,
    "banned": false,
    "wipe": 1778337067,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5481,
    "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/11607044");
$data = json_decode($json, true);
var_dump($data);