面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11698885
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 118210,
    "world_seed": 1337,
    "world_size": 6000,
    "steam_id": "90286583209099267",
    "domain": null,
    "id": 11698885,
    "ip": "156.236.84.14",
    "port": 28045,
    "query": 28046,
    "color": 0,
    "city": "Dallas",
    "description": "![{US} Iron Haven Medieval](https://cdn3.mapstr.gg/aec7e05e83f50d79f5d80cce55fa6801.png)\nThe Kingdom of Iron Haven hath fallen.\r\nIts once-great banners now lie buried beneath ash, blood, and ruin.\r\nWhat remaineth is a cursed land where only the ruthless endure.\r\nThe old kings are dead, yet their guard still wander the realm...\r\nmerciless knights clad in iron and shadow, roaming the roads to pillage, slaughter, and hunt all souls foolish enough to cross their path.\r\nWhen the sun descendeth beyond the horizon, a dark curse awaketh.\r\nFrom dusk till dawn, the dead rise from their graves and stalk the land in endless torment.\r\nThose bitten or infected by the plague shall not find mercy... for in time they too shall become one of the damned, wandering the wilderness as servants of death itself.\r\nBut the curse is not the only evil upon these forsaken lands.\r\nGreat sickness spreadeth through the realm:\r\n• Food Poisoning\r\n• Tapeworms & Disease\r\n• The Curse Infection\r\n• Broken Legs & Concussions\r\nTrust not the roads.\r\nTrust not the forests.\r\nAnd trust no living soul.\r\nForge thy kingdom from ruin...\r\nor become another corpse beneath the mud of Iron Haven.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780562666,
    "last_online": 1780555826,
    "icon": null,
    "name": "{US} Iron Haven Medieval",
    "connect": "156.236.84.14:28045",
    "request": "156.236.84.14:28046",
    "map": "Custom Map",
    "gamemode": "Primitive",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780227279,
    "last_update": 1780562666,
    "banned": false,
    "wipe": 1780549027,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12778,
    "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/11698885");
$data = json_decode($json, true);
var_dump($data);