面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11810488
json
{
  "response": {
    "oxide": true,
    "modded": true,
    "fps": 157,
    "fps_avg": 153,
    "entities_count": 24677,
    "world_seed": 1337,
    "world_size": 2500,
    "steam_id": "90287017505620995",
    "domain": null,
    "id": 11810488,
    "ip": "217.60.245.104",
    "port": 10028,
    "query": 10029,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![HORIZON RUST | X2 | NOLIMIT | WIPE 13.06](https://s10.iimage.su/s/23/th_gFVd7cFx9wrzG3AdlyKszzgzsZhhyAkeXIDUuNW2H.png)\nПервый Деблог сервер с Мини играми \r\n Популярная минни игра из Тик Тока - счастливые столбы \r\n и еще куча всего ты найдешь у нас \r\n так же в скорор времени мы планируем добавить гонку вооружений ! \r\n Магические карты - Система боевого пропуска уникальные киты и т.д",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781465078,
    "last_online": 1781524229,
    "icon": null,
    "name": "HORIZON RUST | X2 | NOLIMIT | WIPE 13.06",
    "connect": "217.60.245.104:10028",
    "request": "217.60.245.104:10029",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2388",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781465078,
    "last_update": 1781524229,
    "banned": false,
    "wipe": 1781349152,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6258,
    "language": "de",
    "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/11810488");
$data = json_decode($json, true);
var_dump($data);