API для Local Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792926493,
"app": {
"id": 137,
"name": "Squad",
"steam_id": 393380,
"url": "squad"
},
"color": 0,
"connect": "134.33.100.23:20985",
"country": "US",
"domain": null,
"game": 393380,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18978782,
"ip": "134.33.100.23",
"language": "en",
"last_update": 1792934990,
"map": "Unknown",
"maxplayers": 20,
"name": "Local Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 20985,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 20985,
"request": "134.33.100.23:20985",
"secured": null,
"status": false,
"steam_id": null,
"version": "v10.6.3.694944.3212",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Финикс",
"description": null,
"disabled_modules": [],
"gamemode": "AAS",
"hidden": false,
"last_offline": 1792934990,
"last_online": 1792926326,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1128,
"wipe_period": null,
"eosSessionId": "15ff3c574c384e4c8071bc1291395062"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18978782");
$data = json_decode($json, true);
var_dump($data);