面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/1208237
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 90353,
    "world_seed": 1496139203,
    "world_size": 3800,
    "steam_id": "90286584472899613",
    "domain": null,
    "id": 1208237,
    "ip": "92.118.18.86",
    "port": 28065,
    "query": 28066,
    "color": 0,
    "city": "Ashburn",
    "description": "![Wicked Pissah 2X|PVE|RaidableBases|2 Week purge](https://i.ibb.co/Qv5FYV1k/Gemini-Generated-Image-bb5y4cbb5y4cbb5y.png)\nWicked Pissah 2X\n\nNext Wipe - 6/4\nNext Purge - 6/3\n\nPvE Server | Raidable NPC Bases  | NPC Raiders | 2x  | Bi Weekly Wipes | No Raiding | No Killing | Purge | Teleportation | Skinbox | Virtual Quarries | Bgrade | Backpack | Rewards Shop | Personal Attack Heli Signals |",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780581635,
    "icon": null,
    "name": "Wicked Pissah 2X|PVE|RaidableBases|2 Week purge",
    "connect": "92.118.18.86:28065",
    "request": "92.118.18.86:28066",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1691956064,
    "last_update": 1780581635,
    "banned": false,
    "wipe": 1778182326,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2597,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/1208237");
$data = json_decode($json, true);
var_dump($data);