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

text
https://api.gamemonitoring.ru/servers/15743170
json
{
  "response": {
    "listentype": "d",
    "environment": "l",
    "a2s_protocol": 17,
    "players_complete": true,
    "steam_id": "90292906949450770",
    "domain": null,
    "id": 15743170,
    "ip": "82.223.22.21",
    "port": 21800,
    "query": 21801,
    "project_id": null,
    "color": 0,
    "city": "Мадрид",
    "description": null,
    "game": 892970,
    "boosts": 1,
    "last_offline": 1789488105,
    "last_online": 1789657911,
    "icon": null,
    "name": "4Netplayers Valheim Wowy Server",
    "connect": "82.223.22.21:21800",
    "request": "82.223.22.21:21801",
    "map": "4Netplayers Valheim Wowy Server",
    "gamemode": null,
    "version": "1.0.12",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "ES",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1788961446,
    "last_update": 1789657911,
    "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": 28985,
    "language": "es",
    "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/15743170");
$data = json_decode($json, true);
var_dump($data);