API dla AlphaRust - x2 EU | Quad | Vanilla+ | RaidableBases
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 115497,
"world_seed": 1268591393,
"world_size": 4000,
"steam_id": "90286581538525188",
"domain": null,
"id": 11435327,
"ip": "148.251.177.248",
"port": 28000,
"query": 28001,
"color": 0,
"city": "Falkenstein",
"description": "\nWelcome to AlphaRust - x2 EU\r\n\r\nLast Wipe: 21/05 Next Wipe: 04/06\r\n Map Wipes: Every 2 weeks\r\n Blueprints Wipes: Force Wipes\r\n\r\nFeatures:\r\n 2x Gather, compo, craft, recycling, stack\r\n Max Team: 4\r\n Short Nights\r\n 50% Upkeep\r\n Raid Schedule\r\n Raidable Bases\r\n And more...\r\n\r\nVIP Features, NO P2W \r\nActive non-playing admins",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780117364,
"last_online": 1780559427,
"icon": null,
"name": "AlphaRust - x2 EU | Quad | Vanilla+ | RaidableBases",
"connect": "148.251.177.248:28000",
"request": "148.251.177.248:28001",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774977186,
"last_update": 1780559427,
"banned": false,
"wipe": 1779390648,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4503,
"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/11435327");
$data = json_decode($json, true);
var_dump($data);