API для Viet Pub Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"coop": "0",
"sv_tags": "Duels,alltalk,cp,increased_maxplayers,nocrits,norespawntime,respawntimes",
"nextlevel": "",
"sv_bounce": "0",
"sv_cheats": "0",
"tv_enable": "1",
"deathmatch": "1",
"listentype": "d",
"mc_version": "1.3",
"sb_version": "1.6.4",
"sm_nextmap": "cp_sunshine",
"sv_alltalk": "1",
"sv_contact": "",
"sv_gravity": "800",
"environment": "l",
"mce_version": "1.10.2",
"mp_teamlist": "hgrunt;scientist",
"mp_teamplay": "0",
"mp_winlimit": "3",
"sbr_version": "1.6.4",
"sv_friction": "4",
"sv_maxspeed": "320",
"sv_password": "0",
"sv_pausable": "0",
"sv_stepsize": "18",
"tf_birthday": "0",
"tf_medieval": "0",
"tv_password": "0",
"a2s_protocol": 17,
"duel_version": "2.05",
"mp_allowNPCs": "1",
"mp_footsteps": "1",
"mp_fraglimit": "0",
"mp_maxrounds": "0",
"mp_timelimit": "30",
"sourcetvname": "VietServerTV",
"sourcetvport": 27020,
"sv_footsteps": "1",
"sv_rollangle": "0",
"sv_rollspeed": "200",
"sv_specspeed": "3",
"sv_stopspeed": "100",
"tf_bot_count": "0",
"tf_gravetalk": "1",
"tf_mm_strict": "0",
"tf_playergib": "1",
"tf_spec_xray": "1",
"mp_falldamage": "0",
"mp_flashlight": "0",
"mp_highlander": "0",
"mp_tournament": "0",
"mp_weaponstay": "0",
"sv_accelerate": "10",
"sv_specnoclip": "1",
"sv_steamgroup": "",
"tf_classlimit": "0",
"tf_mm_trusted": "0",
"decalfrequency": "10",
"mp_fadetoblack": "0",
"sv_noclipspeed": "5",
"sv_voiceenable": "1",
"tf_gamemode_cp": "1",
"tf_gamemode_pd": "0",
"tf_gamemode_rd": "0",
"tf_gamemode_sd": "0",
"tf_gamemode_tc": "0",
"metamod_version": "1.12.0-dev+1224V",
"mp_forcerespawn": "1",
"mp_friendlyfire": "0",
"sm_setclass_log": "1",
"tf_beta_content": "0",
"tf_gamemode_ctf": "0",
"tf_gamemode_mvm": "0",
"tf_overtime_nag": "0",
"tf_powerup_mode": "0",
"mp_autocrosshair": "1",
"mp_forceautoteam": "0",
"mp_windifference": "0",
"players_complete": true,
"sm_setclass_chat": "1",
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"tf_gamemode_misc": "0",
"tf_mm_servermode": "0",
"tv_relaypassword": "0",
"r_JeepViewZHeight": "10.0",
"sbchecker_version": "1.6.4",
"sm_tf2idb_version": "0.93",
"sm_vpcheck_custom": "0",
"sourcemod_version": "1.12.0.7230",
"sv_specaccelerate": "5",
"tf_ctf_bonus_time": "0",
"tf_gamemode_arena": "0",
"tf_spells_enabled": "0",
"mp_autoteambalance": "1",
"mp_holiday_nogifts": "0",
"mp_respawnwavetime": "10",
"sm_vpcheck_enabled": "1",
"sv_wateraccelerate": "10",
"tf_arena_use_queue": "1",
"tf_medieval_autorp": "1",
"mp_stalemate_enable": "0",
"r_VehicleViewDampen": "1",
"sm_helpmenu_version": "0.3",
"sm_setclass_version": "1.2.2",
"sm_tpcookie_version": "1.3.5",
"sourcecomms_version": "1.6.4",
"sv_noclipaccelerate": "5",
"tf_allow_player_use": "1",
"tf_arena_max_streak": "3",
"tf_arena_round_time": "0",
"tf_gamemode_payload": "0",
"tf_max_charge_speed": "750",
"tf_weapon_criticals": "0",
"fb_respawner_version": "1.1.0",
"mp_windifference_min": "0",
"r_AirboatViewZHeight": "0.0",
"r_JeepViewDampenDamp": "1.0",
"r_JeepViewDampenFreq": "7.0",
"sv_vote_quorum_ratio": "0.6",
"tf_arena_first_blood": "0",
"tf_arena_force_class": "0",
"tf_gamemode_passtime": "0",
"tf_mvm_death_penalty": "0",
"mp_scrambleteams_auto": "1",
"tf_arena_change_limit": "1",
"tf_force_holidays_off": "0",
"tf_gamemode_community": "0",
"tf_passtime_ball_mass": "1.0f",
"mp_stalemate_meleeonly": "0",
"sm_paranoia_ip_version": "1.0.2",
"tf_arena_preround_time": "10",
"tf_passtime_ball_model": "models/passtime/ball/passtime_ball.mdl",
"tf_passtime_pack_range": "512",
"tf_passtime_pack_speed": "1",
"tf_passtime_save_stats": "0",
"fb_respawner_minplayers": "12",
"mp_tournament_readymode": "0",
"mp_tournament_stopwatch": "1",
"r_AirboatViewDampenDamp": "1.0",
"r_AirboatViewDampenFreq": "7.0",
"sm_sourcesleuth_version": "1.6.4",
"sv_registration_message": "No account specified",
"tf_damage_disablespread": "1",
"tf_spawn_glows_duration": "10",
"mp_disable_respawn_times": "1",
"sm_empty_restart_version": "2.2",
"sm_observerpoint_version": "1.0.100",
"sv_maxusrcmdprocessticks": "24",
"tf_passtime_flinch_boost": "0",
"tf_passtime_throwarc_spy": "0.0f",
"mp_match_end_at_timelimit": "0",
"sm_advertisements_version": "2.1.1",
"tf_passtime_throwarc_pyro": "0.1f",
"tf_weapon_criticals_melee": "0",
"sm_fakedownloadurl_version": "1.0",
"sm_log_connections_version": "1.1",
"sv_registration_successful": "0",
"tf_mvm_defenders_team_size": "6",
"tf_passtime_score_crit_sec": "5.0f",
"tf_passtime_steal_on_melee": "1",
"tf_passtime_throwarc_heavy": "0.175f",
"tf_passtime_throwarc_medic": "0.0f",
"tf_passtime_throwarc_scout": "0.1f",
"tf_passtime_throwspeed_spy": "900.0f",
"tf_use_fixed_weaponspreads": "1",
"mp_tournament_readymode_min": "2",
"tf_allow_player_name_change": "1",
"tf_mvm_min_players_to_start": "3",
"tf_passtime_ball_reset_time": "15",
"tf_passtime_ball_seek_range": "128",
"tf_passtime_ball_takedamage": "1",
"tf_passtime_pack_hp_per_sec": "2.0f",
"tf_passtime_throwarc_sniper": "0.0f",
"tf_passtime_throwspeed_pyro": "750.0f",
"tf_passtime_scores_per_round": "5",
"tf_passtime_throwarc_demoman": "0.15f",
"tf_passtime_throwarc_soldier": "0.1f",
"tf_passtime_throwspeed_heavy": "850.0f",
"tf_passtime_throwspeed_medic": "900.0f",
"tf_passtime_throwspeed_scout": "700.0f",
"sm_empty_restart_player_quota": "1",
"tf_passtime_mode_homing_speed": "1000.0f",
"tf_passtime_overtime_idle_sec": "5",
"tf_passtime_throwarc_engineer": "0.2f",
"tf_passtime_throwspeed_sniper": "900.0f",
"tf_passtime_ball_damping_scale": "0.01f",
"tf_passtime_ball_inertia_scale": "1.0f",
"tf_passtime_ball_sphere_radius": "7.2f",
"tf_passtime_powerball_decaysec": "4.5f",
"tf_passtime_throwspeed_demoman": "850.0f",
"tf_passtime_throwspeed_soldier": "800.0f",
"tf_passtime_experiment_autopass": "0",
"tf_passtime_experiment_telepass": "0",
"tf_passtime_powerball_threshold": "80",
"tf_passtime_teammate_steal_time": "45",
"tf_passtime_throwspeed_engineer": "850.0f",
"tf_passtime_experiment_instapass": "0",
"tf_passtime_mode_homing_lock_sec": "1.5f",
"tf_passtime_powerball_passpoints": "25",
"mp_tournament_readymode_countdown": "5",
"mp_tournament_readymode_team_size": "6",
"tf_arena_override_cap_enable_time": "-1",
"tf_passtime_ball_drag_coefficient": "0.01f",
"tf_passtime_ball_rotdamping_scale": "1.0f",
"tf_passtime_ball_sphere_collision": "1",
"tf_passtime_ball_takedamage_force": "800.0f",
"tf_passtime_powerball_decay_delay": "10",
"tf_passtime_powerball_decayamount": "1",
"tf_passtime_ball_seek_speed_factor": "3f",
"tf_passtime_powerball_airtimebonus": "40",
"mp_scrambleteams_auto_windifference": "2",
"tf_passtime_player_reticles_enemies": "1",
"tf_passtime_player_reticles_friends": "2",
"tf_server_identity_disable_quickplay": "0",
"tf_passtime_powerball_maxairtimebonus": "100",
"tf_passtime_throwspeed_velocity_scale": "0.33f",
"tf_passtime_powerball_decaysec_neutral": "1.5f",
"tf_passtime_experiment_instapass_charge": "0",
"tf_passtime_speedboost_on_get_ball_time": "2.0f",
"tf_halloween_allow_truce_during_boss_event": "0",
"steam_id": "85568392936305607",
"domain": null,
"id": 16662345,
"ip": "115.73.7.91",
"port": 27016,
"query": 27016,
"project_id": null,
"color": 0,
"city": "Хошимин",
"description": null,
"game": 440,
"boosts": 1,
"last_offline": 1789662062,
"last_online": 1789716798,
"icon": null,
"name": "Viet Pub Server",
"connect": "115.73.7.91:27016",
"request": "115.73.7.91:27016",
"map": "koth_harvest_final",
"gamemode": "Team Fortress",
"version": "10828683",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "VN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1789662062,
"last_update": 1789716798,
"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": 2445,
"language": "vi",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16662345");
$data = json_decode($json, true);
var_dump($data);