面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11606693
json
{
  "response": {
    "fps": 60,
    "fps_avg": 58,
    "entities_count": 89796,
    "world_seed": 1538234986,
    "world_size": 3800,
    "steam_id": "90286619343630366",
    "domain": null,
    "id": 11606693,
    "ip": "212.117.170.252",
    "port": 2055,
    "query": 2056,
    "color": 0,
    "city": "Luxembourg",
    "description": "![Wizard Of Rust PVE 2X|Events|Raids|Skins|ZLevels](https://cdn3.mapstr.gg/cd6c90e08ace46dac06d729fd36854b7.png)\n\r\n▶ Monthly Wipe & Blueprint Wipe\r\n▶ PvE Server • Purge 24h Before Wipe\r\n▶ Prizes for reaching the Leaderboards\r\n▶ Scrap-Based Economy (Buy items with scrap)\r\n\r\n▶ Custom Content:\r\n- Karuza Custom Vehicles\r\n- Raidable Bases (5 Unique Tiers)\r\n- Custom Bradley (4 Tiers)\r\n- Tiered Attack Heli Signals (8 Levels)\r\n- Jet Event • Cargo Train • Airfield Event\r\n\r\n▶ QoL & Features:\r\n- Shop • Kits • Leaderboards\r\n- Skinbox • Zombie Hordes\r\n- Instant Craft • Instant Barrels\r\n- Recycler / Virtual Recycler\r\n- Instant Airdrops • VoteDay\r\n- Furnace Splitter • Remove Tool\r\n- Bigger Backpacks (Restore on Death)\r\n- Larger Stacks • Stack Chests\r\n- More Auto Turrets\r\n- Tool Cupboard Upgrades\r\n- Sign Artist\r\n▶ And much more!\r\n\r\n>>> Click on the external website to join our discord <<<",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780644635,
    "icon": null,
    "name": "Wizard Of Rust PVE 2X|Events|Raids|Skins|ZLevels",
    "connect": "212.117.170.252:2055",
    "request": "212.117.170.252:2056",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 69,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "LU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915479,
    "last_update": 1780644635,
    "banned": false,
    "wipe": 1780595813,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5081,
    "language": "lb",
    "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/11606693");
$data = json_decode($json, true);
var_dump($data);