稳定、快速、免费的 API 接口服务
查询端口是否开启
接口地址: https://apis.jxcxin.cn/api/webport
返回格式: JSON
请求方式: GET
请求示例: https://apis.jxcxin.cn/api/webport?ip=apis.jxcxin.cn
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| ip | 是 | string | 需要查询的url或者服务器ip |
| port | 否 | string | 指定查询端口,多个以英文逗号隔开,为空则查询默认的几个端口 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | string | 返回的状态码 |
| msg | string | 返回提示信息 |
| data | string | 返回查询结果 |
| port | string | 返回端口号 |
| status | string | 返回端口状态 |
返回示例:
{
"code": 200,
"msg": "查询成功",
"data": [
{
"port": "21[FTP]",
"status": "开启"
},
{
"port": "22[SSH]",
"status": "开启"
},
{
"port": "80[默认]",
"status": "开启"
},
{
"port": "3312[康乐]",
"status": "关闭"
},
{
"port": "443[SSL]",
"status": "开启"
},
{
"port": "3306[MYSQL]",
"status": "关闭"
},
{
"port": "3389[远程桌面]",
"status": "关闭"
},
{
"port": "8888[宝塔面板]",
"status": "关闭"
}
]
}
请求参数设置:
| 参数名称 | 参数值 | 操作 |
|---|---|---|
{
"code": 200,
"msg": "查询成功",
"data": [
{
"port": "21[FTP]",
"status": "开启"
},
{
"port": "22[SSH]",
"status": "开启"
},
{
"port": "80[默认]",
"status": "开启"
},
{
"port": "3312[康乐]",
"status": "关闭"
},
{
"port": "443[SSL]",
"status": "开启"
},
{
"port": "3306[MYSQL]",
"status": "关闭"
},
{
"port": "3389[远程桌面]",
"status": "关闭"
},
{
"port": "8888[宝塔面板]",
"status": "关闭"
}
]
}
错误码格式说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| -1 | string | 参数缺失 |
| 3200 | string | apiKey为空 |
| 3201 | string | apiKey错误 |
| 3202 | string | apiKey过期 |
| 3203 | string | 请求频繁 |
代码示例:
暂无