面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11606787
json
{
  "response": {
    "fps": 220,
    "fps_avg": 219,
    "entities_count": 105465,
    "world_seed": 1583952840,
    "world_size": 4350,
    "steam_id": "90286619199405063",
    "domain": null,
    "id": 11606787,
    "ip": "91.210.174.28",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Ekibastuz",
    "description": "![Full classic VANILLA |WIPED 05.06|](https://avatars.mds.yandex.net/i?id=e644aebcb30ba8dee0df355008c27dfb36add90b-11378374-images-thumbs&n=13)\n╨Ф╨╛╨▒╤А╨╛ ╨┐╨╛╨╢╨░╨╗╨╛╨▓╨░╤В╤М ╨╜╨░ ╨║╨╗╨░╤Б╤Б╨╕╤З╨╡╤Б╨║╨╕╨╣ ╤Б╨╡╤А╨▓╨╡╤А ╨▒╨╡╨╖ ╨╝╨╛╨┤╨╛╨▓. ╨а╨░╨╖╨╝╨╡╤А ╨║╨░╤А╤В╤Л 4350",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780631657,
    "last_online": 1780644636,
    "icon": null,
    "name": "Full classic VANILLA |WIPED 05.06|",
    "connect": "91.210.174.28:28015",
    "request": "91.210.174.28:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "KZ",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915483,
    "last_update": 1780644636,
    "banned": false,
    "wipe": 1780596381,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5102,
    "language": "kk",
    "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/11606787");
$data = json_decode($json, true);
var_dump($data);