API для A Shockbyte x Discord Production Rust Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 256,
"fps_avg": 255,
"entities_count": 8097,
"world_seed": 50000,
"world_size": 1500,
"steam_id": "90286518084880406",
"domain": null,
"id": 11731529,
"ip": "51.38.155.252",
"port": 21453,
"query": 21454,
"color": 0,
"city": "Warsaw",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780552403,
"last_online": 1780501956,
"icon": null,
"name": "A Shockbyte x Discord Production Rust Server",
"connect": "51.38.155.252:21453",
"request": "51.38.155.252:21454",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780411264,
"last_update": 1780552403,
"banned": false,
"wipe": 1780408170,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12990,
"language": "pl",
"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/11731529");
$data = json_decode($json, true);
var_dump($data);