面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11159236
json
{
  "response": {
    "fps": 460,
    "fps_avg": 454,
    "entities_count": 56477,
    "world_seed": 121315421,
    "world_size": 3500,
    "steam_id": "90286956656380941",
    "domain": null,
    "id": 11159236,
    "ip": "185.189.255.110",
    "port": 35000,
    "query": 35010,
    "project_id": null,
    "color": 0,
    "city": "Moscow",
    "description": "![Beam - 5X Monday | NOLIM | No BPs](https://i.yapx.ru/dyS0N.png)\nВайп карты: Каждый понедельник\r\nВайп чертежей: Никогда\r\n\r\nСсылки:\r\n• discord.gg/beamrust\r\n\r\nФункционал\r\n• 5х Рейты\r\n• 5х Лут (Мусор удалён)\r\n• Без доната\r\n• Автоматическая авторизация команды в шкафах/турелях и прочем.\r\n• Активная тех.поддержка в Discord с системой тикетов.\r\n---------------------------\r\nMap Wipe: Every Friday\r\nBlueprint Wipe: N/A (does not wipe ever)\r\n\r\nLinks:\r\n• discord.gg/beamrust\r\n\r\nFeatures\r\n• 5x Gather Rates\r\n• 5x Loot (Junk Removed)\r\n• No Pay-to-Win\r\n• Automatic team authorization on Tool Cupboards, Turrets, and other deployables*\r\n• Active technical support on Discord with a ticket system.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781082275,
    "last_online": 1781343030,
    "icon": null,
    "name": "Beam - 5X Monday | NOLIM | No BPs",
    "connect": "185.189.255.110:35000",
    "request": "185.189.255.110:35010",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772228125,
    "last_update": 1781343030,
    "banned": false,
    "wipe": 1780909687,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4335,
    "language": "ru",
    "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/11159236");
$data = json_decode($json, true);
var_dump($data);