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

text
https://api.gamemonitoring.ru/servers/1957422
json
{
  "response": {
    "god": "0",
    "coop": "0",
    "buddha": "0",
    "sv_tags": "",
    "nextlevel": "",
    "sv_bounce": "0",
    "sv_cheats": "0",
    "tv_enable": "0",
    "deathmatch": "1",
    "listentype": "d",
    "mp_c4timer": "45",
    "sv_alltalk": "0",
    "sv_contact": "",
    "sv_gravity": "800",
    "environment": "l",
    "mp_teamlist": "hgrunt;scientist",
    "mp_teamplay": "0",
    "mp_winlimit": "0",
    "sv_friction": "4",
    "sv_maxspeed": "1000.000000",
    "sv_password": "0",
    "sv_stepsize": "18",
    "tv_password": "0",
    "a2s_protocol": 17,
    "mp_allowNPCs": "1",
    "mp_footsteps": "1",
    "mp_fraglimit": "0",
    "mp_maxrounds": "0",
    "mp_roundtime": "5",
    "mp_timelimit": "0",
    "sv_footsteps": "1",
    "sv_rollangle": "0",
    "sv_rollspeed": "200",
    "sv_specspeed": "3",
    "sv_stopspeed": "75",
    "mp_falldamage": "0",
    "mp_flashlight": "1",
    "mp_freezetime": "6",
    "mp_limitteams": "2",
    "mp_tournament": "0",
    "mp_weaponstay": "0",
    "sv_accelerate": "5",
    "sv_specnoclip": "1",
    "sv_steamgroup": "",
    "decalfrequency": "10",
    "mp_fadetoblack": "0",
    "survivor_limit": "4",
    "sv_noclipspeed": "5",
    "sv_voiceenable": "1",
    "tauntfrequency": "1",
    "mp_forcerespawn": "1",
    "mp_friendlyfire": "1",
    "mp_autocrosshair": "1",
    "players_complete": true,
    "sv_airaccelerate": "10",
    "sv_waterfriction": "1",
    "tv_relaypassword": "0",
    "r_JeepViewZHeight": "10.0",
    "sv_noclipfriction": "4",
    "sv_specaccelerate": "5",
    "mp_autoteambalance": "1",
    "sv_wateraccelerate": "10",
    "mp_stalemate_enable": "0",
    "r_VehicleViewDampen": "1",
    "sv_noclipaccelerate": "5",
    "tf_arena_max_streak": "5",
    "tf_arena_round_time": "0",
    "director_afk_timeout": "45",
    "r_AirboatViewZHeight": "0.0",
    "r_JeepViewDampenDamp": "1.0",
    "r_JeepViewDampenFreq": "7.0",
    "tf_arena_preround_time": "10",
    "r_AirboatViewDampenDamp": "1.0",
    "r_AirboatViewDampenFreq": "7.0",
    "mp_disable_respawn_times": "0",
    "mp_teams_unbalance_limit": "1",
    "mp_stalemate_at_timelimit": "0",
    "steam_id": "90292990040175623",
    "domain": null,
    "id": 1957422,
    "ip": "103.28.54.214",
    "port": 27128,
    "query": 27128,
    "project_id": null,
    "color": 0,
    "city": "Ha Kwai Chung",
    "description": "",
    "game": 550,
    "boosts": 1,
    "last_offline": 1789489846,
    "last_online": 1789752636,
    "icon": null,
    "name": "Valve Left4Dead 2 Hong Kong Server (srcds1028-hkg1.141.114)",
    "connect": "103.28.54.214:27128",
    "request": "103.28.54.214:27128",
    "map": "c3m1_plankcountry",
    "gamemode": "Left 4 Dead 2",
    "version": "2.2.4.3",
    "numplayers": 0,
    "maxplayers": 4,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "HK",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1700910955,
    "last_update": 1789752636,
    "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": 2705,
    "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/1957422");
$data = json_decode($json, true);
var_dump($data);