API pentru B8 #CLASSIC X2 | NOLIMIT | VANILLA [03.06] #bear
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 278,
"fps_avg": 277,
"entities_count": 70135,
"world_seed": 234512,
"world_size": 3500,
"steam_id": "90286583341554693",
"domain": null,
"id": 8198205,
"ip": "152.89.199.96",
"port": 20000,
"query": 20001,
"color": 0,
"city": "Moscow",
"description": "![B8 #CLASSIC X2 | NOLIMIT | VANILLA [03.06] #bear](https://cdn.bxrust.ru/b8.png)\nПолуклассический сервер для игры без ограничений\nСкорость добычи ресурсов x2\nДополнительные переработчики в деревнях\nПродвинутая торговля, обмен батареек на баланс",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780476871,
"last_online": 1780600836,
"icon": null,
"name": "B8 #CLASSIC X2 | NOLIMIT | VANILLA [03.06] #bear",
"connect": "152.89.199.96:20000",
"request": "152.89.199.96:20001",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 2,
"maxplayers": 500,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1742388520,
"last_update": 1780600836,
"banned": false,
"wipe": 1780477071,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3177,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/8198205");
$data = json_decode($json, true);
var_dump($data);