面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11800971
json
{
  "response": {
    "fps": 58,
    "fps_avg": 57,
    "entities_count": 102009,
    "world_seed": 1337,
    "world_size": 3750,
    "steam_id": "90287047874690068",
    "domain": null,
    "id": 11800971,
    "ip": "66.51.98.61",
    "port": 28020,
    "query": 28021,
    "project_id": null,
    "color": 0,
    "city": "Los Angeles",
    "description": "![[US] Royal Dynasty | 2x | RPG | EpicLoot | PvPvE | Monthly](https://i.ibb.co/4Zz8sSNp/image.png)\nROYAL DYNASTY - 2x PvPvE RPG.\r\nClaim your crown and outlast them all.\r\n\r\n- 2x gather / craft / smelt\r\n- 11-tree RPG skill system (/skills)\r\n- EpicLoot - 4 tiers of stat-buffed gear\r\n- 150+ Fully custom NPCs & bosses at every monument\r\n- Claim the Crown, Convoy, Raidable Bases (Easy to Nightmare)\r\n- Quest Board - daily/weekly quests (/q)\r\n- Coin economy, 30+ cases, road minicopters, kits\r\n\r\nWipes first Thursday monthly. /info for the full guide.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781463043,
    "last_online": 1781577024,
    "icon": null,
    "name": "[US] Royal Dynasty | 2x | RPG | EpicLoot | PvPvE | Monthly",
    "connect": "66.51.98.61:28020",
    "request": "66.51.98.61:28021",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781463043,
    "last_update": 1781577024,
    "banned": false,
    "wipe": 1780596729,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6210,
    "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/11800971");
$data = json_decode($json, true);
var_dump($data);