面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10533179
json
{
  "response": {
    "fps": 255,
    "fps_avg": 255,
    "entities_count": 64704,
    "world_seed": 495702191,
    "world_size": 3500,
    "steam_id": "90286603621602319",
    "domain": null,
    "id": 10533179,
    "ip": "51.75.240.3",
    "port": 28215,
    "query": 28216,
    "color": 0,
    "city": "Roubaix",
    "description": "![[EU] Heatline.gg - 2x | Fridays | Solo/Duo | Vanilla+](https://idms.heatline.gg/images/heatline-fridays-server-banner-min-v4.png)\n★ Welcome to Heatline.gg\r\n★★ No P2W 2x Fridays Server\r\n★★★ Join us: discord.heatline.gg\r\n\r\n— Features:\r\n★ Map wipes every Friday at 20:00 Europe/Berlin (skips after Force)\r\n★ Fullwipe on Force Wipe\r\n★ Max Team: 2 Players\r\n★ Electric BP's are unlocked\r\n★ BP's Shared in Team\r\n★ 2x Gather & Loot (incl. Excav & Quarries)\r\n★ Faster Smelt & Furnace Sorter\r\n★ Minicopter spawn on Road\r\n★ '/stats' Ingame Leaderboard & Stats\r\n★ ... other QoL Plugins\r\n\r\n⸻\r\n• Discord Help: discord.heatline.gg\r\n• Support the Server: heatline.gg/shop\r\n⸻\r\n\r\nActive admins | High-end EU hardware | Stable performance\r\n\r\nBattleMetrics token: rs02gJtdGxC(0S&x70S>%%",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595060,
    "last_online": 1780598432,
    "icon": null,
    "name": "[EU] Heatline.gg - 2x | Fridays | Solo/Duo | Vanilla+",
    "connect": "51.75.240.3:28215",
    "request": "51.75.240.3:28216",
    "map": "discord.heatline.gg",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1762518563,
    "last_update": 1780598432,
    "banned": false,
    "wipe": 1780595139,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3070,
    "language": "fr",
    "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/10533179");
$data = json_decode($json, true);
var_dump($data);