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/代理

静态IP/Static IP

POST
/open_api/v3/proxy/api/proxy/static/ip
proxy
创建静态IP/Create Static IP- Pay by IP

请求参数

Query 参数
payway_id
integer 
支付方式id
必需
/proxy/payway/{payway_name} 对应接口获取
示例值:
91
is_auto_renew
integer 
是否自动续费
必需
是否自动续费 0:否 1:是
示例值:
0
protocol
string 
必需
http或socks5
示例值:
http
is_data_center
integer 
是否是数据中心
必需
是否是数据中心 0:否 1:是
示例值:
0
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/static/ip?payway_id=91&is_auto_renew=0&protocol=http&is_data_center=0&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*****9,
        "ip": "198.1**.*.**",
        "host": "proxy.proxy302.com",
        "port": 2222,
        "user_name": "r*****u",
        "password": "20******y",
        "protocol": "http"
    }
}
🟠422Validation Error
上一页
静态流量/Static Traffic
下一页
动态流量/Rotating Traffic
Built with