端口扫描
查询端口是否开启

接口地址: 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 返回端口状态

返回示例:

codeAPI Store

  1. {
  2. "code": 200,
  3. "msg": "查询成功",
  4. "data": [
  5. {
  6. "port": "21[FTP]",
  7. "status": "开启"
  8. },
  9. {
  10. "port": "22[SSH]",
  11. "status": "开启"
  12. },
  13. {
  14. "port": "80[默认]",
  15. "status": "开启"
  16. },
  17. {
  18. "port": "3312[康乐]",
  19. "status": "关闭"
  20. },
  21. {
  22. "port": "443[SSL]",
  23. "status": "开启"
  24. },
  25. {
  26. "port": "3306[MYSQL]",
  27. "status": "关闭"
  28. },
  29. {
  30. "port": "3389[远程桌面]",
  31. "status": "关闭"
  32. },
  33. {
  34. "port": "8888[宝塔面板]",
  35. "status": "关闭"
  36. }
  37. ]
  38. }

请求参数设置:

参数名称 参数值 操作


{
    "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 请求频繁

代码示例:

codeAPI Store

  1. 暂无
最新公告

如遇API接口无法请求请及时联系站长QQ:951973773反馈修复!

20231203:
公告:
部分蓝标接口需要携带apiKey进行请求,apiKey可自行在用户中心免费购买接口获取
用户中心我晓得了