Rust
API для Facepunch Staging Procgen 3.5k
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/3024401json
{
"response": {
"fps": 10,
"fps_avg": 10,
"entities_count": 64742,
"world_seed": 427641,
"world_size": 3500,
"steam_id": "90285040338221069",
"domain": null,
"id": 3024401,
"ip": "198.244.177.77",
"port": 28022,
"query": 28021,
"color": 0,
"city": "London",
"description": "This is an official development test server owned and operated by Facepunch. Testing may interrupt gameplay and progress could be lost at any time.\r\n\r\nThe Staging Branch in Rust is a separate version of Rust where new updates and features are tested before being published to the main game. To join, launch 'Rust - Staging Branch' from your Steam library.\r\n\r\nSee more at https://rust.facepunch.com/staging",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777304601,
"score": null,
"last_online": 1777324221,
"icon": null,
"name": "Facepunch Staging Procgen 3.5k",
"connect": "198.244.177.77:28022",
"request": "198.244.177.77:28021",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2624",
"numplayers": 0,
"maxplayers": 500,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1708077609,
"last_update": 1777324221,
"banned": false,
"wipe": 1775057054,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2909,
"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/3024401");
$data = json_decode($json, true);
var_dump($data);