API для BisectHosting ee032020
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": -1,
"product": "valheim",
"gametype": "g=1.0.15,n=40,m=40\\=1_0:2_0:3_0:4_0:5_0\\,35",
"dedicated": true,
"steam_id": "90292991206690833",
"domain": null,
"id": 16694204,
"ip": "51.195.127.36",
"port": 9045,
"query": 9046,
"project_id": null,
"color": 0,
"city": "Лимбург-ан-дер-Лан",
"description": null,
"game": 892970,
"boosts": 1,
"last_offline": 1789777495,
"last_online": 1789761911,
"icon": null,
"name": "BisectHosting ee032020",
"connect": "51.195.127.36:9045",
"request": "51.195.127.36:9046",
"map": "BisectHosting ee032020",
"gamemode": null,
"version": "1.0.15",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1789746968,
"last_update": 1789777495,
"ban_reason": null,
"banned": false,
"hidden": 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": 95824,
"language": "de",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16694204");
$data = json_decode($json, true);
var_dump($data);