API dla GR/ENG Olympus 2x Solo/Duo/Trio | Loot x2|
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 17,
"fps_avg": 18,
"entities_count": 96859,
"world_seed": 95745383,
"world_size": 4000,
"steam_id": "90286540315921416",
"domain": null,
"id": 11501222,
"ip": "158.220.97.206",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Lauterbourg",
"description": "\n▶Max Group: 3\r\n▶2x Gather Rates|2x Crafting Speed|2x Components\r\n▶LARGE High Performance Custom Maps\r\n▶Active Staff 24/7|Anti-Cheat/Anti-Teaming\r\n▶Custom Improved Loot Tables\r\n▶BP Clan Sharing\r\n▶Automatic Auth Share|TC|Code Lock|AutoTurret\r\n▶Increased stack size",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780454658,
"last_online": 1780588235,
"icon": null,
"name": "GR/ENG Olympus 2x Solo/Duo/Trio | Loot x2|",
"connect": "158.220.97.206:28015",
"request": "158.220.97.206:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 80,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207169,
"last_update": 1780588235,
"banned": false,
"wipe": 1778442717,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4776,
"language": "fr",
"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/11501222");
$data = json_decode($json, true);
var_dump($data);