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

text
https://api.gamemonitoring.ru/servers/16570538
json
{
  "response": {
    "add_date": 1789557137,
    "app": {
      "id": 11,
      "name": "Left 4 Dead 2",
      "steam_id": 550,
      "url": "left-4-dead-2"
    },
    "color": 0,
    "connect": "111.229.183.193:58642",
    "country": "CN",
    "domain": null,
    "game": 550,
    "hide_address": false,
    "hide_query": false,
    "icon": null,
    "id": 16570538,
    "ip": "111.229.183.193",
    "language": null,
    "last_update": 1791139390,
    "map": "c3m1_plankcountry",
    "maxplayers": 8,
    "name": "猜猜这个是谁的萌新服",
    "numplayers": 0,
    "official": null,
    "points": 30,
    "port": 58642,
    "private": false,
    "project_id": null,
    "pve": null,
    "pvp": null,
    "query": 58642,
    "request": "111.229.183.193:58642",
    "secured": true,
    "status": true,
    "steam_id": "90294063986627595",
    "version": "2.2.4.3",
    "votes": 0,
    "wipe": null,
    "ban_reason": null,
    "banned": false,
    "boosts": 1,
    "bots": 0,
    "city": "Шанхай",
    "description": null,
    "disabled_modules": [],
    "gamemode": "Left 4 Dead 2",
    "hidden": false,
    "last_offline": 1790589911,
    "last_online": 1791139390,
    "list_hidden": false,
    "map_url": null,
    "mods": [],
    "next_wipe": null,
    "parked": false,
    "position_game": 15125,
    "wipe_period": null,
    "god": "0",
    "coop": "0",
    "buddha": "0",
    "sv_tags": "",
    "nextlevel": "",
    "sv_bounce": "0",
    "sv_cheats": "0",
    "tv_enable": "0",
    "bots_limit": "4",
    "deathmatch": "1",
    "listentype": "d",
    "mp_c4timer": "45",
    "sm_nextmap": "",
    "sv_alltalk": "0",
    "sv_contact": "",
    "sv_gravity": "800",
    "environment": "w",
    "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,
    "bots_version": "1.11.8",
    "l4d_acid_fix": "1",
    "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": "",
    "bots_give_time": "0",
    "bots_give_type": "1",
    "decalfrequency": "-1",
    "l4d2_empty_Log": "1",
    "mp_fadetoblack": "0",
    "rygive_version": "1.2.3b",
    "sv_noclipspeed": "5",
    "sv_voiceenable": "1",
    "tauntfrequency": "1",
    "bots_give_slot0": "287",
    "bots_give_slot1": "667",
    "bots_give_slot2": "0",
    "bots_give_slot3": "0",
    "bots_give_slot4": "3",
    "bots_join_flags": "3",
    "bots_join_limit": "-1",
    "choose_bot_data": "0",
    "l4d2_empty_code": "c2m1_highway",
    "l4d2_empty_mode": "coop",
    "l4d2_empty_type": "1",
    "l4d2_infectedhp": "1",
    "metamod_version": "1.11.0-dev+1155V",
    "mp_forcerespawn": "1",
    "mp_friendlyfire": "1",
    "notify_map_next": "1",
    "bots_spec_notify": "3",
    "l4d2_empty_crash": "1",
    "l4d2_tank_Switch": "1",
    "l4d2_tank_health": "1000",
    "l4d2_tank_prompt": "3",
    "mp_autocrosshair": "1",
    "players_complete": true,
    "stripper_version": "1.2.2",
    "sv_airaccelerate": "10",
    "sv_waterfriction": "1",
    "tv_relaypassword": "0",
    "bots_join_respawn": "-1",
    "defib_fix_version": "2.0.1",
    "l4d2_empty_Switch": "1",
    "l4d2_infectedhp_a": "1",
    "l4d2_more_medical": "7",
    "l4d2_tank_minimum": "4000",
    "l4d2_witch_Switch": "0",
    "l4d2_witch_health": "0",
    "r_JeepViewZHeight": "10.0",
    "sourcemod_version": "1.11.0.6968",
    "sv_noclipfriction": "4",
    "sv_specaccelerate": "5",
    "l4d2_empty_Command": "10",
    "l4d2_witch_minimum": "1000",
    "l4d_reload_fix_m60": "1",
    "l4d_scs_auto_model": "1",
    "mp_autoteambalance": "1",
    "sv_wateraccelerate": "10",
    "l4d2_addons_eclipse": "-1",
    "l4d2_infectedhp_bar": "100",
    "l4d2_infectedhp_num": "1",
    "l4d2_tank_Multiples": "0.8;1.0;1.5;2.0",
    "l4d_csm_admin_flags": "z",
    "l4d_scs_tab_hud_bar": "1",
    "left4dhooks_version": "1.158",
    "map_changer_version": "1.0.5",
    "mp_stalemate_enable": "0",
    "r_VehicleViewDampen": "1",
    "sv_noclipaccelerate": "5",
    "tf_arena_max_streak": "5",
    "tf_arena_round_time": "0",
    "director_afk_timeout": "45",
    "l4d2_data_write_file": "1",
    "l4d2_infectedhp_tank": "1",
    "l4d2_infectedhp_type": "0",
    "l4d2_witch_Multiples": "1;1.0;1;1.0",
    "r_AirboatViewZHeight": "0.0",
    "r_JeepViewDampenDamp": "1.0",
    "r_JeepViewDampenFreq": "7.0",
    "l4d2_infectedhp_witch": "1",
    "l4d2_map_vote_version": "1.1",
    "l4d2_tickrate_version": "2.1.8",
    "l4d_csm_in_transition": "1",
    "l4d2_infectedhp_damage": "",
    "l4d2_infectedhp_health": "|",
    "l4d_reload_fix_version": "1.5",
    "tf_arena_preround_time": "10",
    "weaponhandling_version": "1.0.6",
    "l4d2_infectedhp_version": "1.0.4",
    "l4d2_nativevote_version": "0.4",
    "r_AirboatViewDampenDamp": "1.0",
    "r_AirboatViewDampenFreq": "7.0",
    "wh_use_incap_cycle_cvar": "1",
    "l4d2_enabled_player_down": "1",
    "l4d2_enabled_player_grab": "1",
    "mp_disable_respawn_times": "0",
    "mp_teams_unbalance_limit": "1",
    "l4d2_enabled_player_death": "1",
    "l4d2_ladder_patch_version": "1.1",
    "mp_stalemate_at_timelimit": "0",
    "wh_deploy_animation_speed": "-1",
    "wh_double_pistol_cycle_rate": "0",
    "l4d2_infectedhp_zmykey_boomer": "1",
    "l4d2_infectedhp_zmykey_hunter": "1",
    "l4d2_infectedhp_zmykey_jockey": "1",
    "l4d2_infectedhp_zmykey_smoker": "1",
    "mapchanger_finale_change_type": "12",
    "l4d2_infectedhp_zmykey_charger": "1",
    "l4d2_infectedhp_zmykey_spitter": "1",
    "transition_restore_fix_version": "1.2.5",
    "charger_collision_patch_version": "2.0.1",
    "mapchanger_finale_failure_count": "2",
    "l4d2_transition_info_fix_version": "1.0.1",
    "l4d2_weapon_drop_glow_fix_enable": "1",
    "mapchanger_finale_random_nextmap": "0",
    "l4d2_weapon_drop_glow_fix_version": "1.0.3",
    "l4d_revive_reload_interrupt_version": "1.0"
  }
}

Примеры кода

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