Squad
API для 44th Royal Anglian #5 | Training & Events #1 | discord.gg/44thsquad
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11142507json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11142507,
"ip": "85.239.155.190",
"port": 12005,
"query": 12005,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1776817427,
"score": 0,
"last_online": 1776796301,
"icon": null,
"name": "44th Royal Anglian #5 | Training & Events #1 | discord.gg/44thsquad",
"connect": "85.239.155.190:12005",
"request": "85.239.155.190:12005",
"map": "BlackCoast_RAAS_v2",
"gamemode": "RAAS",
"version": "v10.3.1.576590.1719",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1770804048,
"last_update": 1776817427,
"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": 318,
"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/11142507");
$data = json_decode($json, true);
var_dump($data);