API для 咖啡|噬血狂袭#4
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790891577,
"app": {
"id": 11,
"name": "Left 4 Dead 2",
"steam_id": 550,
"url": "left-4-dead-2"
},
"color": 0,
"connect": "14.19.166.135:27034",
"country": "CN",
"domain": null,
"game": 550,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17598255,
"ip": "14.19.166.135",
"language": "zh",
"last_update": 1791040420,
"map": "c11m1_greenhouse",
"maxplayers": 8,
"name": "咖啡|噬血狂袭#4",
"numplayers": 5,
"official": null,
"points": 65,
"port": 27034,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27034,
"request": "14.19.166.135:27034",
"secured": false,
"status": true,
"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": "Left 4 Dead 2",
"hidden": false,
"last_offline": 1790977362,
"last_online": 1791040420,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2684,
"wipe_period": null,
"": "",
"l": "",
"god": "0",
"gdb_mp5": "5",
"gdb_ak47": "5",
"sv_cheats": "0",
"bots_limit": "4",
"listentype": "d",
"environment": "w",
"sv_maxspeed": "1000.000000",
"a2s_protocol": 7,
"mp_allowNPCs": "1",
"sv_rollangle": "0",
"mp_tournament": "0",
"tauntfrequency": "1",
"bots_give_slot0": "131071",
"bots_give_slot1": "4096",
"bots_give_slot2": "0",
"bots_give_slot3": "1",
"bots_give_slot4": "3",
"bots_join_limit": "-1",
"metamod_version": "2.0.0-dev+1375V",
"players_complete": true,
"l4d2_more_medical": "7",
"r_VehicleViewDampen": "1",
"KillHud_CStyleTankXY": "0.0 0.3",
"l4d2_afk_kick_switch": "1",
"l4d2_infectedhp_tank": "1",
"l4d_selfhelp_version": "1.0.1m4",
"r_AirboatViewZHeight": "0.0",
"l4d_selfhelp_durtaion": "1.0",
"l4d2_initialgundefault": "1",
"l4d2_spot_marker_color": "200 200 200",
"weaponhandling_version": "1.0.6",
"l4d2_health_Head_Hunter": "14",
"l4d2_health_Head_Smoker": "12",
"l4d2_health_Kill_Boomer": "4",
"l4d_gear_transfer_allow": "1",
"l4d2_item_hint_mark_dead": "0",
"l4d2_survivor_marker_fov": "15.0",
"l4d_gear_transfer_dist_give": "150.0",
"l4d2_infected_marker_si_flag": "127",
"l4d_gear_transfer_timer_grab": "0.5",
"l4d_gear_transfer_types_grab": "123456789",
"l4d_gear_transfer_types_real": "123456789",
"l4d2_infectedhp_zmykey_hunter": "1",
"l4d2_infectedhp_zmykey_smoker": "1",
"l4d2_infected_marker_use_range": "1000",
"l4d2_enabled_away_timer_specnext": "3.0",
"l4d2_item_marker_instructorhint_enable": "1",
"l4d2_infected_marker_instructorhint_icon": "icon_skull",
"l4d2_ammo_set_enabled_ammo_sniperrifleammo": "999"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17598255");
$data = json_decode($json, true);
var_dump($data);