💎 获取MC服务器状态
## 获取MC服务器状态
> 🌸 获取基岩版服务器状态信息(以后会有服务器大厅哦~)
---
**请求URL:**
` https://pixelcraft.top/api/Motd/Api.php `
**请求方式:**
- GET
**参数:**
|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
| ip | 是 | string | 服务器IP |
| port | 是 | string | 服务器端口 |
**请求示例**
```
https://pixelcraft.top/api/Motd/Api.php?ip=play.easyareamc.cn&port=40002
```
**返回示例**
```
{
"status": "online",
"ip": "play.easyareamc.cn",
"port": "40002",
"motd": "Dedicated Server",
"agreement": "422",
"version": "1.16.200",
"online": "2",
"max": "50",
"gamemode": "Survival",
"delay": 117
}
```
**示例说明**
|参数名|说明|
|:---- |:---- |
| status| 服务器状态 |
| ip | 服务器IP |
| port | 服务器端口 |
| motd | 服务器motd |
| agreement | 服务器协议号 |
| version | 服务器游戏版本 |
| online | 在线人数 |
| max | 最大人数 |
| gamemode | 默认游戏模式 |
| delay | 服务器延迟 |