My Untitled Rust Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 32,
"fps_avg": 32,
"entities_count": 1627,
"world_seed": 1337,
"world_size": 1000,
"steam_id": "90286427998057501",
"domain": null,
"id": 11698882,
"ip": "216.39.240.61",
"port": 28012,
"query": 28017,
"color": 0,
"city": "Dallas",
"description": "Last wipe: 30/05/2026\r\nNext wipe: 04/06/2026",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780227279,
"last_online": 1780266030,
"icon": null,
"name": "My Untitled Rust Server",
"connect": "216.39.240.61:28012",
"request": "216.39.240.61:28017",
"map": "Wiped 43 hours ago",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780227279,
"last_update": 1780266030,
"banned": false,
"wipe": 1780110196,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6173,
"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/11698882");
$data = json_decode($json, true);
var_dump($data);