IP端口扫描检测API接口
扫描指定IP的端口是否开启状态
接口文档
检测单个端口是否开放
接口信息
接口功能:
检测目标禁止127.0.0.1和localhost
免费额度:3次/天
调用费用:0.001/次
VIP免费:是
请求方式:GET,POST
返回格式:JSON
接口状态:正常
调用次数:0
接口地址
GET,POSThttps://www.guandaospace.com/api/openapi.portscanner/isopen
请求参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| apikey | string | 是 | 用户请求APIKEY |
| host | string | 是 | 检测的目标IP,可以是域名,如:www.baidu.com |
| port | int | 是 | 检测端口号,如:3306 |
请求示例
https://www.guandaospace.com/api/openapi.portscanner/isopen?host=目标IP&port=要扫描检测的端口号
返回参数说明
| 名称 | 类型 | 说明 |
|---|---|---|
| code | 1 | 1成功,0失败 |
| msg | string | 返回消息 |
| time | string | 返回时间unixtime |
| data | object | 返回数据 |
| data.target | string | 检测目标 |
| data.port | string | 检测端口 |
| data.result | string | 带格式化后的结果 |
| data.isopen | bool | true=开放,false=关闭 |
返回结果示例
{"code": 1,"msg":"扫描完成","time":"1742795760","data": {"target":"8.8.8.8","port":"3306","result":"端口关闭","isopen": false }}