面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11500951
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 106167,
    "world_seed": 720000322,
    "world_size": 4250,
    "steam_id": "90286581622290445",
    "domain": null,
    "id": 11500951,
    "ip": "136.243.60.36",
    "port": 28040,
    "query": 28041,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Blackstone EU 5x | Offline Raid Protection](https://ibb.co/RMTkc6n)\nBlackstone EU 5x | Offline Raid Protection\r\n\r\nBlackstone EU is a 5x focused Rust server built for players who want a fair competitive experience, without losing everything while they’re offline.\r\n\r\nActive and impartial administration.\r\nOffline Raid Protection | Bases cannot be raided while owners are offline.\r\n\r\nThis server is built by working players for working players, progress shouldn’t disappear overnight because of it.\r\n\r\nIf you’re looking for a more balanced Rust experience without compromising the core game, you’ll feel home at Blackstone EU.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780078418,
    "last_online": 1780552226,
    "icon": null,
    "name": "Blackstone EU 5x | Offline Raid Protection",
    "connect": "136.243.60.36:28040",
    "request": "136.243.60.36:28041",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779207165,
    "last_update": 1780552226,
    "banned": false,
    "wipe": 1779399959,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1496,
    "language": "de",
    "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/11500951");
$data = json_decode($json, true);
var_dump($data);