面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/3446157
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 3446157,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "![$Раст от NME | Discord.gg/nme](https://rustservermanager.com/Banner.png)\nПриветствуем вас на проекте Net Media Empire.\r\n\r\n- Вайп раз в месяц\r\n- Размер карты 4250\r\n- Сгенерированная карта\r\n- Авто-эвенты\r\n- Зомби спавн ночью\r\n- Сетап точки дома и возврат тп на неё\r\n- Стартовая PvE защита 2 часа\r\n- Прокачка профессий\r\n- Удобная сортировка вещей\r\n\r\nНаш дискорд: https://discord.gg/nme\r\nНаш сайт: https://nmeclub.ru",
    "game": 252490,
    "owner": 60951,
    "boosts": 1,
    "last_offline": 1750457066,
    "last_online": 1714155045,
    "icon": null,
    "name": "Раст от NME | Discord.gg/nme",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Softcore",
    "version": null,
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1710515622,
    "last_update": 1750457066,
    "banned": false,
    "wipe": 1712261767,
    "official": null,
    "wipe_period": "monthly",
    "next_wipe": 1714853767,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13156,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "ru",
      "avatar": "d3c07170-f408-4d44-9793-22bd090baedc.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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