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

text
https://api.gamemonitoring.ru/servers/12185765
json
{
  "response": {
    "dedicated": false,
    "gametype": null,
    "os": "w",
    "product": "portal2",
    "region": -1,
    "steam_id": "90288722348633108",
    "domain": null,
    "id": 12185765,
    "ip": "49.49.22.188",
    "port": 27015,
    "query": 27015,
    "project_id": null,
    "color": 0,
    "city": "Chiang Mai",
    "description": null,
    "game": 620,
    "owner": null,
    "boosts": 1,
    "last_offline": 1784087499,
    "last_online": 1783821205,
    "icon": null,
    "name": "Half-Life 2",
    "connect": "49.49.22.188:27015",
    "request": "49.49.22.188:27015",
    "map": "sp_a4_finale1",
    "gamemode": null,
    "version": "2.0.0.1",
    "numplayers": 0,
    "maxplayers": 1,
    "bots": 0,
    "secured": true,
    "private": null,
    "country": "TH",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1783818179,
    "last_update": 1784087499,
    "banned": 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": 7202,
    "language": "th",
    "parked": false,
    "app": {
      "id": 105,
      "steam_id": 620,
      "name": "Portal 2",
      "url": "portal-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Примеры кода

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