API для Hello and Welcome 2 (Test Branch)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1772229623,
"app": {
"id": 1564980,
"name": "Motor Town: Behind The Wheel",
"steam_id": 1369670,
"url": "motor-town-behind-the-wheel"
},
"color": 0,
"connect": "125.132.216.77:7777",
"country": "KR",
"domain": null,
"game": 1369670,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11180660,
"ip": "125.132.216.77",
"language": "ko",
"last_update": 1794777355,
"map": null,
"maxplayers": 30,
"name": "Hello and Welcome 2 (Test Branch)",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "125.132.216.77:27015",
"secured": true,
"status": true,
"steam_id": "90297486544205827",
"version": "0.7.20+T11",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Seongnam-si",
"description": null,
"disabled_modules": [],
"gamemode": "Unreal Test!",
"hidden": false,
"last_offline": 1794465602,
"last_online": 1794777355,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 56,
"wipe_period": null,
"FPS_i": "61",
"GDH_i": "1482473140",
"GDVF_i": "24",
"P2PADDR": "90297486544205827",
"P2PPORT": "7777",
"GDH_BT_i": "-1442870477",
"GDH_VP_i": "1094580158",
"CONMETHOD": "P2P",
"GDH_CVar_i": "1320092651",
"GDH_Item_i": "-1648917372",
"OWNINGNAME": "90297486544205827",
"listentype": "d",
"GDH_Cargo_i": "473130786",
"environment": "w",
"MTGameType_i": "1",
"SESSIONFLAGS": "41",
"a2s_protocol": 17,
"MTNumPlayers_i": "0",
"MTServerGuid_s": "EDBA4A2642F233BC4F174283C858E749",
"players_complete": true,
"AllowCorporation_b": "true",
"AllowModdedVehicle_b": "false",
"AllowCompanyAIDriver_b": "true",
"MTServerPasswordRequired_b": "false",
"AllowPoliceVehicleByPlayerRole_b": "false"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11180660");
$data = json_decode($json, true);
var_dump($data);