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

text
https://api.gamemonitoring.ru/servers/19587472
json
{
  "response": {
    "add_date": 1793693294,
    "app": {
      "id": 50335,
      "name": "Barotrauma",
      "steam_id": 602960,
      "url": "barotrauma"
    },
    "color": 0,
    "connect": "118.195.199.197:27015",
    "country": "CN",
    "domain": null,
    "game": 602960,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 19587472,
    "ip": "118.195.199.197",
    "language": "zh",
    "last_update": 1794462565,
    "map": "方位角级",
    "maxplayers": 12,
    "name": "深海处方药:神经创伤 深潜 24h服务器",
    "numplayers": 1,
    "official": null,
    "points": 38,
    "port": 27015,
    "private": false,
    "project_id": null,
    "pve": null,
    "pvp": null,
    "query": 27016,
    "request": "118.195.199.197:27016",
    "secured": false,
    "status": true,
    "steam_id": "90297272038729752",
    "version": "1.0.0.0",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 0,
    "city": "Нанкин",
    "description": null,
    "disabled_modules": [],
    "gamemode": "Barotrauma",
    "hidden": false,
    "last_offline": 1794224209,
    "last_online": 1794462565,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 39,
    "wipe_period": null,
    "listentype": "d",
    "environment": "w",
    "a2s_protocol": 17
  }
}

Примеры кода

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