RustSpike 5x Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 45,
"fps_avg": 44,
"entities_count": 140808,
"world_seed": 1457080867,
"world_size": 5000,
"steam_id": "90286272092414976",
"domain": null,
"id": 10488587,
"ip": "154.47.158.79",
"port": 29014,
"query": 29015,
"color": 0,
"city": "Brampton",
"description": "\nWelcome to RustSpike 5x Monthly\r\nRelaxed experience for everyone\r\n\r\n•5x Resources •5x Components •Mini road spawns\r\n•T1 bps unlocked & New bps shared with team\r\n•Instant craft with base workbench coverage\r\n•Do /Help for all available commands\r\n•Rules: No cheating/scripting, No racism. Have fun!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780602816,
"last_online": 1779951023,
"icon": null,
"name": "RustSpike 5x Server",
"connect": "154.47.158.79:29014",
"request": "154.47.158.79:29015",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1761122064,
"last_update": 1780602816,
"banned": false,
"wipe": 1778224377,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10030,
"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/10488587");
$data = json_decode($json, true);
var_dump($data);