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

text
https://api.gamemonitoring.ru/servers/11571701
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11571701,
    "ip": "222.217.6.31",
    "port": 27063,
    "query": 27063,
    "color": 0,
    "city": "Liuchow",
    "description": null,
    "game": 500,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779830556,
    "last_online": 1779525626,
    "icon": null,
    "name": "琥珀の娱乐服 #3",
    "connect": "222.217.6.31:27063",
    "request": "222.217.6.31:27063",
    "map": "l4d_farm01_hilltop",
    "gamemode": "L4D - Co-op - Normal",
    "version": "1.0.4.5",
    "numplayers": 0,
    "maxplayers": 15,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779356710,
    "last_update": 1779830556,
    "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": 1887,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 18,
      "steam_id": 500,
      "name": "Left 4 Dead",
      "url": "left-4-dead"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Примеры кода

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