API для WAGNER
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794414437,
"app": {
"id": 3249,
"name": "BeamNG.drive",
"steam_id": 284160,
"url": "beamngdrive"
},
"color": 0,
"connect": "193.105.164.22:30814",
"country": "UA",
"domain": null,
"game": 284160,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20003219,
"ip": "193.105.164.22",
"language": "uk",
"last_update": 1794418821,
"map": "/levels/gridmap_v2/info.json",
"maxplayers": 8,
"name": "WAGNER",
"numplayers": 2,
"official": false,
"points": 77,
"port": 30814,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30814,
"request": "193.105.164.22:30814",
"secured": null,
"status": true,
"steam_id": null,
"version": "3.9.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": null,
"city": "Одесса",
"description": "BeamMP Default Description",
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": null,
"last_online": 1794418821,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 359,
"wipe_period": null,
"tags": "Freeroam",
"ident": null,
"guests": true,
"modList": "/Bmw_E90_M3;/BMW_F10_berkut_black_moon_rewamp;/c63w204fix;/LXR_Cherokee_V1.3;/M3F80_3SERIESF30_BLUEMOTION;/sxl_mercedes_e63_w212;",
"partner": false,
"featured": false,
"location": "UA",
"modsTotal": 6,
"clientVersion": "2.7.0",
"modsTotalSize": 2946076369
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20003219");
$data = json_decode($json, true);
var_dump($data);