API для TCWLiberation
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": 90286582910149660,
"domain": null,
"id": 11659665,
"ip": "15.204.60.140",
"port": 2000,
"query": 2001,
"color": 0,
"city": "Hillsboro",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1780431800,
"last_online": 1780563041,
"icon": null,
"name": "TCWLiberation",
"connect": "15.204.60.140:2000",
"request": "15.204.60.140:2001",
"map": "Altis",
"gamemode": "CTI 34 KP Liberation v0.96.8 dev",
"version": "2.20.152984",
"numplayers": 7,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 39,
"add_date": 1780178418,
"last_update": 1780563041,
"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": 59,
"language": "en",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11659665");
$data = json_decode($json, true);
var_dump($data);