API для Garry's Mod | DEV #1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"coop": "0",
"atmos_log": "0",
"nextlevel": "",
"sv_bounce": "0",
"sv_cheats": "0",
"ttt_haste": "1",
"ttt_karma": "1",
"tv_enable": "0",
"deathmatch": "1",
"listentype": "d",
"lua_strict": "0",
"sv_alltalk": "0",
"sv_gravity": "600",
"ai_disabled": "0",
"environment": "l",
"mp_teamplay": "0",
"sbox_noclip": "0",
"sv_friction": "8",
"sv_maxspeed": "10000",
"sv_password": "1",
"sv_pausable": "0",
"sv_stepsize": "18",
"tv_password": "0",
"a2s_protocol": 17,
"atmos_paused": "0",
"mp_footsteps": "1",
"mp_timelimit": "0",
"sbox_godmode": "0",
"sbox_maxnpcs": "0",
"sbox_persist": "",
"sbox_weapons": "1",
"sv_footsteps": "1",
"sv_rollangle": "0",
"sv_rollspeed": "200",
"sv_specspeed": "3",
"sv_stopspeed": "10",
"atmos_enabled": "1",
"atmos_weather": "1",
"mp_falldamage": "0",
"mp_flashlight": "1",
"mp_weaponstay": "0",
"sbox_maxlamps": "5",
"sbox_maxprops": "50",
"sbox_maxsents": "0",
"stacker_delay": "0.7",
"sv_accelerate": "10",
"sv_allowcslua": "1",
"sv_specnoclip": "1",
"sv_steamgroup": "",
"M9KDefaultClip": "-1",
"M9KUniqueSlots": "1",
"M9KWeaponStrip": "0",
"atmos_realtime": "0",
"decalfrequency": "10",
"sbox_maxlights": "5",
"sbox_maxwheels": "0",
"sv_noclipspeed": "5",
"sv_voiceenable": "1",
"physgun_limited": "0",
"sbox_maxbuttons": "5",
"sbox_maxcameras": "10",
"sbox_maxeffects": "0",
"ttt_round_limit": "6",
"ttt_traitor_max": "32",
"ttt_traitor_pct": "0.250000",
"M9KDynamicRecoil": "1",
"ai_ignoreplayers": "0",
"mp_weaponrespawn": "0",
"physgun_maxrange": "4096",
"players_complete": true,
"sbox_maxballoons": "0",
"sbox_maxdynamite": "5",
"sbox_maxemitters": "0",
"sbox_maxragdolls": "0",
"sbox_maxvehicles": "5",
"sv_airaccelerate": "1000",
"sv_waterfriction": "1",
"ttt_postround_dm": "0",
"tv_relaypassword": "0",
"M9KAmmoDetonation": "1",
"atmos_snowenabled": "1",
"r_JeepViewZHeight": "10.0",
"sbox_maxthrusters": "0",
"ss_enable_rainbow": "1",
"ss_max_characters": "0",
"stacker_max_count": "5",
"sv_specaccelerate": "5",
"ttt_detective_max": "32",
"ttt_detective_pct": "0.130000",
"ttt_firstpreptime": "60",
"sbox_bonemanip_npc": "1",
"sbox_maxhoverballs": "0",
"sv_wateraccelerate": "10",
"ttt_detective_hats": "1",
"DavyCrockettAllowed": "1",
"M9KClientGasDisable": "0",
"M9KDamageMultiplier": "1",
"r_VehicleViewDampen": "0",
"sbox_bonemanip_misc": "0",
"sbox_maxconstraints": "2000",
"sbox_maxtextscreens": "2",
"sensor_debugragdoll": "0",
"stacker_max_offsetx": "500",
"stacker_max_offsety": "500",
"stacker_max_offsetz": "500",
"stacker_stayinworld": "0",
"sv_noclipaccelerate": "5",
"toolmode_allow_axis": "1",
"toolmode_allow_lamp": "1",
"toolmode_allow_rope": "1",
"toolmode_allow_weld": "1",
"ttt_namechange_kick": "1",
"ttt_ragdoll_pinning": "1",
"DavyCrocketAdminOnly": "0",
"M9KExplosiveNerveGas": "1",
"r_AirboatViewZHeight": "0.0",
"r_JeepViewDampenDamp": "1.0",
"r_JeepViewDampenFreq": "7.0",
"toolmode_allow_light": "1",
"toolmode_allow_motor": "1",
"toolmode_allow_paint": "1",
"toolmode_allow_wheel": "1",
"toolmode_allow_winch": "1",
"ttt_credits_starting": "2",
"ttt_debug_preventwin": "0",
"ttt_posttime_seconds": "30",
"ttt_preptime_seconds": "30",
"M9KDisablePenetration": "0",
"sbox_bonemanip_player": "0",
"sensor_stretchragdoll": "0",
"toolmode_allow_button": "1",
"toolmode_allow_camera": "1",
"toolmode_allow_colour": "1",
"toolmode_allow_finger": "1",
"toolmode_allow_muscle": "1",
"toolmode_allow_pulley": "1",
"toolmode_allow_slider": "1",
"toolmode_allow_trails": "1",
"ttt_roundtime_minutes": "10",
"OrbitalStrikeAdminOnly": "0",
"atmos_weather_lighting": "1",
"toolmode_allow_balloon": "1",
"toolmode_allow_creator": "1",
"toolmode_allow_elastic": "1",
"toolmode_allow_emitter": "1",
"toolmode_allow_example": "1",
"toolmode_allow_remover": "1",
"toolmode_allow_stacker": "1",
"ttt_allow_discomb_jump": "0",
"ttt_namechange_bantime": "10",
"ttt_teleport_telefrags": "1",
"ttt_time_limit_minutes": "75",
"M9K_Davy_Crockett_Timer": "3",
"r_AirboatViewDampenDamp": "1.0",
"r_AirboatViewDampenFreq": "7.0",
"sbox_maxropeconstraints": "1000",
"sbox_playershurtplayers": "1",
"toolmode_allow_advdupe2": "1",
"toolmode_allow_dynamite": "1",
"toolmode_allow_eyeposer": "1",
"toolmode_allow_inflator": "1",
"toolmode_allow_material": "1",
"toolmode_allow_physprop": "1",
"toolmode_allow_thruster": "1",
"ttt_detective_karma_min": "600",
"sv_maxusrcmdprocessticks": "24",
"toolmode_allow_faceposer": "1",
"toolmode_allow_hoverball": "1",
"toolmode_allow_hydraulic": "1",
"toolmode_allow_ledscreen": "1",
"toolmode_allow_nocollide": "1",
"toolmode_allow_precision": "1",
"ttt_det_credits_starting": "1",
"sv_report_client_settings": "0",
"toolmode_allow_ballsocket": "1",
"toolmode_allow_duplicator": "1",
"toolmode_allow_editentity": "1",
"toolmode_allow_leafblower": "1",
"toolmode_allow_permaprops": "1",
"toolmode_allow_shareprops": "1",
"toolmode_allow_textscreen": "1",
"ttt_detective_min_players": "8",
"sv_hl2mp_item_respawn_time": "30",
"toolmode_allow_fading_door": "1",
"ttt_haste_starting_minutes": "5",
"ttt_haste_minutes_per_death": "0.500000",
"sv_hl2mp_weapon_respawn_time": "20",
"toolmode_allow_keypad_willox": "1",
"ttt_no_nade_throw_during_prep": "1",
"ttt_ragdoll_pinning_innocents": "0",
"toolmode_allow_ztm_trashspawner": "1",
"toolmode_allow_keypad_willox_wire": "1",
"toolmode_allow_ereport_sitpos_tool": "1",
"steam_id": "85568392936408267",
"domain": null,
"id": 13682584,
"ip": "185.97.255.42",
"port": 27458,
"query": 27458,
"project_id": null,
"color": 0,
"city": "Санкт-Петербург",
"description": null,
"game": 4000,
"boosts": 1,
"last_offline": 1789578149,
"last_online": 1789692648,
"icon": null,
"name": "Garry's Mod | DEV #1",
"connect": "185.97.255.42:27458",
"request": "185.97.255.42:27458",
"map": "rp_bangclaw_colorado_v3",
"gamemode": "DarkRP",
"version": "2026.04.29",
"numplayers": 1,
"maxplayers": 110,
"bots": 0,
"secured": true,
"private": true,
"country": "RU",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1786588291,
"last_update": 1789692648,
"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": 752,
"language": "ru",
"parked": false,
"app": {
"id": 30,
"steam_id": 4000,
"name": "Garry's Mod",
"url": "garrys-mod"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13682584");
$data = json_decode($json, true);
var_dump($data);