面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11606316
json
{
  "response": {
    "fps": 148,
    "fps_avg": 152,
    "entities_count": 88400,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": "90286590860006405",
    "domain": null,
    "id": 11606316,
    "ip": "57.128.211.192",
    "port": 28075,
    "query": 28077,
    "color": 0,
    "city": "Warsaw",
    "description": "![RustFront EU 2x | Vanilla+ - No P2W | Weekly | Wiping 14:00](https://rustfront.com/brand/rustfront-server-header.jpg)\n2x gather. Vanilla base loot + small RustFront bonus rolls. Larger stacks. Fast smelt. 2x crafting.\r\nCustom plugins continuously being built depending on player demands.\r\nBus Travel, Scrap Cases, and Bonus Loot.\r\nNo kits. No teleport. No homes. No pay-to-win.\r\nSupporter/VIP is queue skip only.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779977025,
    "last_online": 1780574433,
    "icon": null,
    "name": "RustFront EU 2x | Vanilla+ - No P2W | Weekly | Wiping 14:00",
    "connect": "57.128.211.192:28075",
    "request": "57.128.211.192:28077",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915467,
    "last_update": 1780574433,
    "banned": false,
    "wipe": 1780570948,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5376,
    "language": "pl",
    "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/11606316");
$data = json_decode($json, true);
var_dump($data);