RustyLabourers #1 Main- 1.5x/Offline Protection/RaidableBase 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 176,
"fps_avg": 175,
"entities_count": 83780,
"world_seed": 1337,
"world_size": 3850,
"steam_id": "90286590305360913",
"domain": null,
"id": 10310786,
"ip": "69.10.49.122",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Secaucus",
"description": "\nWelcome to RustyLabourers!\r\n\r\nJoin our Discord: www.rustylabourers.com\r\n\r\nRust for grown-ups. Offline raid protection, extra content with a vanilla feel.\r\n\r\n Main features:\r\n - Beginner friendly\r\n - Reduced base upkeep (50%)\r\n - 24 hours offline raid protection, upkeep with scrap\r\n - Active admins & good anticheat\r\n - Monthly wipe, keep blueprints\r\n\r\nWe run RaidableBases, SkillTree, Convoy, ArmouredTrain, and much more for a fun experience throughout wipe!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779229381,
"last_online": 1780593637,
"icon": null,
"name": "RustyLabourers #1 Main- 1.5x/Offline Protection/RaidableBase",
"connect": "69.10.49.122:28015",
"request": "69.10.49.122:28017",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1758288409,
"last_update": 1780593637,
"banned": false,
"wipe": 1778214261,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3381,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10310786");
$data = json_decode($json, true);
var_dump($data);