API для KoToRarkness Server Test
JSON для программ, сайтов и прочего
text
json
{
"response": {
"": "",
"ib_debug": "0",
"deathcheck": "1",
"listentype": "d",
"environment": "w",
"sv_maxspeed": "1000.000000",
"a2s_protocol": 7,
"ib_evade_charge": "1",
"l4d2_ais_version": "1.1",
"players_complete": true,
"ib_witchbehavior_a": "",
"l4d_hp_laser_alpha": "240",
"l4d_survivor_limit": "4",
"director_si_hpmulti": "0.00",
"l4d_hp_laser_height": "7.0",
"l4d_flashlight_hints": "0",
"command_buffer_version": "2.10",
"sm_tank_explode_radius": "400.0",
"weaponhandling_version": "1.0.7",
"sm_lastboss_enable_warp": "0",
"sm_lastboss_speed_fifth": "1.0",
"sm_restart_empty_method": "3",
"l4d2_item_hint_mark_dead": "0",
"sm_lastboss_force_second": "1200",
"ib_takecoverfromtankrocks": "1",
"sm_lastboss_health_fourth": "15000",
"l4d2_guncontrol_chainsawfuel": "30",
"l4d2_infected_marker_si_flag": "127",
"l4d2_smgmp5_reload_clip_time": "1.7",
"l4d_multislots_max_survivors": "10",
"l4d2_survivor_mourn_fix_death": "1",
"l4d2_infected_marker_use_range": "3000",
"l4d2_spawn_uncommons_autotypes": "64",
"sm_lastboss_health_fifth_normal": "8000",
"ib_grab_nohumans_rangemultiplier": "2.0",
"l4d_survivorrespawn_secondweapon": "0",
"L4D2_FriendlyFireController_enable": "1",
"l4d2_spot_marker_ring_start_radius": "35.0",
"l4d2_guncontrol_grenadelauncherammo": "19",
"l4d2_snipermilitary_reload_clip_time": "1.8",
"l4d2_item_marker_instructorhint_enable": "1",
"l4d2_infected_marker_instructorhint_icon": "icon_skull",
"l4d2_statpersist_purge_equip_on_first_map": "0",
"it_director_special_battlefield_respawn_interval": "10.0",
"steam_id": null,
"domain": null,
"id": 16649953,
"ip": "121.103.36.2",
"port": 27017,
"query": 27017,
"project_id": null,
"color": 0,
"city": "Hyogo-ku",
"description": null,
"game": 550,
"boosts": 1,
"last_offline": 1789748580,
"last_online": 1789735948,
"icon": null,
"name": "KoToRarkness Server Test",
"connect": "121.103.36.2:27017",
"request": "121.103.36.2:27017",
"map": "tumtara_2015",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1789647724,
"last_update": 1789748580,
"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": 24135,
"language": "ja",
"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/16649953");
$data = json_decode($json, true);
var_dump($data);