面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/9631403
json
{
  "response": {
    "fps": 48,
    "fps_avg": 53,
    "entities_count": 177386,
    "world_seed": 1337,
    "world_size": 4750,
    "steam_id": "90285943398201346",
    "domain": null,
    "id": 9631403,
    "ip": "199.231.185.234",
    "port": 28014,
    "query": 27017,
    "color": 0,
    "city": "Secaucus",
    "description": "![[US]Royal Family Gaming|3X|PVE/PVP Zones|Monthly|](https://i.ibb.co/nsrL47V2/US-3x.png)\nRoyal Family Gaming | 3x PvE with PvP Zones\r\n\r\nA 3x PvE-focused experience with optional PvP zones for players who want both progression and combat. Build, farm, and progress safely while choosing when to engage in PvP.\r\n\r\nLast Wipe: 5-07-26\r\nNext Purge: 6-03-26\r\nNext Wipe: 6-04-26\r\n\r\nServer Info:\r\n3x Gather Rates\r\nPvE Gameplay with PvP Zones\r\nScheduled Purge Events\r\nActive Admins\r\nMonthly Map Wipes\r\n\r\nDesigned for players who enjoy a more relaxed environment with the option for high-risk PvP when they choose.\r\n\r\nJoin a growing community and play your way.\r\n\r\nDiscord: discord.gg/RFGaming\r\nSearch Royal Family Gaming for more servers or visit our Discord for more information",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778175785,
    "last_online": 1779204017,
    "icon": null,
    "name": "[US]Royal Family Gaming|3X|PVE/PVP Zones|Monthly|",
    "connect": "199.231.185.234:28014",
    "request": "199.231.185.234:27017",
    "map": "Royal Family Gaming FPS+",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 6,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1750864481,
    "last_update": 1779204017,
    "banned": false,
    "wipe": 1778175801,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1267,
    "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/9631403");
$data = json_decode($json, true);
var_dump($data);