API dla ALTASHORAS
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 264,
"fps_avg": 316,
"entities_count": 116843,
"world_seed": 1071954501,
"world_size": 4500,
"steam_id": "90286603146087430",
"domain": null,
"id": 11501246,
"ip": "157.85.95.78",
"port": 22840,
"query": 22841,
"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": 1780578879,
"last_online": 1780608027,
"icon": null,
"name": "ALTASHORAS",
"connect": "157.85.95.78:22840",
"request": "157.85.95.78:22841",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1779207170,
"last_update": 1780608027,
"banned": false,
"wipe": 1780578866,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1936,
"language": "de",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11501246");
$data = json_decode($json, true);
var_dump($data);