面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/8197597
json
{
  "response": {
    "fps": 93,
    "fps_avg": 92,
    "entities_count": 106813,
    "world_seed": 172212345,
    "world_size": 4000,
    "steam_id": "90285233005920263",
    "domain": null,
    "id": 8197597,
    "ip": "156.236.84.50",
    "port": 28075,
    "query": 28076,
    "color": 0,
    "city": "Dallas",
    "description": "![Fun in the Sun (PVE)](https://yourimage.com/banner.jpg)\nCome join us at https://discord.gg/rkFSsyuEGd. Welcome to Fun in the Sun. Come join us on our vanilla PVE server with quality of life upgrades.  Raidable bases, 3x harvesting multiplier and 3x stacking multiplier. /up 1-4 for base upgrades. Box sorting. Lockable furnaces/motorcycle/horse/helicopter and even more. Furnace split. Quick recycle. Removal tool. Active admins",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777645392,
    "score": 0,
    "last_online": 1777748422,
    "icon": null,
    "name": "Fun in the Sun (PVE)",
    "connect": "156.236.84.50:28075",
    "request": "156.236.84.50:28076",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 2,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1742388418,
    "last_update": 1777748422,
    "banned": false,
    "wipe": 1775156299,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2052,
    "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/8197597");
$data = json_decode($json, true);
var_dump($data);