面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11159255
json
{
  "response": {
    "fps": 142,
    "fps_avg": 132,
    "entities_count": 96840,
    "world_seed": 1101232860,
    "world_size": 4096,
    "steam_id": "90286382255077379",
    "domain": null,
    "id": 11159255,
    "ip": "80.242.59.133",
    "port": 35300,
    "query": 35310,
    "color": 0,
    "city": "Veliky Novgorod",
    "description": "![[RU][EU] AZIMUTH RUST |MAX5|X3|KIT|LOOT+|](https://i.ibb.co/Xqvs7Qz/baner-server.png)\nЛимит игроков в команде: 5\r\n\r\nХарактеристики сервера:\r\n• Рейты добычи ресурсов x3\r\n• Мгновенный крафт \r\n• Телепортация к игрокам и домой\r\n• Мини-магазин\r\n• Улучшенный лут в ящиках",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780620253,
    "last_online": 1780617629,
    "icon": null,
    "name": "[RU][EU] AZIMUTH RUST |MAX5|X3|KIT|LOOT+|",
    "connect": "80.242.59.133:35300",
    "request": "80.242.59.133:35310",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1772228125,
    "last_update": 1780620253,
    "banned": false,
    "wipe": 1778492996,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10260,
    "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/11159255");
$data = json_decode($json, true);
var_dump($data);