API для !AAH!CLAN!Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794321531,
"app": {
"id": 95,
"name": "Serious Sam HD: The Second Encounter",
"steam_id": 41010,
"url": "serious-sam-hd-the-second-encounter"
},
"color": 0,
"connect": "77.176.161.156:27121",
"country": "DE",
"domain": null,
"game": 41010,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19911869,
"ip": "77.176.161.156",
"language": "de",
"last_update": 1794740182,
"map": "1_01_Palenque",
"maxplayers": 16,
"name": "!AAH!CLAN!Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27121,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27122,
"request": "77.176.161.156:27122",
"secured": true,
"status": false,
"steam_id": "90295926129418266",
"version": "0.1.200.142",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Ремшайд",
"description": null,
"disabled_modules": [],
"gamemode": "Serious Sam HD : The Second Encounter",
"hidden": false,
"last_offline": 1794740182,
"last_online": 1794345214,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 73,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19911869");
$data = json_decode($json, true);
var_dump($data);