Rust
API для [GER] Rob's PVE-Server-Anfängerfreundlich
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/740801json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 134495,
"world_seed": 354802510,
"world_size": 4250,
"steam_id": "90285605226974230",
"domain": null,
"id": 740801,
"ip": "85.14.192.194",
"port": 28015,
"query": 28014,
"color": 0,
"city": "Düsseldorf",
"description": "![[GER] Rob's PVE-Server-Anfängerfreundlich](http://hawkai.de/UGS/rust_server.headerimage.jpg)\nMoin und willkommen auf meinem kleinen Server. Alle Regeln, Plugins und ein paar Anfängertipps findet ihr im Game in der Infobox.\r\nEvents:\r\n - Airfield Event\r\n - Dangerous Treasures\r\n - Raidable Bases\r\n - Trainyard + Silo Event\r\n\r\nPlugins:\r\n - Stacksize\r\n - Backpack (bleibt nach wipe erhalten)\r\n - Remoover Tool\r\n - Skin Box\r\n - Recycler selber bauen\r\n - private Helis gehen nicht kaputt\r\n - kits und einige mehr\r\n\r\nwünsche euch viel spaß",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778465579,
"score": null,
"last_online": 1778542215,
"icon": null,
"name": "[GER] Rob's PVE-Server-Anfängerfreundlich",
"connect": "85.14.192.194:28015",
"request": "85.14.192.194:28014",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 2,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1675100301,
"last_update": 1778542215,
"banned": false,
"wipe": 1778190150,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1246,
"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/740801");
$data = json_decode($json, true);
var_dump($data);