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

text
https://api.gamemonitoring.ru/servers/18235970
json
{
  "response": {
    "add_date": 1792008664,
    "app": {
      "id": 34967,
      "name": "Valheim",
      "steam_id": 892970,
      "url": "valheim"
    },
    "color": 0,
    "connect": "216.201.78.9:9025",
    "country": "NL",
    "domain": null,
    "game": 892970,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 18235970,
    "ip": "216.201.78.9",
    "language": "nl",
    "last_update": 1792606970,
    "map": "BisectHosting edbc0ae4",
    "maxplayers": 10,
    "name": "BisectHosting edbc0ae4",
    "numplayers": 0,
    "official": null,
    "points": 30,
    "port": 9025,
    "private": true,
    "project_id": null,
    "pve": null,
    "pvp": null,
    "query": 9026,
    "request": "216.201.78.9:9026",
    "secured": false,
    "status": true,
    "steam_id": "90294968064665630",
    "version": "1.0.20",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 0,
    "city": "Гаага",
    "description": null,
    "disabled_modules": [],
    "gamemode": null,
    "hidden": false,
    "last_offline": 1792085134,
    "last_online": 1792606970,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 53902,
    "wipe_period": null,
    "listentype": "d",
    "environment": "l",
    "a2s_protocol": 17,
    "players_complete": true
  }
}

Примеры кода

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