Squad
API для 29th Infantry Division [Euro Server 2]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11142664json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142664,
"ip": "185.107.96.242",
"port": 7787,
"query": 7787,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1776617555,
"score": 0,
"last_online": 1776817312,
"icon": null,
"name": "29th Infantry Division [Euro Server 2]",
"connect": "185.107.96.242:7787",
"request": "185.107.96.242:7787",
"map": "29th_Sumari",
"gamemode": "29th Drill Mode, 29th Drill Mode",
"version": "v10.3.1.571437.1655",
"numplayers": 0,
"maxplayers": 80,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1770804052,
"last_update": 1776817312,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 254,
"language": "de",
"parked": false,
"app": {
"id": 137,
"steam_id": 393380,
"name": "Squad",
"url": "squad"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11142664");
$data = json_decode($json, true);
var_dump($data);