API для Haku-server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"god": "0",
"coop": "0",
"buddha": "0",
"st_time": "15",
"st_type": "1",
"sv_tags": "",
"st_allow": "1",
"st_modes": "",
"nextlevel": "",
"st_enable": "3",
"sv_bounce": "0",
"sv_cheats": "0",
"tv_enable": "0",
"deathmatch": "1",
"listentype": "d",
"mp_c4timer": "45",
"sm_nextmap": "",
"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",
"sb_fix_debug": "0",
"st_modes_off": "",
"st_modes_tog": "0",
"sv_footsteps": "1",
"sv_rollangle": "0",
"sv_rollspeed": "200",
"sv_specspeed": "3",
"sv_stopspeed": "75",
"l4d2_crawling": "1",
"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": "45631027",
"decalfrequency": "10",
"l4d_scs_cookie": "1",
"mp_fadetoblack": "0",
"rygive_version": "1.2.3",
"sb_fix_enabled": "1",
"st_min_percent": "50",
"sv_noclipspeed": "5",
"sv_voiceenable": "1",
"tauntfrequency": "1",
"metamod_version": "1.12.0-dev+1219V",
"mp_forcerespawn": "1",
"mp_friendlyfire": "1",
"sb_fix_ci_range": "500",
"sb_fix_si_range": "500",
"sm_drop_version": "1.3.0revA",
"l4d2_change_mode": "1",
"l4d2_change_time": "6.0",
"mp_autocrosshair": "1",
"players_complete": true,
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"tv_relaypassword": "0",
"l4d_dissolve_time": "0.0",
"r_JeepViewZHeight": "10.0",
"sb_fix_ci_enabled": "1",
"sb_fix_help_range": "3000",
"sb_fix_rock_range": "700",
"sb_fix_si_enabled": "1",
"sb_fix_tank_range": "3000",
"sourcemod_version": "1.12.0.7202",
"sv_noclipfriction": "4",
"sv_specaccelerate": "5",
"l4d2_crawling_glow": "1",
"l4d2_crawling_hint": "2",
"l4d2_crawling_hurt": "2",
"l4d2_crawling_rate": "30",
"l4d2_crawling_spit": "1",
"l4d2_crawling_view": "1",
"l4d_dissolve_allow": "1",
"l4d_dissolve_modes": "",
"l4d_scs_auto_model": "1",
"mp_autoteambalance": "1",
"sb_fix_select_type": "0",
"sb_fix_witch_range": "2000",
"sv_wateraccelerate": "10",
"FlyYouFools_Version": "1.2",
"l4d2_addons_eclipse": "-1",
"l4d2_crawling_crazy": "0",
"l4d2_crawling_modes": "",
"l4d2_crawling_speed": "50",
"l4d_csm_admins_only": "0",
"l4d_dissolve_chance": "100",
"left4dhooks_version": "1.158",
"mp_stalemate_enable": "0",
"r_VehicleViewDampen": "1",
"sb_fix_bash_enabled": "1",
"sb_fix_help_enabled": "1",
"sb_fix_rock_enabled": "1",
"sb_fix_tank_enabled": "1",
"sv_noclipaccelerate": "5",
"tf_arena_max_streak": "5",
"tf_arena_round_time": "0",
"BotHaymakers_Version": "1.0",
"director_afk_timeout": "45",
"l4d_dissolve_version": "1.15",
"l4d_ff_announce_type": "1",
"r_AirboatViewZHeight": "0.0",
"r_JeepViewDampenDamp": "1.0",
"r_JeepViewDampenFreq": "7.0",
"sb_fix_select_number": "1",
"sb_fix_witch_enabled": "1",
"l4d2_crawling_version": "2.5",
"l4d_csm_in_transition": "1",
"l4d_dissolve_infected": "511",
"l4d_dissolve_time_max": "0.0",
"l4d_dissolve_time_min": "0.0",
"sb_fix_ci_melee_allow": ",",
"sb_fix_ci_melee_range": "160",
"command_buffer_version": "2.8",
"l4d2_crawling_hint_num": "10",
"l4d_coop_markers_allow": "1",
"l4d_coop_markers_panel": "1",
"l4d_coop_markers_timer": "0.5",
"l4d_dissolve_modes_off": "",
"l4d_dissolve_modes_tog": "0",
"l4d_ff_announce_enable": "1",
"l4d_multislots_version": "6.9-2025/4/5",
"sb_fix_help_shove_type": "3",
"tf_arena_preround_time": "10",
"DontFuckWithHer_Version": "1.1",
"l4d2_crawling_modes_off": "",
"l4d2_crawling_modes_tog": "0",
"l4d2_infected_hp_extend": "1",
"r_AirboatViewDampenDamp": "1.0",
"r_AirboatViewDampenFreq": "7.0",
"sb_fix_si_ignore_boomer": "0",
"l4d_coop_markers_percent": "20",
"l4d_coop_markers_version": "1.11",
"l4d_multislots_respawnhp": "80",
"mp_disable_respawn_times": "0",
"mp_teams_unbalance_limit": "1",
"sb_fix_bash_hunter_range": "500",
"sb_fix_bash_jockey_range": "500",
"200IQBots_TankDangerRange": "800.0",
"mp_stalemate_at_timelimit": "0",
"safearea_teleport_version": "1.2.0",
"sb_fix_bash_hunter_chance": "100",
"sb_fix_bash_jockey_chance": "100",
"sb_fix_witch_range_killed": "0",
"200IQBots_WitchDangerRange": "500.0",
"l4d_multislots_fifthweapon": "0",
"l4d_multislots_firstweapon": "19",
"l4d_multislots_forthweapon": "0",
"l4d_multislots_thirdweapon": "4",
"l4d_multislots_secondweapon": "5",
"sb_fix_help_shove_reloading": "0",
"l4d2_infected_hp_extend_tank": "1",
"l4d_multislots_max_survivors": "10",
"l4d_multislots_min_survivors": "4",
"l4d_multislots_respawnbuffhp": "20",
"sb_fix_dont_switch_secondary": "0",
"sb_fix_incapacitated_enabled": "1",
"sb_fix_select_character_name": "",
"sb_fix_si_tank_priority_type": "1",
"sb_fix_witch_shotgun_control": "1",
"l4d2_infected_hp_extend_witch": "1",
"l4d_multislots_alive_bot_time": "0",
"sb_fix_prioritize_ownersmoker": "1",
"sb_fix_si_ignore_boomer_range": "50",
"200IQBots_HaymakerChanceFactor": "1",
"l4d2_M60_nodrop_ammopile_patch": "0",
"l4d2_infected_hp_extend_common": "1",
"sb_fix_witch_shotgun_range_max": "550",
"sb_fix_witch_shotgun_range_min": "70",
"l4d2_infected_hp_extend_special": "1",
"l4d2_infected_hp_extend_version": "1.0.4.beta3",
"l4d_multislots_bot_items_delete": "1",
"l4d_survivoraipouncedfix_version": "1.0.5",
"sb_fix_witch_range_incapacitated": "2000",
"l4d2_infected_hp_extend_killSound": "1",
"l4d_multislots_join_command_block": "0",
"l4d2_infected_hp_extend_tankDeadTip": "1",
"l4d_multislots_no_second_free_spawn": "0",
"l4d_multislots_spec_message_interval": "25",
"l4d2_infected_hp_extend_zmykey_boomer": "1",
"l4d2_infected_hp_extend_zmykey_hunter": "1",
"l4d2_infected_hp_extend_zmykey_jockey": "1",
"l4d2_infected_hp_extend_zmykey_smoker": "1",
"l4d_multislots_finale_extra_first_aid": "1",
"l4d_multislots_respawn_invincibletime": "3.0",
"l4d_multislots_versus_command_balance": "1",
"l4d2_infected_hp_extend_zmykey_charger": "1",
"l4d2_infected_hp_extend_zmykey_spitter": "1",
"l4d_multislots_free_spawn_crash_player": "1",
"l4d_multislots_saferoom_extra_first_aid": "1",
"l4d_multislots_spawn_survivors_roundstart": "0",
"l4d_multislots_versus_teams_unbalance_limit": "1",
"steam_id": "90292989789051933",
"domain": null,
"id": 14204229,
"ip": "111.23.38.193",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Цинъюань",
"description": null,
"game": 550,
"boosts": 1,
"last_offline": 1789587120,
"last_online": 1789752040,
"icon": null,
"name": "Haku-server",
"connect": "111.23.38.193:27015",
"request": "111.23.38.193:27015",
"map": "dayofthedead6",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 1,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 44,
"add_date": 1788000225,
"last_update": 1789752040,
"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": 2242,
"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/14204229");
$data = json_decode($json, true);
var_dump($data);