API для HKGaming.NET PRo Public Server [sXe]
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "compspec,dedicated,gravity,increased_maxplayers,noblock,registered,stats",
"os": "l",
"product": "hl2mp",
"region": 3,
"steam_id": "90290098218553367",
"domain": null,
"id": 13231911,
"ip": "178.32.48.53",
"port": 20383,
"query": 20383,
"project_id": null,
"color": 0,
"city": "Erith",
"description": null,
"game": 320,
"owner": null,
"boosts": 1,
"last_offline": 1785725593,
"last_online": 1785692400,
"icon": null,
"name": "HKGaming.NET PRo Public Server [sXe]",
"connect": "178.32.48.53:20383",
"request": "178.32.48.53:20383",
"map": "dm_lockdown",
"gamemode": null,
"version": "9540945",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": null,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1785687265,
"last_update": 1785725593,
"ban_reason": null,
"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": 1309,
"language": "en",
"parked": false,
"app": {
"id": 1,
"steam_id": 320,
"name": "Half-Life 2: Deathmatch",
"url": "half-life-2-deathmatch"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13231911");
$data = json_decode($json, true);
var_dump($data);