Rust
API для RustRomania xMillion [x10000000000x|PVP|TP|Kits|Skins|Battle]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11305052json
{
"response": {
"fps": 52,
"fps_avg": 59,
"entities_count": 52770,
"world_seed": 1337,
"world_size": 2800,
"steam_id": "90284797800038431",
"domain": null,
"id": 11305052,
"ip": "148.251.2.146",
"port": 28020,
"query": 28019,
"color": 0,
"city": "Falkenstein",
"description": "![RustRomania xMillion [x10000000000x|PVP|TP|Kits|Skins|Battle]](https://www.rustplace.ro/img/ro_xmil.png)\nWelcome to Rust Romania xMillion! \r\nWeekly Wipe on Friday @ 10AM UTC or when forced. \r\n Use /info for server info and commands\r\n \r\nServer settings:\r\n -High Gather Rates\r\n -Instant Crafting/Smelting\r\n -No Blueprints/Workbench needed\r\n -Custom Loot, Helivote(up to 2) \r\n -Build Grade(/bgrade), Teleport \r\n -Clans, SkinBox(/skin), Trade \r\n -Minicopter Combat, Night Skip \r\n -Double Foundation HP \r\n -Airdrops, Kits, Shop(/shop) and MORE \r\n \r\nPowered by RustPlace\r\nJoin, Build, Raid, Fight and have FUN x100000000000!\r\nrs0004K4*i1twmLWJ2NA^1",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776017538,
"score": 0,
"last_online": 1776880222,
"icon": null,
"name": "RustRomania xMillion [x10000000000x|PVP|TP|Kits|Skins|Battle]",
"connect": "148.251.2.146:28020",
"request": "148.251.2.146:28019",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 1,
"maxplayers": 250,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774592877,
"last_update": 1776880222,
"banned": false,
"wipe": 1776416337,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5140,
"language": "de",
"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/11305052");
$data = json_decode($json, true);
var_dump($data);