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

text
https://api.gamemonitoring.ru/servers/19452820
json
{
  "response": {
    "add_date": 1793461154,
    "app": {
      "id": 50335,
      "name": "Barotrauma",
      "steam_id": 602960,
      "url": "barotrauma"
    },
    "color": 0,
    "connect": "222.187.254.123:16553",
    "country": "CN",
    "domain": null,
    "game": 602960,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 19452820,
    "ip": "222.187.254.123",
    "language": "zh",
    "last_update": 1794631544,
    "map": "方位角级",
    "maxplayers": 64,
    "name": "木卫二武装集团~PVP专服~交流群934132626",
    "numplayers": 0,
    "official": null,
    "points": 30,
    "port": 16553,
    "private": false,
    "project_id": null,
    "pve": null,
    "pvp": null,
    "query": 16554,
    "request": "222.187.254.123:16554",
    "secured": false,
    "status": true,
    "steam_id": "90297391685475337",
    "version": "1.13.5.0",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 0,
    "city": "Нанкин",
    "description": null,
    "disabled_modules": [],
    "gamemode": "sandbox",
    "hidden": false,
    "last_offline": 1794570964,
    "last_online": 1794631544,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 187,
    "wipe_period": null,
    "traitors": "0",
    "playstyle": "Rampage",
    "submarine": "Azimuth",
    "listentype": "d",
    "environment": "w",
    "gamestarted": "False",
    "playercount": "0",
    "a2s_protocol": 17,
    "allowrespawn": "True",
    "eoscrossplay": "False",
    "karmaenabled": "False",
    "allowspectating": "True",
    "contentpackage0": "Vanilla,D14AF79498BED9EB475FA6D3A3117093,",
    "contentpackage1": "Moses,1531D540DAD316C77E1C6A82B3F253C4,3000776255",
    "contentpackage2": "LuaUtilityBelt,444FD42FD9987776D56A240A43322D47,2999344925",
    "contentpackage3": "DynSubmarineScriptInj,43C7CF9735CB198CC327DFD16D2653C3,3000775362",
    "contentpackage4": "DSSIFactionCraft,6C62CD7969A9539EF4D94303ADB35F93,3026984689",
    "contentpackage5": "Map Architect Pack,6D8441FF02E5F1F5E98197A4DC7F7607,3470326800",
    "contentpackage6": "Pure Empty Level,5C208DB3980D3786DBD7C9F6BEEA1854,3033618197",
    "contentpackage7": "OTFX,728D4AD6767244AD367F7C28BEEDEC70,2986787106",
    "contentpackage8": "VanillaGunModify (EuropaArmedGroupCommunity),6ED62894AB2C8690A7B8A2D025537993,3589812359",
    "contentpackage9": "Arakneas' Mod EAGC Edition,CB8CA336A56C1C6A42CB73A42BBAD061,3441366361",
    "players_complete": true,
    "subselectionmode": "Vote",
    "voicechatenabled": "True",
    "modeselectionmode": "Manual",
    "friendlyfireenabled": "True"
  }
}

Примеры кода

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