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

text
https://api.gamemonitoring.ru/servers/20138136
json
{
  "response": {
    "add_date": 1794707168,
    "app": {
      "id": 123,
      "name": "Team Fortress 2 Classified",
      "steam_id": 3545060,
      "url": "team-fortress-2-classified"
    },
    "color": 0,
    "connect": "79.117.7.165:27015",
    "country": "ES",
    "domain": null,
    "game": 3545060,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 20138136,
    "ip": "79.117.7.165",
    "language": "es",
    "last_update": 1794785170,
    "map": "koth_valor_rc1",
    "maxplayers": 24,
    "name": "TF2C Martin's Server | EU | Custom Weapons",
    "numplayers": 0,
    "official": null,
    "points": 30,
    "port": 27015,
    "private": null,
    "project_id": null,
    "pve": null,
    "pvp": null,
    "query": 27015,
    "request": "79.117.7.165:27015",
    "secured": true,
    "status": true,
    "steam_id": "85568392935972070",
    "version": "5205",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 18,
    "city": "Sant Adrià de Besòs",
    "description": null,
    "disabled_modules": [],
    "gamemode": null,
    "hidden": false,
    "last_offline": null,
    "last_online": 1794785170,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 146,
    "wipe_period": null,
    "os": "l",
    "region": 255,
    "product": "tf2classified",
    "gametype": "Civilian,Custom Weapons,Silly Weapons,alltalk,bots,cp,respawntimes,type_customweapons",
    "dedicated": true
  }
}

Примеры кода

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