API для Kiki Luka
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794583014,
"app": {
"id": 1564980,
"name": "Motor Town: Behind The Wheel",
"steam_id": 1369670,
"url": "motor-town-behind-the-wheel"
},
"color": 0,
"connect": "92.249.149.63:7777",
"country": "HU",
"domain": null,
"game": 1369670,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20078897,
"ip": "92.249.149.63",
"language": "hu",
"last_update": 1794774371,
"map": null,
"maxplayers": 10,
"name": "Kiki Luka",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "92.249.149.63:27015",
"secured": true,
"status": true,
"steam_id": "90295826228569089",
"version": "0.7.19",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Будапешт",
"description": null,
"disabled_modules": [],
"gamemode": "Unreal Test!",
"hidden": false,
"last_offline": null,
"last_online": 1794774371,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 246,
"wipe_period": null,
"FPS_i": "60",
"GDH_i": "-1392028285",
"GDVF_i": "0",
"P2PADDR": "90295826228569089",
"P2PPORT": "7777",
"GDH_BT_i": "922577932",
"GDH_VP_i": "-569429124",
"CONMETHOD": "P2P",
"GDH_CVar_i": "1515166748",
"GDH_Item_i": "-376766042",
"OWNINGNAME": "90295826228569089",
"listentype": "d",
"GDH_Cargo_i": "-1264098795",
"environment": "w",
"MTGameType_i": "1",
"SESSIONFLAGS": "41",
"a2s_protocol": 17,
"MTNumPlayers_i": "0",
"MTServerGuid_s": "8AF749F8484A8B5D6E78EF9535C08D24",
"players_complete": true,
"AllowCorporation_b": "true",
"AllowModdedVehicle_b": "false",
"AllowCompanyAIDriver_b": "true",
"MTServerPasswordHash_s": "C20F21E4C5E6F071C7BE3FFF1EE9CD8F1345C66B12DE5F4C266A381CD83993B2599CC1AD9FC43668C78B438715891ECF",
"AllowPoliceVehicleByPlayerRole_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20078897");
$data = json_decode($json, true);
var_dump($data);