API для 小阳菜纯净战役8服
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790795034,
"app": {
"id": 11,
"name": "Left 4 Dead 2",
"steam_id": 550,
"url": "left-4-dead-2"
},
"color": 0,
"connect": "171.36.161.52:8888",
"country": "CN",
"domain": null,
"game": 550,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17538464,
"ip": "171.36.161.52",
"language": "zh",
"last_update": 1791030840,
"map": "c2m2_fairgrounds",
"maxplayers": 18,
"name": "小阳菜纯净战役8服",
"numplayers": 0,
"official": null,
"points": 0,
"port": 8888,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 8888,
"request": "171.36.161.52:8888",
"secured": false,
"status": false,
"steam_id": null,
"version": "2.2.4.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Лючжоу",
"description": null,
"disabled_modules": [],
"gamemode": "生存之旅 3",
"hidden": false,
"last_offline": 1791030840,
"last_online": 1790880868,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 21507,
"wipe_period": null,
"": "",
"listentype": "d",
"LimitPlayer": "1",
"environment": "l",
"sv_maxspeed": "1000.000000",
"a2s_protocol": 7,
"st_modes_off": "",
"sv_rollangle": "0",
"tauntfrequency": "1",
"bots_give_slot0": "131071",
"bots_give_slot1": "1064",
"bots_give_slot2": "0",
"bots_give_slot3": "1",
"bots_give_slot4": "3",
"notify_map_next": "1",
"ShowGametimeMode": "2",
"players_complete": true,
"l4d2_more_medical": "7",
"itemstats_interval": "0",
"sm_defib_bots_versi": "",
"r_AirboatViewZHeight": "0.0",
"l4d_unreserve_trigger": "4",
"command_buffer_version": "2.8",
"l4d2_initialgundefault": "1",
"weaponhandling_version": "1.0.6",
"L4D2_FriendDamage_Debug": "0",
"l4d2_Kill_inf_Healthoff": "1",
"l4d2_vote_target_player": "0",
"l4d_gear_transfer_allow": "1",
"l4d2_item_hint_mark_dead": "0",
"l4d2_survivor_marker_fov": "15.0",
"sm_skill_drawcrown_damage": "500",
"l4d_gear_transfer_dist_give": "150.0",
"l4d2_broadcast_don_black_gun": "1",
"l4d2_infected_marker_si_flag": "127",
"l4d2_inputkill_block_version": "1.1a",
"l4d2_movablemachinegun_block": "0",
"l4d_gear_transfer_timer_grab": "0.5",
"l4d2_infectedhp_zmykey_hunter": "1",
"l4d2_infected_marker_use_range": "1000",
"l4d_explosion_announcer_gascan": "1",
"l4d_throwable_announcer_pipebomb": "1",
"mapchanger_finale_random_nextmap": "0",
"l4d2_Kill_inf_health_Infected_shot": "3",
"l4d2_item_marker_instructorhint_enable": "1",
"l4d2_infected_marker_instructorhint_icon": "icon_skull",
"l4d2_ammo_set_enabled_ammo_sniperrifleammo": "360",
"l4d2_Kill_inf_health_ammo_grenadelauncher_head": "1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17538464");
$data = json_decode($json, true);
var_dump($data);