API для cedapug.com B19
JSON для программ, сайтов и прочего
text
json
{
"response": {
"god": "0",
"coop": "0",
"buddha": "0",
"sv_tags": "confogl,gravity",
"nextlevel": "",
"sv_bounce": "0",
"sv_cheats": "0",
"tv_enable": "1",
"deathmatch": "1",
"listentype": "d",
"mp_c4timer": "45",
"sm_nextmap": "",
"sv_alltalk": "0",
"sv_contact": "",
"sv_gravity": "750",
"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_maxplayers": "10",
"sv_specnoclip": "1",
"sv_steamgroup": "41777148",
"decalfrequency": "10",
"mp_fadetoblack": "0",
"survivor_limit": "4",
"sv_noclipspeed": "5",
"sv_voiceenable": "1",
"tauntfrequency": "1",
"metamod_version": "1.12.0-dev+1194V",
"mp_forcerespawn": "1",
"mp_friendlyfire": "1",
"mp_autocrosshair": "1",
"players_complete": true,
"stripper_version": "1.2.2",
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"tv_relaypassword": "0",
"r_JeepViewZHeight": "10.0",
"sourcemod_version": "1.12.0.7230",
"sv_noclipfriction": "4",
"sv_specaccelerate": "5",
"mp_autoteambalance": "0",
"sm_aidmgfix_enable": "3",
"sv_wateraccelerate": "10",
"l4d2_addons_eclipse": "0",
"left4dhooks_version": "1.166",
"mp_stalemate_enable": "0",
"r_VehicleViewDampen": "1",
"stop_trolls_version": "1.2",
"sv_force_unreserved": "0",
"sv_noclipaccelerate": "5",
"tf_arena_max_streak": "5",
"tf_arena_round_time": "0",
"director_afk_timeout": "45",
"l4d2_spit_max_flames": "10",
"l4d_skip_intro_allow": "1",
"l4d_skip_intro_modes": "",
"r_AirboatViewZHeight": "0.0",
"r_JeepViewDampenDamp": "1.0",
"r_JeepViewDampenFreq": "7.0",
"l4d2_spit_prop_damage": "10.0",
"command_buffer_version": "2.9",
"l4d_skip_intro_version": "1.13",
"tf_arena_preround_time": "10",
"l4d2_car_alarm_settings": "3",
"l4d2_car_alarm_touch_ai": "0",
"l4d_pistol_delay_single": "0.175000",
"r_AirboatViewDampenDamp": "1.0",
"r_AirboatViewDampenFreq": "7.0",
"block_rocketjump_version": "1.5",
"l4d_console_spam_version": "1.3b",
"l4d_pistol_delay_dualies": "0.1",
"l4d_skip_intro_modes_off": "",
"l4d_skip_intro_modes_tog": "0",
"l4d_votepoll_fix_version": "1.3",
"mp_disable_respawn_times": "0",
"mp_teams_unbalance_limit": "1",
"l4d2_spit_spread_saferoom": "0",
"l4d2_spit_water_collision": "0",
"mp_stalemate_at_timelimit": "0",
"l4d2_car_alarm_touch_capped": "1",
"l4d2_deathspit_trace_height": "240.0",
"l4d2_scvng_firsthit_shuffle": "0",
"l4d2_script_cmd_swap_version": "1.0",
"l4d2_fix_deathfall_cam_version": "1.6",
"steam_id": "90292961615879187",
"domain": null,
"id": 9719628,
"ip": "149.56.29.182",
"port": 27039,
"query": 27039,
"project_id": null,
"color": 0,
"city": "Монреаль",
"description": null,
"game": 550,
"boosts": 1,
"last_offline": 1789687315,
"last_online": 1789712267,
"icon": null,
"name": "cedapug.com B19",
"connect": "149.56.29.182:27039",
"request": "149.56.29.182:27039",
"map": "c9m1_alleys",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 79,
"add_date": 1752139553,
"last_update": 1789712267,
"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": 689,
"language": "en",
"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/9719628");
$data = json_decode($json, true);
var_dump($data);