Rust
API для Facepunch Staging Procgen 4k
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/3817834json
{
"response": {
"fps": 119,
"fps_avg": 114,
"entities_count": 128437,
"world_seed": 2970056,
"world_size": 4500,
"steam_id": "90285048841013261",
"domain": null,
"id": 3817834,
"ip": "198.244.177.77",
"port": 28019,
"query": 28020,
"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": 1777319602,
"score": 0,
"last_online": 1777324225,
"icon": null,
"name": "Facepunch Staging Procgen 4k",
"connect": "198.244.177.77:28019",
"request": "198.244.177.77:28020",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2624",
"numplayers": 1,
"maxplayers": 350,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1712949423,
"last_update": 1777324225,
"banned": false,
"wipe": 1774517624,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2944,
"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/3817834");
$data = json_decode($json, true);
var_dump($data);