API для German Driving City | Drive & Work | #German & English#
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794572237,
"app": {
"id": 1564980,
"name": "Motor Town: Behind The Wheel",
"steam_id": 1369670,
"url": "motor-town-behind-the-wheel"
},
"color": 0,
"connect": "176.57.134.23:28700",
"country": "DE",
"domain": null,
"game": 1369670,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20074631,
"ip": "176.57.134.23",
"language": "de",
"last_update": 1794741984,
"map": null,
"maxplayers": 45,
"name": "German Driving City | Drive & Work | #German & English#",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28700,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28715,
"request": "176.57.134.23:28715",
"secured": true,
"status": true,
"steam_id": "90297500459114503",
"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": 1794741984,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 237,
"wipe_period": null,
"FPS_i": "0",
"GDH_i": "-1392028285",
"GDVF_i": "31",
"P2PADDR": "90297500459114503",
"P2PPORT": "28700",
"GDH_BT_i": "922577932",
"GDH_VP_i": "-569429124",
"CONMETHOD": "P2P",
"GDH_CVar_i": "1515166748",
"GDH_Item_i": "-376766042",
"OWNINGNAME": "90297500459114503",
"listentype": "d",
"GDH_Cargo_i": "-1264098795",
"environment": "w",
"MTGameType_i": "1",
"SESSIONFLAGS": "553",
"a2s_protocol": 17,
"MTNumPlayers_i": "0",
"MTServerGuid_s": "0F86E62C44AA2E70125C1AA0670EF00B",
"players_complete": true,
"AllowCorporation_b": "true",
"AllowModdedVehicle_b": "false",
"AllowCompanyAIDriver_b": "true",
"AllowPoliceVehicleByPlayerRole_b": "false"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20074631");
$data = json_decode($json, true);
var_dump($data);