API document:https://proxy302.apifox.cn/doc-3846532
Before using the API, you need to first apply for API key in Proxy302 dashboard.
Apply for API Key
-
Note: Password is randomly generated by the system

User
Get Token

-
Response example:

Get Userinfo
-
Parameter value:Basic cHveHkzMDI6THV1*******JiYQ

-
Response example:

Proxy
Static Traffic
1.Create static IP - Pay by Traffic
(1)Set the relevant parameters in the Params section.
protocol:http or socks5 protocol (Based on your needs)
is_data_center:0 residential;1 data_center
country_id:233 US(obtained via the Get Area Code interface)
-
example: static IP - Pay by Traffic;static_residential;HTTP;us

-
Parameter value:Basic cHveHkzMDI6THV1*******JiYQ

-
Response example:

Static IP
1.Create static IP - Pay by IP
(1)Set the relevant parameters in the Params section.
payway_id:91 Purchase a 1-day static residential proxy.(obtained via Get Payment Code)
is_auto_renew:0 No;1 Yes
protocol:http or socks5 protocol (Based on your needs)
is_data_center:0 residential;1 data_center
country_id:233 US( obtained via the Get Area Code)
-
example: static IP - Pay by IP;Purchase 1 day;Automatic Renewal;static_residential;HTTP;us

-
Parameter value:Basic cHveHkzMDI6THV1*******JiYQ

-
Response example:

Dynamic Traffic
1..Create Dynamic Traffic - Pay by Traffic
(1)Set the relevant parameters in the Params section.
s:1 Enterprise Premier Route-Node 1;2 Enterprise Premier Route-Node 2;3 Smart Budget Route-Node 1;4 Smart Budget Route-Node 2
country_id:233 US(obtained via the Get Area Code)
-
example:Create Dynamic Traffic - Pay by Traffic;Node 1;us

-
Parameter value:Basic cHveHkzMDI6THV1*******JiYQ

-
Response example:

Dynamic IP
1.Create Dynamic Traffic - Pay by IP
(1)Set the relevant parameters in the Params section.
protocol:http or socks5 protocol (Based on your needs)
country_id:233 US(obtained via the Get Area Code)
-
example:Dynamic Traffic - Pay by IP;HTTP;us

-
Parameter value:Basic cHveHkzMDI6THV1*******JiYQ

-
Response example:

Othes
Get Area Code
1、Click Get Area Code to obtain the area code, click Debug, and set the relevant parameters in Params; enter the Token into the request parameter Headers - parameter name Authorization.
(1)①Get country id:
area_type:country ;state ;city (Select one parameter to fill in)
pid:Parent ID, state, and city are required (No need to fill in to get country id)
name:Region Name (Support fuzzy search)
-
Example 1: get country id; united states

-
Response example:

(2)①Get state id:
area_type:country ;state ;city (Select one parameter to fill in)
pid:Parent ID, state, and city are required
name:Region Name (Support fuzzy search)
-
Example 2: get state id; Colorado (us)

-
Response example:

Get Payment Code
-
example:static_residential

-
Parameter value:Basic cHveHkzMDI6THV1*******JiYQ

-
Response example:
