A Rust Staging Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 34,
"fps_avg": 34,
"entities_count": 115296,
"world_seed": 18373,
"world_size": 4500,
"steam_id": "90286432304089102",
"domain": null,
"id": 11602179,
"ip": "104.234.156.100",
"port": 25019,
"query": 25021,
"color": 0,
"city": "Franklin",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780211630,
"last_online": 1780266105,
"icon": null,
"name": "A Rust Staging Server",
"connect": "104.234.156.100:25019",
"request": "104.234.156.100:25021",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779359241,
"last_update": 1780266105,
"banned": false,
"wipe": 1780000381,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9797,
"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/11602179");
$data = json_decode($json, true);
var_dump($data);