返回首页

CF优选IP获取

CF优选IP获取

检测中 APPLICATION 免费

接口信息

接口地址 https://api3.mhimg.cn/api/Cf_best
返回格式 JSON
请求方式 GET
请求示例 https://api3.mhimg.cn/api/Cf_best?server=1&type=v4

请求参数说明

名称必填类型说明
type 否 string IP 协议版本:v4(默认)/ v6
server 否 integer CDN 服务商:1 CloudFlare(默认)/ 2 CloudFront

返回参数说明

名称类型说明
status boolean 整体状态,true 表示成功
code integer 状态码,200 成功
msg string 状态说明,如 查询成功
info object 按线路分组的优选 IP 结果
info.CM array 移动线路优选 IP 列表
info.CU array 联通线路优选 IP 列表
info.CT array 电信线路优选 IP 列表
info.*[].ip string 优选 IP 地址
info.*[].address string 优选 IP 地址(同 ip 字段)
info.*[].line_name string 线路名称,如 移动、联通、电信
info.*[].bandwidth integer 带宽评分
info.*[].speed integer 测速结果,数值越大越快
info.*[].colo string Cloudflare 机房代码,如 HKG、SJC、AMS
info.*[].delay integer 延迟,单位 ms
info.*[].uptime string 节点在线时长(时间戳)

返回示例

{
  "status": true,
  "code": 200,
  "msg": "查询成功",
  "info": {
    "CM": [
      {
        "ip": "104.16.146.95",
        "address": "104.16.146.95",
        "line_name": "移动",
        "bandwidth": 5,
        "speed": 647,
        "colo": "HKG",
        "delay": 56,
        "uptime": "1792984715"
      },
      {
        "ip": "104.17.54.134",
        "address": "104.17.54.134",
        "line_name": "移动",
        "bandwidth": 5,
        "speed": 647,
        "colo": "HKG",
        "delay": 59,
        "uptime": "1792984930"
      }
    ],
    "CU": [
      {
        "ip": "104.17.152.186",
        "address": "104.17.152.186",
        "line_name": "联通",
        "bandwidth": 5,
        "speed": 647,
        "colo": "SJC",
        "delay": 134,
        "uptime": "1792985566"
      },
      {
        "ip": "104.17.134.105",
        "address": "104.17.134.105",
        "line_name": "联通",
        "bandwidth": 5,
        "speed": 647,
        "colo": "SJC",
        "delay": 136,
        "uptime": "1792984733"
      }
    ],
    "CT": [
      {
        "ip": "104.21.208.238",
        "address": "104.21.208.238",
        "line_name": "电信",
        "bandwidth": 5,
        "speed": 643,
        "colo": "AMS",
        "delay": 213,
        "uptime": "1792984573"
      },
      {
        "ip": "104.25.191.175",
        "address": "104.25.191.175",
        "line_name": "电信",
        "bandwidth": 5,
        "speed": 645,
        "colo": "AMS",
        "delay": 210,
        "uptime": "1792984866"
      }
    ]
  }
}