BW Test Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"modded": true,
"fps": 57,
"fps_avg": 59,
"entities_count": 110385,
"world_seed": 2125564517,
"world_size": 4250,
"steam_id": "90286588910352404",
"domain": null,
"id": 1034456,
"ip": "104.143.3.209",
"port": 29015,
"query": 29016,
"color": 0,
"city": "Dallas",
"description": "\nBW TEST SERVER\r\n\r\nYou must be Whitelisted to play here.\r\n If you are an MVP on either of our servers you are on the Whitelist. \r\n\r\n This is our testing and development server.\r\nNew mods and plugins are setup and tested before deployment on BW Redux or BW Zombified.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779502413,
"last_online": 1780570232,
"icon": null,
"name": "BW Test Server",
"connect": "104.143.3.209:29015",
"request": "104.143.3.209:29016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1688591782,
"last_update": 1780570232,
"banned": false,
"wipe": 1778184884,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2319,
"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/1034456");
$data = json_decode($json, true);
var_dump($data);