Half-Life
API для [VICTORY.KM.UA] Half-Life DM FFA
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/3848111json
{
"response": {
"steam_id": null,
"domain": null,
"id": 3848111,
"ip": "78.152.169.100",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Khmelnytskyi",
"description": "",
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1776335624,
"score": 0,
"last_online": 1776775215,
"icon": null,
"name": "[VICTORY.KM.UA] Half-Life DM FFA",
"connect": "78.152.169.100:27016",
"request": "78.152.169.100:27016",
"map": "xdm_stalkyard",
"gamemode": "Half-Life",
"version": "1.1.2.7/Stdio",
"numplayers": 7,
"maxplayers": 32,
"bots": 1,
"secured": true,
"private": false,
"country": "UA",
"status": true,
"votes": 0,
"points": 77,
"add_date": 1713183471,
"last_update": 1776775215,
"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": 14,
"language": "uk",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/3848111");
$data = json_decode($json, true);
var_dump($data);