Rust
API для Reforged Build Server | Production Rules
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11305567json
{
"response": {
"fps": 103,
"fps_avg": 104,
"entities_count": 57932,
"world_seed": 1337,
"world_size": 5650,
"steam_id": "90285028967572504",
"domain": null,
"id": 11305567,
"ip": "104.243.37.163",
"port": 28021,
"query": 28023,
"color": 0,
"city": "Piscataway",
"description": "\nOfficial Reforged Rust build server.\r\n Test and refine base designs using the same building rules as the main server.\r\n Free build tools are provided for fast iteration — no progression risk.\r\n\r\n Build Tools Enabled:\r\n • Free Build\r\n • Fly / No Clip\r\n • God Mode\r\n • Spawn Items\r\n • 10-Day Building Purge",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777284199,
"score": 0,
"last_online": 1777314627,
"icon": null,
"name": "Reforged Build Server | Production Rules",
"connect": "104.243.37.163:28021",
"request": "104.243.37.163:28023",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 75,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774592890,
"last_update": 1777314627,
"banned": false,
"wipe": 1775151759,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5074,
"language": "en",
"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/11305567");
$data = json_decode($json, true);
var_dump($data);