面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11602985
json
{
  "response": {
    "oxide": true,
    "modded": true,
    "fps": 59,
    "fps_avg": 59,
    "entities_count": 116630,
    "world_seed": 716241489,
    "world_size": 4500,
    "steam_id": "90286318028815368",
    "domain": null,
    "id": 11602985,
    "ip": "95.217.107.239",
    "port": 10002,
    "query": 10002,
    "color": 0,
    "city": "Helsinki",
    "description": "Вайп: каждую пятницу в 15:00 по МСК Лимит в команде: 3 игрока Функции: — Рейты: x2 — Стаки ресурсов: x5 — Инстант крафт — Скины /skin ... И многое другое /menu Ссылки: — Telegram: t.me/pandrustfree — Discord: discord.gg/yqX98wqMXE",
    "game": 252490,
    "owner": 125581,
    "boosts": 1,
    "last_offline": 1780605215,
    "last_online": 1779999017,
    "icon": null,
    "name": "PandRust - Blue [trio; x2] gm.link/u125581",
    "connect": "95.217.107.239:10002",
    "request": "95.217.107.239:10002",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2332",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FI",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779892221,
    "last_update": 1780605215,
    "banned": false,
    "wipe": 1779905791,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13301,
    "language": "fi",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "redpoll",
      "avatar": "d3ce7144-6d42-4c65-847e-361515136168.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11602985");
$data = json_decode($json, true);
var_dump($data);