Proxy302 API
  1. Proxy/代理
Proxy302 API
  • API Tutorial/接口说明
  • User/用户
    • 获取Token/Get Token
      GET
    • 获取用户信息/Get Userinfo
      GET
  • Proxy/代理
    • 静态流量/Static Traffic
      POST
    • 静态IP/Static IP
      POST
    • 动态流量/Rotating Traffic
      POST
    • 动态IP/Rotating IP
      POST
  • Othes/其他
    • 获取地区代码/Get Area Code
      GET
    • 获取支付方式代码/Get Payment Code
      GET
  1. Proxy/代理

动态流量/Rotating Traffic

POST
/open_api/v3/proxy/api/proxy/dynamic/traffic
proxy
创建动态流量/Create Rotating IP- Pay by Traffic

请求参数

Query 参数
s
integer 
S
必需
1 优质线路(节点1); 2 优质线路(节点2); 3 低价线路(节点1); 4 低价线路(节点2)
示例值:
1
country_id
integer 
Country Id
必需
/proxy/area/{area_type} 对应接口获取
示例值:
233
state_id
integer 
State Id
必需
/proxy/area/{area_type} 对应接口获取
示例值:
0
city_id
integer 
City Id
必需
/proxy/area/{area_type} 对应接口获取
示例值:
0
Header 参数
Authorization
string 
必需
/user/users/token 接口获取
示例值:
{{YOUR_API_TOKEN}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.proxy302.com/open_api/v3/proxy/api/proxy/dynamic/traffic?s=1&country_id=233&state_id=0&city_id=0' \
--header 'Authorization: '

返回响应

🟢200Successful Response
application/json
Body
code
integer 
Code
可选
默认值:
0
msg
string 
Msg
可选
默认值:
success
data
object 
Data
可选
默认值:
{}
示例
{
    "code": 0,
    "msg": "succeed",
    "data": {
        "token_id": 2*****2,
        "ip": "-",
        "host": "proxy.proxy302.com",
        "port": 2222,
        "user_name": "T*****p",
        "password": "u*******H",
        "protocol": "http"
    }
}
🟠422Validation Error
上一页
静态IP/Static IP
下一页
动态IP/Rotating IP
Built with