面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11510749
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 11001,
    "world_seed": 1337,
    "world_size": 5000,
    "steam_id": "90286581782976532",
    "domain": null,
    "id": 11510749,
    "ip": "176.9.0.214",
    "port": 27000,
    "query": 27003,
    "color": 0,
    "city": "Falkenstein",
    "description": "![ATHLON EU - TRAINING](https://athlonrust-test.nbg1.your-objectstorage.com/AthlonLogo8.png)\n- The server is multilingual (DE) (EN) (ES) (FR) (HU) (UA) (PL) (RU)\r\n- An automatic translator is working in the chat\r\n- VIP System\r\n- Monument practice & PvE scenarios\r\n- Advanced aim and recoil training\r\n- PvP duels, Scrim arenas & competitive fights\r\n- FFA arenas with instant respawn\r\n- Helicopter training & flight practice\r\n- AI bot battles and combat drills\r\n- Raid, movement and reaction training\r\n- Custom events, challenges and more\r\n- Join our Discord for updates & support",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780253043,
    "last_online": 1780561233,
    "icon": null,
    "name": "ATHLON EU - TRAINING",
    "connect": "176.9.0.214:27000",
    "request": "176.9.0.214:27003",
    "map": "ATHLON 5000",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353832,
    "last_update": 1780561233,
    "banned": false,
    "wipe": 1780426093,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5036,
    "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/11510749");
$data = json_decode($json, true);
var_dump($data);