API для CSM.Dev
JSON для программ, сайтов и прочего
text
json
{
"response": {
"coop": "0",
"sv_aim": "0",
"pausable": "0",
"sv_bounce": "1",
"sv_cheats": "0",
"deathmatch": "1",
"listentype": "d",
"mp_buytime": "1.5",
"mp_c4timer": "45",
"mp_logfile": "1",
"sv_alltalk": "0",
"sv_contact": "",
"sv_gravity": "800",
"sv_maxrate": "0",
"sv_minrate": "0",
"sv_proxies": "1",
"sv_restart": "0",
"amx_nextmap": "dm_deepwater",
"environment": "l",
"gal_version": "v5.9.1-926",
"mp_autokick": "1",
"mp_chattime": "10.000000",
"mp_playerid": "0",
"mp_timeleft": "0",
"mp_tkpunish": "0",
"mp_winlimit": "0",
"sv_friction": "4",
"sv_maxspeed": "900",
"sv_password": "0",
"sv_stepsize": "18",
"a2s_protocol": 48,
"amx_language": "en",
"amx_timeleft": "10:23",
"edgefriction": "2",
"hostage_stop": "0",
"mp_footsteps": "1",
"mp_fragsleft": "0",
"mp_logdetail": "0",
"mp_maxrounds": "0",
"mp_roundtime": "5",
"mp_timelimit": "20",
"sv_logblocks": "0",
"sv_stopspeed": "75",
"sv_uploadmax": "0.5",
"hostage_debug": "0",
"mp_flashlight": "0",
"mp_freezetime": "6",
"mp_limitteams": "2",
"mp_startmoney": "800",
"sv_accelerate": "5",
"decalfrequency": "30",
"mp_consistency": "1",
"mp_fadetoblack": "0",
"mp_forcecamera": "0",
"mp_kickpercent": "0.66",
"mp_logmessages": "1",
"sv_allowupload": "0",
"sv_clienttrace": "1",
"sv_voiceenable": "1",
"amxmodx_version": "1.8.2",
"max_queries_sec": "1",
"metamod_version": "1.21.1-am",
"mp_friendlyfire": "0",
"mp_mapvoteratio": "0.66",
"mp_mirrordamage": "0",
"sv_restartround": "0",
"allow_spectators": "1.0",
"gal_mapcyclefile": "mapcycle.txt",
"humans_join_team": "any",
"mp_allowmonsters": "0",
"mp_forcechasecam": "0",
"mp_infinite_ammo": "0",
"mp_windifference": "1",
"players_complete": true,
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"_tutor_look_angle": "10",
"mp_ghostfrequency": "0.1",
"mp_hostagepenalty": "13",
"_tutor_debug_level": "0",
"max_queries_window": "1",
"mp_autoteambalance": "1",
"sv_wateraccelerate": "10",
"_tutor_examine_time": "0.5",
"mp_autokick_timeout": "-1",
"_tutor_look_distance": "200",
"_tutor_view_distance": "1000",
"amx_client_languages": "1",
"_tutor_message_repeats": "5",
"max_queries_sec_global": "1",
"mp_scoreboard_showmoney": "3",
"mp_scoreboard_showhealth": "3",
"_tutor_hint_interval_time": "10.0",
"_tutor_bomb_viewable_check_interval": "0.5",
"_tutor_message_minimum_display_time": "1",
"_tutor_message_character_display_time_coefficient": "0.07",
"steam_id": "90290410401268750",
"domain": null,
"id": 14669502,
"ip": "24.184.52.247",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Парсиппани",
"description": null,
"game": 10,
"boosts": 1,
"last_offline": 1789586423,
"last_online": 1789726999,
"icon": null,
"name": "CSM.Dev",
"connect": "24.184.52.247:27015",
"request": "24.184.52.247:27015",
"map": "cs_krustykrab",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1788555279,
"last_update": 1789726999,
"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": 9006,
"language": null,
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14669502");
$data = json_decode($json, true);
var_dump($data);