API для ALTASHORAS
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 316,
"fps_avg": 338,
"entities_count": 75104,
"world_seed": 867840661,
"world_size": 3500,
"steam_id": "90286636422646790",
"domain": null,
"id": 11501246,
"ip": "157.85.95.78",
"port": 22840,
"query": 22841,
"project_id": null,
"color": 0,
"city": "Frankfurt am Main",
"description": "\n** Private Friends-Only Server** A private server in Rust created exclusively for friends. The focus is on having fun, building bases, and light PvP without toxicity or random players. * Friends / whitelist only * Adjusted rates for faster progression * Permanent daytime * Casual and cooperative gameplay * No griefing from strangers The goal is to enjoy the game at our own pace, explore, build, and do PvP only with friends when we want to.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780668263,
"last_online": 1780711826,
"icon": null,
"name": "ALTASHORAS",
"connect": "157.85.95.78:22840",
"request": "157.85.95.78:22841",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1779207170,
"last_update": 1780711826,
"banned": false,
"wipe": 1780668513,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1711,
"language": "de",
"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/11501246");
$data = json_decode($json, true);
var_dump($data);