面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10605620
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 102248,
    "world_seed": 15434,
    "world_size": 4250,
    "steam_id": "90286604394845214",
    "domain": null,
    "id": 10605620,
    "ip": "108.17.86.205",
    "port": 28020,
    "query": 28026,
    "color": 0,
    "city": "McKees Rocks",
    "description": "![RustNecks- US 2X Monthly | Vanilla |](https://i.imgur.com/6GkxmOq.jpg)\n\r\nNoobs Welcome! \r\nNo Pay to Win \r\nActive Non Playing Admin \r\nVanilla like server with 1 month cycle for map and BPs. \r\nGroup UI is 12 \r\nWipes on first Thursday of every month with the patch hits \r\nNo Vac or game bans under 365 days \r\nclick website button for discord link",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595060,
    "last_online": 1780621225,
    "icon": null,
    "name": "RustNecks- US 2X Monthly | Vanilla |",
    "connect": "108.17.86.205:28020",
    "request": "108.17.86.205:28026",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 13,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1763321652,
    "last_update": 1780621225,
    "banned": false,
    "wipe": 1780595525,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1257,
    "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/10605620");
$data = json_decode($json, true);
var_dump($data);