IP端口扫描检测API接口
扫描指定IP的端口是否开启状态
免费获取ApiKey
接口文档
接口地址:https://www.myshengong.com/api/openapi.portscanner/isopen
每日免费:3次
使用价格:0.001积分/次 ≈1元/1000次
请求方式:GET / POST
返回格式:JSON
接口描述:检测目标禁止127.0.0.1和localhost
请求示例:https://www.myshengong.com/api/openapi.portscanner/isopen?host=目标IP&port=要扫描检测的端口号

请求参数说明:
名称类型必填默认值说明
apikeystring用户中心免费获取APIKEY
hoststring检测的目标IP,可以是域名,如:www.baidu.com
portint检测端口号,如:3306

返回参数说明:
名称类型说明
code11成功,0失败
msgstring返回消息
timestring返回时间unixtime
dataobject返回数据
data.targetstring检测目标
data.portstring检测端口
data.resultstring带格式化后的结果
data.isopenbooltrue=开放,false=关闭

返回示例:
{
    "code": 1,
    "msg": "扫描完成",
    "time": "1742795760",
    "data": {
        "target": "8.8.8.8",
        "port": "3306",
        "result": "端口关闭",
        "isopen": false
    }
}            
100+评论
captcha