Rust
RFL Test Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11435532json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 92488,
"world_seed": 1337,
"world_size": 4000,
"steam_id": "90285319992499231",
"domain": null,
"id": 11435532,
"ip": "194.50.234.143",
"port": 28015,
"query": 28016,
"color": 0,
"city": "City of London",
"description": "\nThis server is used only for testing. \r\n \r\nServer availability is not guaranteed and may change without warning. \r\n \r\nRandom uptime, restarts, and shutdowns should be expected. \r\n \r\nProgress here is not permanent! \r\n \r\nDiscord Community! - https://discord.gg/rflservers",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778573537,
"score": 0,
"last_online": 1778210422,
"icon": null,
"name": "RFL Test Server",
"connect": "194.50.234.143:28015",
"request": "194.50.234.143:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774977193,
"last_update": 1778573537,
"banned": false,
"wipe": 1775422969,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7640,
"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/11435532");
$data = json_decode($json, true);
var_dump($data);