API для Castaway - 5x No Decay PVE/PVP
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 85,
"fps_avg": 84,
"entities_count": 62289,
"world_seed": 1337,
"world_size": 5800,
"steam_id": "90286606577925141",
"domain": null,
"id": 6367444,
"ip": "174.176.147.7",
"port": 28019,
"query": 28020,
"color": 0,
"city": "Wellington",
"description": "Welcome to Castaway pve/pvp 5x, the perfect blend of adventure and challenge in a 5x PvE/PvP Rust server! Immerse yourself in an environment where you can both collaborate and compete, balancing survival against the dangers of the wild and the thrill of player conflict.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779965572,
"last_online": 1780603238,
"icon": null,
"name": "Castaway - 5x No Decay PVE/PVP",
"connect": "174.176.147.7:28019",
"request": "174.176.147.7:28020",
"map": "TheEarthApocalypse",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1729724242,
"last_update": 1780603238,
"banned": false,
"wipe": 1780602038,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3244,
"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/6367444");
$data = json_decode($json, true);
var_dump($data);