面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11677235
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 49852,
    "world_seed": 1693865060,
    "world_size": 3000,
    "steam_id": "90286538378260494",
    "domain": null,
    "id": 11677235,
    "ip": "31.56.47.246",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Istanbul",
    "description": "![[TR] BOZKURT TÜRKİYE 3X | MAX 5 | WEEKLY | KITS](https://cdn.discordapp.com/attachments/1255262344154579005/1507027763767545936/serverlogo.png?ex=6a10687a&is=6a0f16fa&hm=0b03a26883c5927e388fb101d5fca6d60a569a4525a7c0088bd95e062e394c40&)\n🐺 BOZKURT TÜRKİYE 3X\r\n➤ WEEKLY WIPE\r\n➤ MAX 5\r\n➤ KITS / TP / HOME\r\n➤ ACTIVE ADMINS\r\n➤ OPTIMIZED FPS\r\n➤ BALANCED 3X LOOT\r\n➤ EVENTS & ACTIVE PVP\r\n\r\nTürkiye’nin yükselen Rust topluluğu.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780444458,
    "last_online": 1780555234,
    "icon": null,
    "name": "[TR] BOZKURT TÜRKİYE 3X | MAX 5 | WEEKLY | KITS",
    "connect": "31.56.47.246:28015",
    "request": "31.56.47.246:28017",
    "map": "BOZKURT",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "TR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780216194,
    "last_update": 1780555234,
    "banned": false,
    "wipe": 1780004814,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5772,
    "language": "tr",
    "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/11677235");
$data = json_decode($json, true);
var_dump($data);