面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/567236
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 82059,
    "world_seed": 813032044,
    "world_size": 3750,
    "steam_id": "90286604847473687",
    "domain": null,
    "id": 567236,
    "ip": "208.52.153.33",
    "port": 28079,
    "query": 28076,
    "color": 0,
    "city": "Dallas",
    "description": "![№[4] D2S WarZone PvE 1000 Zombies Raidable Bases](https://cdn.shopify.com/s/files/1/0698/8146/2921/files/Banner-Warzone-S4.png?v=1761419436)\nDare2Survive: WarZone PvE\r\nA military dead zone overrun by elite AI and the undead.\r\nExtreme PvE combat with monument bosses and Bradley patrols.\r\nEarn XP, upgrade skills, and keep your gear on revive.\r\nCustom Crafting, Server Shop, and massive war events.\r\nEnter the WarZone - survive the dead.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598073,
    "last_online": 1780605030,
    "icon": null,
    "name": "№[4] D2S WarZone PvE 1000 Zombies Raidable Bases",
    "connect": "208.52.153.33:28079",
    "request": "208.52.153.33:28076",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1668889624,
    "last_update": 1780605030,
    "banned": false,
    "wipe": 1780598241,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2257,
    "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/567236");
$data = json_decode($json, true);
var_dump($data);