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

text
https://api.gamemonitoring.ru/servers/20142519
json
{
  "response": {
    "add_date": 1794717391,
    "app": {
      "id": 8,
      "name": "Day of Defeat: Source",
      "steam_id": 300,
      "url": "day-of-defeat-source"
    },
    "color": 0,
    "connect": "78.51.176.33:27016",
    "country": "DE",
    "domain": null,
    "game": 300,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 20142519,
    "ip": "78.51.176.33",
    "language": "de",
    "last_update": 1794770766,
    "map": "gg_the_round",
    "maxplayers": 32,
    "name": "T2D | GunGame | 1000 FPS/Tick | Fast-DL",
    "numplayers": 0,
    "official": null,
    "points": 30,
    "port": 27016,
    "private": false,
    "project_id": null,
    "pve": null,
    "pvp": null,
    "query": 27016,
    "request": "78.51.176.33:27016",
    "secured": true,
    "status": true,
    "steam_id": "85568392924683257",
    "version": "11003710",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 0,
    "city": "Штутгарт",
    "description": null,
    "disabled_modules": [],
    "gamemode": "Day of Defeat",
    "hidden": false,
    "last_offline": null,
    "last_online": 1794770766,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 201,
    "wipe_period": null,
    "coop": "0",
    "sv_tags": "alltalk,FastDL,GG,Gun Game,GunGame,Medic,SpawnProtection,Stats,t2d",
    "nextlevel": "",
    "sv_bounce": "0",
    "sv_cheats": "0",
    "tv_enable": "0",
    "deathmatch": "1",
    "listentype": "d",
    "sm_nextmap": "gg_mr_pillar_v1",
    "sv_alltalk": "1",
    "sv_contact": "www.Root-Core.net",
    "sv_gravity": "800",
    "environment": "l",
    "mp_teamlist": "hgrunt;scientist",
    "mp_teamplay": "1",
    "mp_winlimit": "0",
    "sv_friction": "8",
    "sv_maxspeed": "320",
    "sv_password": "0",
    "sv_pausable": "0",
    "sv_stepsize": "18",
    "tv_password": "0",
    "a2s_protocol": 17,
    "mp_allowNPCs": "1",
    "mp_footsteps": "1",
    "mp_fraglimit": "0",
    "mp_timelimit": "0",
    "sv_footsteps": "1",
    "sv_rollangle": "0",
    "sv_rollspeed": "200",
    "sv_specspeed": "3",
    "sv_stopspeed": "50",
    "mp_falldamage": "0",
    "mp_flashlight": "1",
    "mp_weaponstay": "0",
    "sv_accelerate": "10",
    "sv_specnoclip": "1",
    "sv_steamgroup": "",
    "decalfrequency": "45",
    "mp_fadetoblack": "0",
    "sv_noclipspeed": "5",
    "sv_voiceenable": "1",
    "metamod_version": "2.0.0-dev+1334V",
    "mp_forcerespawn": "1",
    "mp_friendlyfire": "0",
    "sm_rate_version": "0.2",
    "hpk_lite_version": "1.0.0.1",
    "mp_autocrosshair": "1",
    "players_complete": true,
    "sm_medic_version": "1.0.109",
    "sm_stats_enabled": "1",
    "sm_stats_version": "1.0.12",
    "sv_airaccelerate": "10",
    "sv_waterfriction": "1",
    "tv_relaypassword": "0",
    "r_JeepViewZHeight": "10.0",
    "sourcemod_version": "1.12.0.7190",
    "sv_specaccelerate": "5",
    "sm_gungame_version": "5.0 Preview",
    "sv_wateraccelerate": "10",
    "r_VehicleViewDampen": "1",
    "sv_noclipaccelerate": "5",
    "r_AirboatViewZHeight": "0.0",
    "r_JeepViewDampenDamp": "1.0",
    "r_JeepViewDampenFreq": "7.0",
    "sm_parachute_version": "2.5",
    "sm_stats_displaymode": "1",
    "sm_stats_startpoints": "0",
    "sv_vote_quorum_ratio": "0.6",
    "sm_quakesounds_version": "2.7.1",
    "r_AirboatViewDampenDamp": "1.0",
    "r_AirboatViewDampenFreq": "7.0",
    "sm_playersvotes_version": "1.5.0",
    "spawnprotection_version": "2.1",
    "sv_maxusrcmdprocessticks": "24"
  }
}

Примеры кода

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