API для HumanitZ [Dedicated]
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793941676,
"app": {
"id": 1531516,
"name": "HumanitZ",
"steam_id": 1766060,
"url": "humanitz"
},
"color": 0,
"connect": "180.190.21.175:7777",
"country": "PH",
"domain": null,
"game": 1766060,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19709045,
"ip": "180.190.21.175",
"language": "tl",
"last_update": 1794214174,
"map": "Main Map",
"maxplayers": 16,
"name": "HumanitZ [Dedicated]",
"numplayers": 0,
"official": null,
"points": 0,
"port": 7777,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7777,
"request": "180.190.21.175:7777",
"secured": null,
"status": false,
"steam_id": null,
"version": null,
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Lahug",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794214174,
"last_online": 1793941517,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1076,
"wipe_period": null,
"eosSessionId": "b5e157c2bbbe4cd2bcdc13fd1c713453"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19709045");
$data = json_decode($json, true);
var_dump($data);