Rust
API для SwissOak [CH/DE] [PvE+PvP|Events|3x|Kits|Shop]
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10815336json
{
"response": {
"fps": 77,
"fps_avg": 76,
"entities_count": 129018,
"world_seed": 13836,
"world_size": 4250,
"steam_id": "90283891153336336",
"domain": null,
"id": 10815336,
"ip": "83.76.18.223",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Winterthur",
"description": "![SwissOak [CH/DE] [PvE+PvP|Events|3x|Kits|Shop]](https://www.8460.ch/rust/Headerimage02.jpg)\nWähle deine Spielweise für ein unkompliziertes nebeneinander von PvE und PvP mit den jeweiligen Möglichkeiten und Einschränkungen. Du kannst deine Spielweise jederzeit in der Safezone mit dem Befehl /flag ändern. \r\n \r\n- Shop, Kits \r\n- Special loot from static objects \r\n- Skinbox \r\n- Train Homes, building on Trains \r\n- Barges, build on barges \r\n- Dynamic Monuments \r\n- Events: Sputnik, Supermarket, Gasstation, Convoy und mehr",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775254327,
"score": 0,
"last_online": 1776210615,
"icon": null,
"name": "SwissOak [CH/DE] [PvE+PvP|Events|3x|Kits|Shop]",
"connect": "83.76.18.223:28015",
"request": "83.76.18.223:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "CH",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1767109884,
"last_update": 1776210615,
"banned": false,
"wipe": 1775254362,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4321,
"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/10815336");
$data = json_decode($json, true);
var_dump($data);