API для CS_Choronto
JSON для программ, сайтов и прочего
text
json
{
"response": {
"coop": "0",
"sv_aim": "1",
"pausable": "0",
"sv_bounce": "1",
"sv_cheats": "0",
"deathmatch": "1",
"listentype": "d",
"mp_buytime": "1.5",
"mp_c4timer": "45",
"mp_logfile": "1",
"sv_alltalk": "1",
"sv_contact": "",
"sv_gravity": "800",
"sv_maxrate": "25000",
"sv_minrate": "2500",
"sv_proxies": "1",
"sv_restart": "0",
"amx_nextmap": "aim_sk_awp",
"csdm_active": "1",
"environment": "l",
"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": "1",
"sv_stepsize": "18",
"a2s_protocol": 48,
"amx_language": "en",
"amx_timeleft": "19:52",
"csdm_version": "2.1.3c-KWo",
"edgefriction": "2",
"hostage_stop": "0",
"mp_footsteps": "1",
"mp_fragsleft": "0",
"mp_logdetail": "1",
"mp_maxrounds": "0",
"mp_roundtime": "5",
"mp_timelimit": "30",
"sv_logblocks": "0",
"sv_stopspeed": "75",
"sv_uploadmax": "0.5",
"hostage_debug": "0",
"mp_flashlight": "0",
"mp_freeforall": "0",
"mp_freezetime": "0",
"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": "1",
"sv_clienttrace": "1",
"sv_voiceenable": "1",
"amxmodx_version": "1.10.0.5392",
"max_queries_sec": "1",
"metamod_version": "1.21p38",
"mp_friendlyfire": "0",
"mp_mapvoteratio": "0.66",
"mp_mirrordamage": "0",
"sv_restartround": "0",
"allow_spectators": "1.0",
"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": "90071992547409920",
"domain": null,
"id": 11094707,
"ip": "84.16.46.81",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Дунайска-Стреда",
"description": null,
"game": 10,
"boosts": 1,
"last_offline": 1789687227,
"last_online": 1789719372,
"icon": null,
"name": "CS_Choronto",
"connect": "84.16.46.81:27015",
"request": "84.16.46.81:27015",
"map": "aim_sk_aug_sig",
"gamemode": "Counter-Strike",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": true,
"country": "SK",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770028002,
"last_update": 1789719372,
"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": 5011,
"language": "sk",
"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/11094707");
$data = json_decode($json, true);
var_dump($data);