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

text
https://api.gamemonitoring.ru/servers/11186145
json
{
  "response": {
    "": "",
    "god": "0",
    "buddha": "0",
    "sv_tags": "",
    "sv_cheats": "0",
    "listentype": "d",
    "sv_alltalk": "0",
    "environment": "w",
    "l4d_fly_msg": "0",
    "mp_teamlist": "hgrunt;scientist",
    "rpg_LvUp_SP": "5",
    "sv_maxspeed": "1000.000000",
    "sv_stepsize": "18",
    "a2s_protocol": 7,
    "mp_allowNPCs": "1",
    "mp_footsteps": "1",
    "mp_maxrounds": "0",
    "rpg_vipropsC": "9",
    "rpg_vipropsD": "12",
    "sv_rollangle": "0",
    "l4d_fly_speed": "300.0",
    "mp_flashlight": "1",
    "mp_tournament": "0",
    "l4d_climb_tank": "1",
    "survivor_limit": "13",
    "tauntfrequency": "1",
    "metamod_version": "1.11.0-dev+1154V",
    "l4d_climb_hunter": "1",
    "l4d_climb_jockey": "1",
    "players_complete": true,
    "l4d2_WeaponUnlock": "0.8.1B",
    "l4d_machine_range": "1000.0",
    "l4d2_crawling_spit": "1",
    "l4d_machine_health": "500.0",
    "l4d2_addons_eclipse": "-1",
    "l4d2_crawling_speed": "300",
    "l4d_climb_anim_tank": "0",
    "r_VehicleViewDampen": "1",
    "l4d_dissolve_version": "1.15",
    "l4d_machine_overheat": "60.0",
    "r_AirboatViewZHeight": "0.0",
    "l4d_climb_anim_hunter": "0",
    "l4d_climb_anim_smoker": "0",
    "l4d_machine_adminonly": "0",
    "l4d_machine_fire_rate": "20",
    "l4d_climb_speed_hunter": "2.4",
    "l4d_dissolve_modes_off": "",
    "rpg_RobotUpgradeCost_0": "5000",
    "rpg_RobotUpgradeCost_1": "5000",
    "rpg_RobotUpgradeCost_2": "5000",
    "l4d2_crawling_modes_off": "",
    "l4d_machine_ammo_refill": "1",
    "rpg_GainCash_Kill_Boomer": "5",
    "rpg_GainCash_Kill_hunter": "15",
    "sm_supertank_armor_tank4": "0.5",
    "sm_supertank_armor_tank5": "0.5",
    "l4d2_ladder_patch_version": "1.1",
    "rpg_GainCash_Kill_Spitter": "10",
    "l4d_multislots_max_survivors": "16",
    "rpg_GainCash_Survivor_Heal_Team": "",
    "steam_id": null,
    "domain": null,
    "id": 11186145,
    "ip": "111.229.114.154",
    "port": 27016,
    "query": 27016,
    "project_id": null,
    "color": 0,
    "city": "Шанхай",
    "description": null,
    "game": 550,
    "boosts": 1,
    "last_offline": 1789233635,
    "last_online": 1789717260,
    "icon": null,
    "name": "Left 4 Dead 2",
    "connect": "111.229.114.154:27016",
    "request": "111.229.114.154:27016",
    "map": "c2m1_highway",
    "gamemode": "Left 4 Dead 2",
    "version": "2.2.4.3",
    "numplayers": 1,
    "maxplayers": 12,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 36,
    "add_date": 1772698894,
    "last_update": 1789717260,
    "ban_reason": null,
    "banned": false,
    "hidden": 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": 1521,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 11,
      "steam_id": 550,
      "name": "Left 4 Dead 2",
      "url": "left-4-dead-2"
    },
    "mods": [],
    "disabled_modules": [],
    "map_url": null
  }
}

Примеры кода

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