CF优选IP获取
CF优选IP获取

接口地址: https://jkapi.com/api/cf_best

返回格式: JSON

请求方式: GET

请求示例: https://jkapi.com/api/cf_best?server=1&type=v4

请求参数说明:

名称 必填 类型 说明
server integer CDN运营商 CloudFlare=1,CloudFront=2,Gcore=3
type string IP地址协议版本 IPV4=v4,IPV6=v6

返回参数说明:

名称 类型 说明

返回示例:

{
    "status": true,
    "code": 200,
    "msg": "查询成功",
    "info": {
        "CM": [
            {
                "ip": "162.159.152.190",
                "address": "162.159.152.190",
                "line_name": "移动",
                "bandwidth": 15,
                "speed": 1931,
                "colo": "HKG",
                "delay": 66,
                "uptime": "1717855937"
            },
            {
                "ip": "104.19.45.11",
                "address": "104.19.45.11",
                "line_name": "移动",
                "bandwidth": 26,
                "speed": 3450,
                "colo": "HKG",
                "delay": 74,
                "uptime": "1717853289"
            },
            {
                "ip": "104.17.241.223",
                "address": "104.17.241.223",
                "line_name": "移动",
                "bandwidth": 28,
                "speed": 3707,
                "colo": "HKG",
                "delay": 66,
                "uptime": "1717841898"
            },
            {
                "ip": "104.19.57.123",
                "address": "104.19.57.123",
                "line_name": "移动",
                "bandwidth": 25,
                "speed": 3250,
                "colo": "HKG",
                "delay": 78,
                "uptime": "1717853289"
            },
            {
                "ip": "162.159.133.196",
                "address": "162.159.133.196",
                "line_name": "移动",
                "bandwidth": 25,
                "speed": 3283,
                "colo": "HKG",
                "delay": 67,
                "uptime": "1717841972"
            }
        ],
        "CU": [
            {
                "ip": "104.17.48.178",
                "address": "104.17.48.178",
                "line_name": "联通",
                "bandwidth": 25,
                "speed": 3266,
                "colo": "SJC",
                "delay": 201,
                "uptime": "1717842980"
            },
            {
                "ip": "104.16.60.180",
                "address": "104.16.60.180",
                "line_name": "联通",
                "bandwidth": 25,
                "speed": 3248,
                "colo": "SJC",
                "delay": 202,
                "uptime": "1717856175"
            },
            {
                "ip": "104.20.26.41",
                "address": "104.20.26.41",
                "line_name": "联通",
                "bandwidth": 25,
                "speed": 3214,
                "colo": "HKG",
                "delay": 201,
                "uptime": "1717844492"
            },
            {
                "ip": "104.17.241.136",
                "address": "104.17.241.136",
                "line_name": "联通",
                "bandwidth": 32,
                "speed": 4149,
                "colo": "SJC",
                "delay": 198,
                "uptime": "1717856301"
            },
            {
                "ip": "162.159.136.6",
                "address": "162.159.136.6",
                "line_name": "联通",
                "bandwidth": 30,
                "speed": 3914,
                "colo": "HKG",
                "delay": 185,
                "uptime": "1717803030"
            }
        ],
        "CT": [
            {
                "ip": "172.64.166.3",
                "address": "172.64.166.3",
                "line_name": "电信",
                "bandwidth": 12,
                "speed": 1654,
                "colo": "SJC",
                "delay": 172,
                "uptime": "1717854962"
            },
            {
                "ip": "104.19.56.49",
                "address": "104.19.56.49",
                "line_name": "电信",
                "bandwidth": 28,
                "speed": 3620,
                "colo": "SJC",
                "delay": 173,
                "uptime": "1717853830"
            },
            {
                "ip": "104.19.231.235",
                "address": "104.19.231.235",
                "line_name": "电信",
                "bandwidth": 13,
                "speed": 1759,
                "colo": "SJC",
                "delay": 172,
                "uptime": "1717856297"
            },
            {
                "ip": "162.159.152.173",
                "address": "162.159.152.173",
                "line_name": "电信",
                "bandwidth": 15,
                "speed": 1931,
                "colo": "SJC",
                "delay": 170,
                "uptime": "1717855937"
            },
            {
                "ip": "104.18.241.89",
                "address": "104.18.241.89",
                "line_name": "电信",
                "bandwidth": 25,
                "speed": 3300,
                "colo": "SJC",
                "delay": 174,
                "uptime": "1717856301"
            }
        ]
    }
}

请求参数设置:

参数名称 参数值


{
    "status": true,
    "code": 200,
    "msg": "查询成功",
    "info": {
        "CM": [
            {
                "ip": "162.159.152.190",
                "address": "162.159.152.190",
                "line_name": "移动",
                "bandwidth": 15,
                "speed": 1931,
                "colo": "HKG",
                "delay": 66,
                "uptime": "1717855937"
            },
            {
                "ip": "104.19.45.11",
                "address": "104.19.45.11",
                "line_name": "移动",
                "bandwidth": 26,
                "speed": 3450,
                "colo": "HKG",
                "delay": 74,
                "uptime": "1717853289"
            },
            {
                "ip": "104.17.241.223",
                "address": "104.17.241.223",
                "line_name": "移动",
                "bandwidth": 28,
                "speed": 3707,
                "colo": "HKG",
                "delay": 66,
                "uptime": "1717841898"
            },
            {
                "ip": "104.19.57.123",
                "address": "104.19.57.123",
                "line_name": "移动",
                "bandwidth": 25,
                "speed": 3250,
                "colo": "HKG",
                "delay": 78,
                "uptime": "1717853289"
            },
            {
                "ip": "162.159.133.196",
                "address": "162.159.133.196",
                "line_name": "移动",
                "bandwidth": 25,
                "speed": 3283,
                "colo": "HKG",
                "delay": 67,
                "uptime": "1717841972"
            }
        ],
        "CU": [
            {
                "ip": "104.17.48.178",
                "address": "104.17.48.178",
                "line_name": "联通",
                "bandwidth": 25,
                "speed": 3266,
                "colo": "SJC",
                "delay": 201,
                "uptime": "1717842980"
            },
            {
                "ip": "104.16.60.180",
                "address": "104.16.60.180",
                "line_name": "联通",
                "bandwidth": 25,
                "speed": 3248,
                "colo": "SJC",
                "delay": 202,
                "uptime": "1717856175"
            },
            {
                "ip": "104.20.26.41",
                "address": "104.20.26.41",
                "line_name": "联通",
                "bandwidth": 25,
                "speed": 3214,
                "colo": "HKG",
                "delay": 201,
                "uptime": "1717844492"
            },
            {
                "ip": "104.17.241.136",
                "address": "104.17.241.136",
                "line_name": "联通",
                "bandwidth": 32,
                "speed": 4149,
                "colo": "SJC",
                "delay": 198,
                "uptime": "1717856301"
            },
            {
                "ip": "162.159.136.6",
                "address": "162.159.136.6",
                "line_name": "联通",
                "bandwidth": 30,
                "speed": 3914,
                "colo": "HKG",
                "delay": 185,
                "uptime": "1717803030"
            }
        ],
        "CT": [
            {
                "ip": "172.64.166.3",
                "address": "172.64.166.3",
                "line_name": "电信",
                "bandwidth": 12,
                "speed": 1654,
                "colo": "SJC",
                "delay": 172,
                "uptime": "1717854962"
            },
            {
                "ip": "104.19.56.49",
                "address": "104.19.56.49",
                "line_name": "电信",
                "bandwidth": 28,
                "speed": 3620,
                "colo": "SJC",
                "delay": 173,
                "uptime": "1717853830"
            },
            {
                "ip": "104.19.231.235",
                "address": "104.19.231.235",
                "line_name": "电信",
                "bandwidth": 13,
                "speed": 1759,
                "colo": "SJC",
                "delay": 172,
                "uptime": "1717856297"
            },
            {
                "ip": "162.159.152.173",
                "address": "162.159.152.173",
                "line_name": "电信",
                "bandwidth": 15,
                "speed": 1931,
                "colo": "SJC",
                "delay": 170,
                "uptime": "1717855937"
            },
            {
                "ip": "104.18.241.89",
                "address": "104.18.241.89",
                "line_name": "电信",
                "bandwidth": 25,
                "speed": 3300,
                "colo": "SJC",
                "delay": 174,
                "uptime": "1717856301"
            }
        ]
    }
}

错误码格式说明:

名称 类型 说明

代码示例:

apiKey=密钥