API dla Rusty Life #2 — Semi-Classic 1.5X | RU/EU
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 64,
"fps_avg": 64,
"entities_count": 98406,
"world_seed": 1,
"world_size": 3850,
"steam_id": 90286604130229250,
"domain": "play1.rustylife.gg",
"id": 11742152,
"ip": "80.242.59.228",
"port": 35020,
"query": 35021,
"color": 0,
"city": "Veliky Novgorod",
"description": "\nWipes: every Thursday at 11:00 GMT\r\nBPs Wipes: First Thursday after Force (once a month)\r\nMax Team Size: Unlimited\r\n\r\nFeatures:\r\n— Gather Rates: x1.5\r\n— Resource stacks: 5k\r\n— Improved Loot\r\n— Increased Craft Speed\r\n— Awards after every wipe\r\n— More information on the /menu\r\n\r\nLinks:\r\n— Website: rustylife.gg\r\n— Discord: discord.gg/rustylife\r\n— Telegram: t.me/rustylife\r\n— VK: vk.com/rusty_life",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780623794,
"last_online": 1780596793,
"icon": null,
"name": "Rusty Life #2 — Semi-Classic 1.5X | RU/EU",
"connect": "play1.rustylife.gg:35020",
"request": "80.242.59.228:35021",
"map": "Rusty Life Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": false,
"votes": 1,
"points": 1,
"add_date": 1780475886,
"last_update": 1780623794,
"banned": false,
"wipe": 1780596219,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9554,
"language": "ru",
"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/11742152");
$data = json_decode($json, true);
var_dump($data);