面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/5664436
json
{
  "response": {
    "fps": 72,
    "fps_avg": 70,
    "entities_count": 60738,
    "world_seed": 2147483647,
    "world_size": 2900,
    "steam_id": "90286498905436189",
    "domain": null,
    "id": 5664436,
    "ip": "162.230.243.193",
    "port": 28016,
    "query": 28020,
    "color": 0,
    "city": "Findlay",
    "description": "![Ham and Beans|MyMini|4x|BPT1|TruePVE](https://i.postimg.cc/FsyK38n2/Ham-Beans-Logo.png)\nWelcome to Ham and Beans. PVE Server with PVP at Monuments.\r\nMyMini | 4x Gather Rate and Stack Size | Auto Close Doors.\r\nFaster Recyclers with increasded output.\r\nRaidable Base Events | NPC Raiders | Random AirDrops | GatherAway.\r\nPlayers can Lay Eggs when Eating | Home Locations and Teleport. \r\nRoaming NPCs!!!!!!!!!\r\nBuild Your Base and Be Creative",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780097012,
    "last_online": 1780593034,
    "icon": null,
    "name": "Ham and Beans|MyMini|4x|BPT1|TruePVE",
    "connect": "162.230.243.193:28016",
    "request": "162.230.243.193:28020",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 101,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1723803552,
    "last_update": 1780593034,
    "banned": false,
    "wipe": 1778211125,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2754,
    "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/5664436");
$data = json_decode($json, true);
var_dump($data);