API для Hacker Server (Hackers only)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 20,
"fps_avg": 20,
"entities_count": 6088,
"world_seed": 50000,
"world_size": 1500,
"steam_id": "90286162221761559",
"domain": null,
"id": 10699386,
"ip": "15.235.23.35",
"port": 20767,
"query": 20768,
"color": 0,
"city": "Beauharnois",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1770316899,
"last_online": 1780596087,
"icon": null,
"name": "Hacker Server (Hackers only)",
"connect": "15.235.23.35:20767",
"request": "15.235.23.35:20768",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1765122745,
"last_update": 1780596087,
"banned": false,
"wipe": 1778357522,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5847,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10699386");
$data = json_decode($json, true);
var_dump($data);