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

text
https://api.gamemonitoring.ru/servers/16285122
json
{
  "response": {
    "os": "l",
    "region": -1,
    "product": "valheim",
    "gametype": "g=1.0.12,n=40,m=",
    "dedicated": true,
    "steam_id": "90292702727119903",
    "domain": null,
    "id": 16285122,
    "ip": "149.40.54.217",
    "port": 21286,
    "query": 21287,
    "project_id": null,
    "color": 0,
    "city": "Гонконг",
    "description": null,
    "game": 892970,
    "boosts": 1,
    "last_offline": 1789639434,
    "last_online": 1789325405,
    "icon": null,
    "name": "Thourdheim",
    "connect": "149.40.54.217:21286",
    "request": "149.40.54.217:21287",
    "map": "Thourdheim",
    "gamemode": null,
    "version": "1.0.0.0",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": null,
    "country": "HK",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1789323882,
    "last_update": 1789639434,
    "ban_reason": null,
    "banned": false,
    "hidden": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 75521,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 34967,
      "steam_id": 892970,
      "name": "Valheim",
      "url": "valheim"
    },
    "mods": [],
    "disabled_modules": [],
    "map_url": null
  }
}

Примеры кода

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