面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11641866
json
{
  "response": {
    "modded": true,
    "fps": 77,
    "fps_avg": 77,
    "entities_count": 2130,
    "world_seed": 123244567,
    "world_size": 3600,
    "steam_id": "90286365304981512",
    "domain": null,
    "id": 11641866,
    "ip": "195.209.214.202",
    "port": 20000,
    "query": null,
    "color": 0,
    "city": "Moscow",
    "description": "[{\"id\":\"VR9MQk6LzK\",\"type\":\"paragraph\",\"data\":{\"text\":\"• Без лагов и фризов + premium AntiCheat\\n• Кастомные застройки\\n• Ивенты и мини игры каждый час.\\n• Крафт кастомных предметов\\n• Стартовые киты - /kits\\n• Система торговли - /trade\\n• Моментальный крафт (insta craft)\"}}]",
    "game": 252490,
    "owner": 196449,
    "boosts": 2,
    "last_offline": 1780066560,
    "last_online": 1780093209,
    "icon": null,
    "name": "ZRUN RUST [MAX2|DUO|X5|MINI-GAME|COBALT|WARZONE]",
    "connect": "195.209.214.202:20000",
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 22,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 1,
    "points": 200,
    "add_date": 1780066560,
    "last_update": 1780093209,
    "banned": false,
    "wipe": 1780092000,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": true,
    "position_game": 17,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "megicowstar",
      "avatar": "d9fe40d8-74f5-42e0-b89a-fd2da6f89166.webp"
    },
    "mods": [
      {
        "id": 926,
        "name": "IQChat"
      }
    ],
    "disabled_modules": []
  }
}

代码示例

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