面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/8542969
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 74623,
    "world_seed": 1122194468,
    "world_size": 3500,
    "steam_id": "90286579951682565",
    "domain": null,
    "id": 8542969,
    "ip": "83.147.29.10",
    "port": 28100,
    "query": 28101,
    "color": 0,
    "city": "City of London",
    "description": "![[PVP] Gibberish Rust 10x Kits|Events|Backpacks](https://gibberishrust.com/img/GibberishBanner2.jpg)\nJoin Gibberish!!\r\nYour favorite rust server!! (Even if you dont know it yet!) \r\n Modded server, with active admins! \r\n \r\n - Mature, Active, Non-Playing Admin/Mod \r\n - Wipes every 2 weeks \r\n - Increased Gather Rate \r\n - Backpacks \r\n - Bgrade \r\n - Server Rewards (Each VIP level gets faster RP) \r\n - Quicker crafting \r\n - Kits (Special kits per VIP rank) \r\n - LSkins \r\n - NTeleportation (Each VIP level gets faster teleports) \r\n - Shop \r\n \r\n For everything else, be sure to check the /info menu in game.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780558230,
    "icon": null,
    "name": "[PVP] Gibberish Rust 10x Kits|Events|Backpacks",
    "connect": "83.147.29.10:28100",
    "request": "83.147.29.10:28101",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1744755789,
    "last_update": 1780558230,
    "banned": false,
    "wipe": 1779383654,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2945,
    "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/8542969");
$data = json_decode($json, true);
var_dump($data);