API для Quackers
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794124076,
"app": {
"id": 1564980,
"name": "Motor Town: Behind The Wheel",
"steam_id": 1369670,
"url": "motor-town-behind-the-wheel"
},
"color": 0,
"connect": "199.115.76.21:9115",
"country": "US",
"domain": null,
"game": 1369670,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19811328,
"ip": "199.115.76.21",
"language": "en",
"last_update": 1794781530,
"map": null,
"maxplayers": 10,
"name": "Quackers",
"numplayers": 0,
"official": null,
"points": 30,
"port": 9115,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 9116,
"request": "199.115.76.21:9116",
"secured": true,
"status": true,
"steam_id": "90296985379621899",
"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": 1794781530,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 232,
"wipe_period": null,
"FPS_i": "62",
"GDH_i": "-1392028285",
"GDVF_i": "31",
"P2PADDR": "90296985379621899",
"P2PPORT": "9115",
"GDH_BT_i": "922577932",
"GDH_VP_i": "-569429124",
"CONMETHOD": "P2P",
"GDH_CVar_i": "1515166748",
"GDH_Item_i": "-376766042",
"OWNINGNAME": "90296985379621899",
"listentype": "d",
"GDH_Cargo_i": "-1264098795",
"environment": "l",
"MTGameType_i": "1",
"SESSIONFLAGS": "41",
"a2s_protocol": 17,
"MTNumPlayers_i": "0",
"MTServerGuid_s": "B6EDD0CF450A8F63476DE4A9B894A28D",
"players_complete": true,
"AllowCorporation_b": "true",
"AllowModdedVehicle_b": "false",
"AllowCompanyAIDriver_b": "true",
"MTServerPasswordHash_s": "EF4AFA427B9365CC96D75F93F552CCF50C481606F7CB5018E325D5FF11EA1EEA5ED156DCAF306D44C5DE6E3B89385100",
"AllowPoliceVehicleByPlayerRole_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19811328");
$data = json_decode($json, true);
var_dump($data);