创建自有IP

公共参数

请求地址(目前只提供正式环境,暂无沙箱环境)

环境HTTP地址HTTPS地址
正式环境无https://gw.open.zhanfubrowser.com/api/route

公共请求参数

参数名称参数类型是否必填参数描述
apiString必填API接口名称
app_keyString必填POP分配给应用的app_key
access_tokenString必填通过code换取的access_token
timestampString必填UNIX时间戳,单位秒,需要与站斧服务器时间差值在10分钟内
signString必填API输入参数签名结果,签名算法参考开放平台接入指南第三部分底部。

请求参数说明

参数接口参数类型是否必填示例说明
proxy_typestring是http协议类型:http,ssr,socks5h,socks5,https
ip_areaint是1
0=>'全球',
1=>'中国大陆',
2=>'中国香港',
3=>'中国台湾',
4=>'越南',
5=>'菲律宾',
6=>'泰国',
7=>'日本',
8=>'美国',
9=>'英国',
10=>'德国',
11=>'俄罗斯',
12=>'加拿大',
13=>'印度',
14=>'意大利',
15=>'荷兰',
16=>'澳大利亚',
17=>'新加坡',
18=>'马来西亚',
19=>'印尼',
ipstring是127.0.0.1代理IP
portstring是8080代理IP的端口
map_ipstring否127.0.0.2代理映射IP
map_portstring否9090代理映射端口
usernamestring否abcdefg代理IP的用户名
passwordstring否abcdefg代理IP的用户密码
encryptionstring否rc4-md5加密方法
protocolstring否auth_sha1_v4店铺cookie的list string
protocol_parameterstring否abcdefg协议参数
confusestring否http_simple混淆方法
confuse_parameterstring否abcedfg混淆参数

响应示例

{
    "errorCode": 0,
    "message": "恭喜,添加自有IP成功",
    "data": {
        "agentIp": {
            "platform_ids": [
                0
            ],
            "uid": 1090,
            "ip_number": 0,
            "ip_type": 2,
            "proxy_type": "1",
            "ip": "127.0.0.0",
            "port": "1080",
            "map_ip": null,
            "map_port": null,
            "username": "",
            "password": "",
            "encryption": null,
            "protocol": null,
            "confuse": null,
            "protocol_family": null,
            "ext": {
                "ipInfo": {
                    "ip": "127.0.0.0",
                    "iso_code": "",
                    "country": "LAN",
                    "city": "LAN",
                    "state": "CN",
                    "state_name": "LAN",
                    "postal_code": "",
                    "lat": 41.31,
                    "lon": -72.92,
                    "timezone": "Asia/Shanghai",
                    "continent": "NA",
                    "currency": "china",
                    "default": true,
                    "cached": false
                }
            },
            "updated_at": "2020-10-30 21:37:30",
            "created_at": "2020-10-30 21:37:30",
            "id": 37
        },
        "useIp": {
            "agent_ip_id": 37,
            "uid": 1090,
            "lease_record_number": null,
            "ip_price": 0,
            "ip_lease_cycle": 0,
            "status": 5,
            "auto_renew": 2,
            "recovery_status": 1,
            "is_enable": 1,
            "recovery_reason": 0,
            "updated_at": "2020-10-30 21:37:30",
            "created_at": "2020-10-30 21:37:30",
            "id": 30
        }
    }
}