API для Bronobody's World
JSON для программ, сайтов и прочего
text
json
{
"response": {
"paused": false,
"season": "summer",
"secondaries": {
"1408431123": {
"id": "1408431123",
"port": 10998,
"__addr": "83.177.232.104",
"steamid": "90292256919446555"
}
},
"directory_id": "KU_V_O7lJhx",
"steam_id": null,
"domain": null,
"id": 14601932,
"ip": "83.177.232.104",
"port": 10999,
"query": 10999,
"project_id": null,
"color": 0,
"city": "Стокгольм",
"description": null,
"game": 322330,
"owner": null,
"boosts": 1,
"last_offline": 1788682201,
"last_online": 1788699500,
"icon": null,
"name": "Bronobody's World",
"connect": "83.177.232.104:10999",
"request": "83.177.232.104:10999",
"map": null,
"gamemode": "survival",
"version": "747465",
"numplayers": 1,
"maxplayers": 6,
"bots": 0,
"secured": null,
"private": false,
"country": "SE",
"status": true,
"votes": 0,
"points": 37,
"add_date": 1788554489,
"last_update": 1788699500,
"ban_reason": null,
"banned": false,
"hidden": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 0,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 41059,
"language": "sv",
"parked": false,
"app": {
"id": 147,
"steam_id": 322330,
"name": "Don't Starve Together",
"url": "dont-starve-together"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14601932");
$data = json_decode($json, true);
var_dump($data);