API для >> TEST SERVER
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1737741606,
"app": {
"id": 5,
"name": "Counter-Strike: Source",
"steam_id": 240,
"url": "counter-strike-source"
},
"color": 0,
"connect": "62.122.215.240:27015",
"country": "RU",
"domain": null,
"game": 240,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 7411697,
"ip": "62.122.215.240",
"language": "ru",
"last_update": 1790262740,
"map": "zm_opt_arena_v2",
"maxplayers": 32,
"name": ">> TEST SERVER",
"numplayers": 0,
"official": null,
"points": 90,
"port": 27015,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "62.122.215.240:27015",
"secured": true,
"status": true,
"steam_id": null,
"version": "1.0.0.34",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 20,
"city": "Москва",
"description": "[{\"id\":\"4EjsahLuyV\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сетка серверов magicreborn.ru\"}}]",
"disabled_modules": [],
"gamemode": "Counter-Strike: Source",
"hidden": false,
"last_offline": 1789656020,
"last_online": 1790262740,
"list_hidden": false,
"map_url": null,
"mods": [
{
"id": 379,
"name": "VIP"
},
{
"id": 436,
"name": "Weapon Skins"
},
{
"id": 425,
"name": "Knife"
}
],
"next_wipe": null,
"parked": false,
"position_game": 41,
"wipe_period": null,
"coop": "0",
"sv_tags": "100tick",
"nextlevel": "",
"sv_bounce": "0",
"sv_cheats": "1",
"deathmatch": "1",
"listentype": "d",
"mp_c4timer": "30",
"sm_nextmap": "zm_opt_arena_v2",
"sv_alltalk": "0",
"sv_contact": "",
"sv_gravity": "800",
"environment": "l",
"mp_teamlist": "hgrunt,scientist",
"mp_teamplay": "0",
"sv_friction": "4",
"sv_maxspeed": "240",
"sv_password": "1",
"sv_pausable": "0",
"sv_stepsize": "18",
"tv_password": "0",
"wcs_effects": "1.4.02",
"a2s_protocol": 7,
"mp_allowNPCs": "1",
"mp_footsteps": "1",
"mp_fraglimit": "0",
"mp_maxrounds": "0",
"mp_roundtime": "1",
"mp_timelimit": "150",
"sv_footsteps": "1",
"sv_rollangle": "0",
"sv_rollspeed": "200",
"sv_specspeed": "3",
"sv_stopspeed": "75",
"mp_falldamage": "1",
"mp_flashlight": "1",
"mp_freezetime": "1",
"mp_limitteams": "0",
"mp_weaponstay": "0",
"sv_accelerate": "5",
"sv_specnoclip": "1",
"decalfrequency": "60",
"sv_noclipspeed": "5",
"sv_voiceenable": "1",
"metamod_version": "1.12.0-dev+1159V",
"mp_forcerespawn": "1",
"mp_friendlyfire": "1",
"metamod_platform": "2.ep1",
"mp_autocrosshair": "0",
"players_complete": true,
"stripper_version": "1.2.2",
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"tv_relaypassword": "0",
"clientmod_private": "0",
"clientmod_version": "1.7.0",
"mp_hostagepenalty": "4",
"r_JeepViewZHeight": "10.0",
"sm_tempent_filter": "Footprint Decal,Blood Stream",
"sm_tempent_listen": "",
"sourcemod_version": "1.11.0.6902",
"sv_specaccelerate": "5",
"mp_autoteambalance": "0",
"sm_tempent_logging": "0",
"sm_tempent_version": "1.5",
"sourcemod_platform": "2.ep1",
"sv_wateraccelerate": "10",
"r_VehicleViewDampen": "1",
"sv_noclipaccelerate": "5",
"r_AirboatViewZHeight": "0.0",
"r_JeepViewDampenDamp": "1.0",
"r_JeepViewDampenFreq": "7.0",
"sm_input_hooks_filter": "",
"sm_input_hooks_listen": "",
"sm_input_hooks_logging": "0",
"sm_input_hooks_version": "1.9",
"r_AirboatViewDampenDamp": "1.0",
"r_AirboatViewDampenFreq": "7.0",
"zombie_original_version": "0.1",
"sm_antistucknoblock_version": "1.1",
"sm_weapon_attachment_api_version": "1.1.1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/7411697");
$data = json_decode($json, true);
var_dump($data);