面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9527464
json
{
  "response": {
    "fps": 73,
    "fps_avg": 71,
    "entities_count": 118759,
    "world_seed": 0,
    "world_size": 4250,
    "steam_id": "90286581908660242",
    "domain": null,
    "id": 9527464,
    "ip": "83.147.29.183",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "City of London",
    "description": "![Imperfect World - HARDCORE MODE PVE](https://files.eugamehost.com/storage/uploads/eugamehost-rust.png)\nA lightly modded server but with player and building damage disabled.\r\n\r\nGLOBAL CHAT IS ENABLED ON THIS HARDCORE SERVER\r\n\r\nCome visit us on discord https://discord.gg/MyDnRyP \r\n\r\n 0% Decay/Upkeep (Except Twig - which can be destroyed)\r\n\r\nRemember to secure your TC, base and items, as anything insecure CAN be looted\r\n\r\nNew Map Each Month\r\n\r\nSERVER RESTARTS DAILY 5.30AM GMT",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780547669,
    "last_online": 1780581639,
    "icon": null,
    "name": "Imperfect World - HARDCORE MODE PVE",
    "connect": "83.147.29.183:28015",
    "request": "83.147.29.183:28016",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750537924,
    "last_update": 1780581639,
    "banned": false,
    "wipe": 1778178454,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3351,
    "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/9527464");
$data = json_decode($json, true);
var_dump($data);