JSON для программ, сайтов и прочего

text
https://api.gamemonitoring.ru/servers/18161139
json
{
  "response": {
    "add_date": 1791976177,
    "app": {
      "id": 147,
      "name": "Don't Starve Together",
      "steam_id": 322330,
      "url": "dont-starve-together"
    },
    "color": 0,
    "connect": "109.108.62.154:11000",
    "country": "RU",
    "domain": null,
    "game": 322330,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 18161139,
    "ip": "109.108.62.154",
    "language": null,
    "last_update": 1792181816,
    "map": null,
    "maxplayers": 12,
    "name": "DST RU #3",
    "numplayers": 0,
    "official": null,
    "points": 0,
    "port": 11000,
    "private": false,
    "project_id": null,
    "pve": null,
    "pvp": 0,
    "query": 11000,
    "request": "109.108.62.154:11000",
    "secured": null,
    "status": false,
    "steam_id": null,
    "version": "756039",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 0,
    "city": "Кинешма",
    "description": null,
    "disabled_modules": [],
    "gamemode": "survival",
    "hidden": false,
    "last_offline": 1792181816,
    "last_online": 1792095325,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 12963,
    "wipe_period": null,
    "paused": false,
    "season": "autumn",
    "lanonly": false,
    "dedicated": true,
    "secondaries": {
      "4246389340": {
        "id": "4246389340",
        "port": 11001,
        "__addr": "109.108.62.154",
        "steamid": "90294682602519564"
      }
    },
    "clienthosted": false,
    "directory_id": "f834cd2e4e58b161a22a33e00ced9c6d"
  }
}

Примеры кода

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