API для Valve Left4Dead 2 Hong Kong Server (srcds1029-hkg1.141.71)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"god": "0",
"coop": "0",
"buddha": "0",
"sv_tags": "",
"nextlevel": "",
"sv_bounce": "0",
"sv_cheats": "0",
"tv_enable": "0",
"deathmatch": "1",
"listentype": "d",
"mp_c4timer": "45",
"sv_alltalk": "0",
"sv_contact": "",
"sv_gravity": "800",
"environment": "l",
"mp_teamlist": "hgrunt;scientist",
"mp_teamplay": "0",
"mp_winlimit": "0",
"sv_friction": "4",
"sv_maxspeed": "1000.000000",
"sv_password": "0",
"sv_stepsize": "18",
"tv_password": "0",
"a2s_protocol": 17,
"mp_allowNPCs": "1",
"mp_footsteps": "1",
"mp_fraglimit": "0",
"mp_maxrounds": "0",
"mp_roundtime": "5",
"mp_timelimit": "0",
"sv_footsteps": "1",
"sv_rollangle": "0",
"sv_rollspeed": "200",
"sv_specspeed": "3",
"sv_stopspeed": "75",
"mp_falldamage": "0",
"mp_flashlight": "1",
"mp_freezetime": "6",
"mp_limitteams": "2",
"mp_tournament": "0",
"mp_weaponstay": "0",
"sv_accelerate": "5",
"sv_specnoclip": "1",
"sv_steamgroup": "",
"decalfrequency": "10",
"mp_fadetoblack": "0",
"survivor_limit": "4",
"sv_noclipspeed": "5",
"sv_voiceenable": "1",
"tauntfrequency": "1",
"mp_forcerespawn": "1",
"mp_friendlyfire": "1",
"mp_autocrosshair": "1",
"players_complete": true,
"sv_airaccelerate": "10",
"sv_waterfriction": "1",
"tv_relaypassword": "0",
"r_JeepViewZHeight": "10.0",
"sv_noclipfriction": "4",
"sv_specaccelerate": "5",
"mp_autoteambalance": "1",
"sv_wateraccelerate": "10",
"mp_stalemate_enable": "0",
"r_VehicleViewDampen": "1",
"sv_noclipaccelerate": "5",
"tf_arena_max_streak": "5",
"tf_arena_round_time": "0",
"director_afk_timeout": "45",
"r_AirboatViewZHeight": "0.0",
"r_JeepViewDampenDamp": "1.0",
"r_JeepViewDampenFreq": "7.0",
"tf_arena_preround_time": "10",
"r_AirboatViewDampenDamp": "1.0",
"r_AirboatViewDampenFreq": "7.0",
"mp_disable_respawn_times": "0",
"mp_teams_unbalance_limit": "1",
"mp_stalemate_at_timelimit": "0",
"steam_id": "90292968844596230",
"domain": null,
"id": 888850,
"ip": "103.28.54.213",
"port": 27085,
"query": 27085,
"project_id": null,
"color": 0,
"city": "Ha Kwai Chung",
"description": "",
"game": 550,
"boosts": 1,
"last_offline": 1789579808,
"last_online": 1789726296,
"icon": null,
"name": "Valve Left4Dead 2 Hong Kong Server (srcds1029-hkg1.141.71)",
"connect": "103.28.54.213:27085",
"request": "103.28.54.213:27085",
"map": "c1m1_hotel",
"gamemode": "Left 4 Dead 2",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "HK",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684709797,
"last_update": 1789726296,
"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": 2056,
"language": "zh",
"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/888850");
$data = json_decode($json, true);
var_dump($data);