面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11671039
json
{
  "response": {
    "fps": 24,
    "fps_avg": 23,
    "entities_count": 239297,
    "world_seed": 481981,
    "world_size": 6000,
    "steam_id": 90286585020036110,
    "domain": null,
    "id": 11671039,
    "ip": "154.16.200.198",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Dallas",
    "description": "![Naked & Afraid |5x|Fresh Wipe|PvP|Kits|Solo/Duo/Trio/Quads](https://imgur.com/a/X0CzWFx.png)\n💀 NAKED & AFRAID 💀\r\n🌿 Stoners Gaming Community Server 🌿\r\n\r\n⚔️ Casual Survival | Balanced PvP ⚔️\r\nNo wipes while you sleep — only fair fights.\r\n\r\n━━━━━━━━━━━━━━━━━━━━━━\r\n📦 5x Loot\r\n🚫 No Offline Raids\r\n🎯 PvE Raidable Bases\r\n🎁 Free Starter Kits\r\n🛡️ Base Protection\r\n💎 VIP Kits Available\r\n━━━━━━━━━━━━━━━━━━━━━━\r\n\r\n💥 Join Up. Gear Up. Dominate. 💥",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780180912,
    "last_online": 1780574436,
    "icon": null,
    "name": "Naked & Afraid |5x|Fresh Wipe|PvP|Kits|Solo/Duo/Trio/Quads",
    "connect": "154.16.200.198:28080",
    "request": "154.16.200.198:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780180912,
    "last_update": 1780574436,
    "banned": false,
    "wipe": 1775778834,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5883,
    "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/11671039");
$data = json_decode($json, true);
var_dump($data);