面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11756743
json
{
  "response": {
    "fps": 207,
    "fps_avg": 189,
    "entities_count": 82612,
    "world_seed": 1431309101,
    "world_size": 3750,
    "steam_id": "90286656815411223",
    "domain": null,
    "id": 11756743,
    "ip": "212.22.85.19",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Moscow",
    "description": "![N E X U S | X2 | ДЛЯ НОВИЧКОВ | РУССКИЙ](https://nexusrp.myarena.site/rust_header.png)\nДобро пожаловать на NEXUS!\r\n\r\n• Рейты на добычу X2\r\n• Кастомный лут при спавне, макс HP!\r\n• Размер карты 3750\r\n• На карте есть зомби",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780714455,
    "last_online": 1780736435,
    "icon": null,
    "name": "N E X U S | X2 | ДЛЯ НОВИЧКОВ | РУССКИЙ",
    "connect": "212.22.85.19:28015",
    "request": "212.22.85.19:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780705433,
    "last_update": 1780736435,
    "banned": false,
    "wipe": 1780685366,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2849,
    "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/11756743");
$data = json_decode($json, true);
var_dump($data);