面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11606721
json
{
  "response": {
    "fps": 137,
    "fps_avg": 136,
    "entities_count": 84566,
    "world_seed": 1337,
    "world_size": 4250,
    "steam_id": "90286558315511813",
    "domain": null,
    "id": 11606721,
    "ip": "65.109.112.111",
    "port": 60407,
    "query": 60409,
    "color": 0,
    "city": "Helsinki",
    "description": "![[EU] SweNations PVE [LegendaryWeapon|SkillTree|Events]](https://iili.io/f8rHyrX.jpg)\nWelcome to [EU] SweNations BiWeekly.\r\n\r\nSkaneland is an unique custom map that is not available on any other server, this map is made especially for SweNations, if you have any questions, please visit our discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780147418,
    "last_online": 1780555229,
    "icon": null,
    "name": "[EU] SweNations PVE [LegendaryWeapon|SkillTree|Events]",
    "connect": "65.109.112.111:60407",
    "request": "65.109.112.111:60409",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915479,
    "last_update": 1780555229,
    "banned": false,
    "wipe": 1779038870,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5343,
    "language": "fi",
    "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/11606721");
$data = json_decode($json, true);
var_dump($data);