API для GodlikeHost Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "85568392936389335",
"domain": null,
"id": 11805418,
"ip": "51.161.199.30",
"port": 26234,
"query": 26234,
"project_id": null,
"color": 0,
"city": "North Sydney",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1781463953,
"last_online": 1781506282,
"icon": null,
"name": "GodlikeHost Server",
"connect": "51.161.199.30:26234",
"request": "51.161.199.30:26234",
"map": "Washington",
"gamemode": null,
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1781463953,
"last_update": 1781506282,
"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": 1685,
"language": "en",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11805418");
$data = json_decode($json, true);
var_dump($data);