面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10534369
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 80723,
    "world_seed": 1337,
    "world_size": 5000,
    "steam_id": "90286611631708164",
    "domain": null,
    "id": 10534369,
    "ip": "65.7.2.45",
    "port": 28020,
    "query": 28021,
    "color": 0,
    "city": "Vancouver",
    "description": "![[CDN] #1 PVP Rust Server|VANILLA|World Beyond](https://i.postimg.cc/c1jydJhW/Rust-CDN-Serversize-PVPVanilla.png\"\")\n\r\n* Quests\r\n* Raid Bases\r\n* BP's are never wiped\r\n* Custom Event's like Sputnik, Shipwreck and a few more\r\n* PVE modded, NO RAIDING OR KOS\r\n* Mod's include TP, SkinBox, RP, and more quality of life mods\r\n* Custom Mapping\r\n* Skill Tree to max your skills\r\n* Enforced server rules\r\n* English Language Server\r\n* PST TIME ZONE",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780556066,
    "last_online": 1780617629,
    "icon": null,
    "name": "[CDN] #1 PVP Rust Server|VANILLA|World Beyond",
    "connect": "65.7.2.45:28020",
    "request": "65.7.2.45:28021",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1762518682,
    "last_update": 1780617629,
    "banned": false,
    "wipe": 1780606908,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2745,
    "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/10534369");
$data = json_decode($json, true);
var_dump($data);