API dla RustFront EU Main | Vanilla | JUST WIPED 20.00
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 153,
"fps_avg": 143,
"entities_count": 88648,
"world_seed": 1337,
"world_size": 4000,
"steam_id": "90286611099335685",
"domain": null,
"id": 11501150,
"ip": "57.128.211.192",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Warsaw",
"description": "\nRustFront EU Main just wiped.\r\n\r\nMap source: map vote winner.\r\n\r\nForce/BP wipe.\r\n\r\nVanilla Rust. Visit rustfront.com for rules, maps, VIP, and support.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780607656,
"last_online": 1780612235,
"icon": null,
"name": "RustFront EU Main | Vanilla | JUST WIPED 20.00",
"connect": "57.128.211.192:28015",
"request": "57.128.211.192:28017",
"map": "Merged Outpost + Bandit",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 400,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207168,
"last_update": 1780612235,
"banned": false,
"wipe": 1780609807,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4530,
"language": "pl",
"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/11501150");
$data = json_decode($json, true);
var_dump($data);