OpenAPIOpenAPI
  • English
  • 简体中文
  • Indonesia
  • हिंदी
  • Русский
  • Tiếng Việt
  • German
  • português
  • English
  • 简体中文
  • Indonesia
  • हिंदी
  • Русский
  • Tiếng Việt
  • German
  • português
  • ProxyLite OpenAPI

ProxyLite OpenAPI

The app_key authentication key can be found on your personal homepage after logging in.

Please keep your key safe, as it grants administrator privileges to your account.

Base URLs:

https://api.proxylite.com

Authentication Method

App Key 认证

POST Parameters:

app_key: {your_app_key}

Or as a query parameter:

?app_key={your_app_key}

Response format

All interfaces return a unified JSON format:

{
	"code": 200,
	"message": "操作成功",
	"data": {}
}
  • code: Status code, 200 indicates success, other values indicate failure
  • message: Response message (Chinese)
  • data: Response data

Authentication

This interface supports the following two authentication methods:

1. Bearer Token(JWT)

Pass Token via HTTP Header.

Header 示例:

Authorization: Bearer <your_jwt_token>

API Key Authentication

This interface uses the API Key method for authentication.

The client needs to include the app_key parameter in the request, otherwise the request will be rejected.

Example:

GET /api/example?app_key=your_app_key

POST /api/example?app_key=your_app_key
Content-Type: application/json

Agent Account Management

GET Proxy Account List

GET /end-point/whitelist-account/list

Return example

Successful Response (200)

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"id": 0,
				"username": "string",
				"password": "string",
				"created_at": "string",
				"remark": "string",
				"product_type": 9,
				"usage_flow": 0,
				"limit_flow": 102400,
				"status": 0
			}
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest successfulInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» coderesponseCodefalsenoneStatus code, 200 Success, 3 app_key invalid
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenoneAccount Number
»»» usernamestringfalsenoneProxy account name
»»» passwordstringfalsenoneProxy Account Password
»»» created_atstringfalsenoneAdd Time
»»» remarkstringfalsenoneRemarks
»»» product_typeproductTypesfalsenonePackage Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Data Center IP, 25 Static Residential IP
»»» usage_flowintegerfalsenoneUsed traffic, unit: KB
»»» limit_flowintegerfalsenoneCustom traffic limit: unit GB, maximum 102400, 0 for unlimited
»»» statusintegerfalsenoneEnable Status: 1 Enabled, 0 Disabled

Enumerated values

PropertyValue
product_type9
product_type11
product_type14
product_type25

POST Add Proxy Account

POST /end-point/whitelist-account/add

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01:pass,user02:pass,user03:pass",
	"remark": "",
	"product_type": 9
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoAccount password, please fill in the format username:password. The account and password only support numbers and letters. Do not enter any special symbols or spaces. Separate the account and password with a colon. Supports batch addition, separated by English commas (,).
» remarkbodystringNoDescription of proxy account
» product_typebodyproductTypesNoPackage Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Data Center IP, 25 Static Residential IP

Enumerated values

PropertyValue
» product_type9
» product_type11
» product_type14
» product_type25

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest successfulInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Delete Agent Account

POST /end-point/whitelist-account/delete

Please note that deletion is irreversible, and used traffic data cannot be queried. Deletion will take approximately 5 minutes, during which charges may still be incurred.

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoProxy accounts, supporting only numbers and letters. Supports batch operations, with proxy accounts separated by English commas (,).

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Disable Proxy Account

POST /end-point/whitelist-account/disable

Disabling has an approximate 5-minute wait time, during which charges may still be incurred.

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoProxy accounts, supporting only numbers and letters. Supports batch operations, with proxy accounts separated by English commas (,).

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

Enable Proxy Account for POST

POST /end-point/whitelist-account/enable

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoProxy accounts, supporting only numbers and letters. Supports batch operations, with proxy accounts separated by English commas (,).

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Modify Proxy Account Password

POST /end-point/whitelist-account/change-password

Please note that there is a 5-minute waiting period after the modification, during which the old password may still be used normally.

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"account": "user",
	"password": "pass"
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountbodystringNoAgent account, only supports numbers and letters.
» passwordbodystringNoNew password for proxy account, only supports numbers and letters.

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Modify Agent Account Remarks

POST /end-point/whitelist-account/change-remark

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"account": "user",
	"remark": ""
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountbodystringNoAgent account, only supports numbers and letters.
» remarkbodystringNoNew remark for proxy account, within 32 Chinese characters or 64 English characters.

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Modify Proxy Account Traffic Limit

POST /end-point/whitelist-account/change-limit

Please note that traffic statistics may have a delay of up to 5 minutes, meaning the actual traffic consumption may exceed this limit.

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"account": "user",
	"limit": 0
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountbodystringNoAgent account, only supports numbers and letters.
» limitbodyintegerNoTraffic limit, unit: GB, 0 means no limit

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

Traffic Log Query

GET Daily Traffic Aggregation

GET /end-point/user-usage-flow/total

Request Parameters

NameLocationTypeRequiredExplanation
app_keyquerystring(password)YesAuthentication Key
start_timequerystring(Y-m-d H:i:s)NoStart time, accurate to the second. Please note that there is a delay of up to 5 minutes in logging. Default is within 7 days.
end_timequerystring(Y-m-d H:i:s)NoEnd time, accurate to the second. Please note that there is a delay of up to 5 minutes in logging. Defaults to the current time.
usernamequerystringNoSub-account name, defaults to query all accounts, you can specify a sub-account. Please note that if you add sub-accounts with the same name, this query will return all usage records for proxy accounts with the same name.
product_typequerynumberNoPackage Type

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"day": "2022-08-01",
				"flow": 0
			}
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» daystringfalsenoneDate
»»» flowintegerfalsenoneTraffic consumption, unit: KB

Package Query

GET purchased package list

GET /end-point/user-product/list

Request Parameters

NameLocationTypeRequiredExplanation
app_keyquerystring(password)YesAuthentication Key
trade_noquerystringNoOrder number, please enter the complete order number. Fuzzy search is not supported.
pagequerynumberNoPagination, default: 1
sizequerynumberNoNumber of items displayed per page, default: 20
product_typequerynumberNoPackage Type

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"id": 0,
				"created_at": "2022-05-13 12:14:15",
				"expired_at": "2022-05-13 12:14:15",
				"product_type": 9,
				"trade_no": "2022051312134339861461465434",
				"order": {
					"created_at": "2022-05-13 12:13:43",
					"pay_at": "2022-05-13 12:13:43",
					"title": "入门级"
				}
			}
		],
		"page": 1,
		"page_size": 20,
		"total_count": 0,
		"total_page": 0
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenonePackage ID
»»» created_atstringfalsenonePackage activation time
»»» expired_atstringfalsenonePackage expiration time, after expiration the traffic cannot be used.
»»» product_typeproductTypesfalsenonePackage Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Data Center IP, 25 Static Residential IP
»»» trade_nostringfalsenoneOrder Transaction Number
»»» orderobjectfalsenonenone
»»»» created_atstringfalsenoneOrder Creation Time
»»»» pay_atstringfalsenoneOrder payment time
»»»» titlestringfalsenoneOrder Description
»» pageintegerfalsenoneCurrent Page
»» page_sizeintegerfalsenonePage Size
»» total_countintegerfalsenoneTotal number of records
»» total_pageintegerfalsenoneTotal number of pages

Enumerated values

PropertyValue
product_type9
product_type11
product_type14
product_type25

IP Extraction

GET Extract IP

GET /end-point/ip/v3

Request Parameters

NameLocationTypeRequiredExplanation
app_keyquerystring(password)NoAccess Key
ccquerystringNoCountry or Region
statequerystringNoState or Province
cityquerystringNoCity
formatquerystringNoGet format
lbquerystringNoSeparator, valid only for text format
numquerynumberNoExtraction Quantity
lifequerynumberNoRetention Period - Minutes
epquerystringNoProxy Network

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			[
				"150.109.114.72:1140",
				"150.109.114.72:1141",
				"150.109.114.72:1142",
				"150.109.114.72:1143",
				"150.109.114.72:1144",
				"150.109.114.72:1145",
				"150.109.114.72:1146",
				"150.109.114.72:1147",
				"150.109.114.72:1148",
				"150.109.114.72:1149"
			]
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[any]falsenonenone

GET City List

GET /end-point/ip/dynamic-citys

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"name_zh_cn": "美国",
				"name_en": "United States",
				"continent_code": "NA",
				"country_code": "US",
				"items": [
					{
						"city": null,
						"state": null,
						"continent_code": null,
						"country_code": null
					}
				]
			}
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenoneList
»»» name_zh_cnstringfalsenoneCountry or region name
»»» name_enstringfalsenoneCountry or region name
»»» continent_codestringfalsenoneContinent Code
»»» country_codestringfalsenoneCountry or region code
»»» items[object]falsenoneState or Province
»»»» citystringfalsenoneCity Name
»»»» statestringfalsenoneState or Province Name Code
»»»» continent_codestringfalsenoneContinent Code
»»»» country_codestringfalsenoneCountry or region code

GET City Search

GET /end-point/ip/dynamic-citys/search

Request Parameters

NameLocationTypeRequiredExplanation
country_codequerystringYesCountry or region code
statequerystringYesState or province code

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": ["string"]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[string]falsenoneList

GET State List

GET /end-point/ip/dynamic-states

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"name_zh_cn": "美国",
				"name_en": "United States",
				"continent_code": "NA",
				"country_code": "US",
				"items": [
					{
						"state": null,
						"continent_code": null,
						"country_code": null
					}
				]
			}
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenoneList
»»» name_zh_cnstringfalsenoneCountry or region name
»»» name_enstringfalsenoneCountry or region name
»»» continent_codestringfalsenoneContinent Code
»»» country_codestringfalsenoneCountry or region code
»»» items[object]falsenoneState or Province
»»»» statestringfalsenoneState or Province Name Code
»»»» continent_codestringfalsenoneContinent Code
»»»» country_codestringfalsenoneCountry or region code

GET State/Province Search

GET /end-point/ip/dynamic-states/search

Request Parameters

NameLocationTypeRequiredExplanation
country_codequerystringYesCountry or region code

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": ["string"]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKRequest succeededInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[string]falsenoneList

GET Retrieve Purchased Static IP List

GET /end-point/ip/get-static-ip

Request Parameters

NameLocationTypeRequiredExplanation
country_codequerystringNoCountry or region code
product_typequerynumberNoProduct Type, 25: Static Residential IP, 14: Datacenter IP
trade_noquerystringNoFilter IP by order number
pagequerynumberNoPage number
sizequerynumberNoItems per page
statusquerynumberNoStatus, 1: valid, 2: invalid, 3: expiring soon, 4: under maintenance

Enumerated values

PropertyValue
product_type14
product_type25
status1
status2
status3
status4

Return example

200 Response

{}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKnoneInline

Return data structure


GET Get the number of static IPs in the sales area

GET /end-point/static-ip-region

Request Parameters

NameLocationTypeRequiredExplanation
ispquerystringNoIP Type

IP Type Description

IP TypeDescription
1Residential Static IP
0Static IP of Data Center

Return example

200 Response

{
	"code": 200,
	"msg": "请求成功",
	"data": {
		"list": [
			{
				"code": "US",
				"number": 55
			}
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKnoneInline

Return data structure

Status code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code, 200 Success
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» codestringfalsenoneCountry or region code
»»» numberintegerfalsenoneQuantity

Order Management

GET Order List

GET /end-point/order/list

Request Parameters

NameLocationTypeRequiredExplanation
page_noqueryintegerNonone
page_sizequeryintegerNonone
trade_noquerystringNoOrder Number
statusqueryintegerNoOrder Status
product_typequeryintegerNoProduct Type

Detailed Description

status: Order Status

StatusDescription
0Pending Payment
1Paid
2Unpaid and Canceled Due to Timeout
3Refunded

product_type: 产品类型

Product TypeDescription
3Top-up Balance
9Dynamic Traffic Package
11Dynamic Global Hourly Package V2
12Long-term IDC Traffic Package
13Residential Static IP Traffic Package
14Data Center Static IP Package
15Long-term ISP Traffic Package
16Static Traffic Package
17Dynamic IP Quantity Package
18web-scraper
19Static IP Renewal
20Static IP Replacement Quota
21Static Traffic Package v2
24Static Traffic Add-on Package
25Residential Static IP Package
26Order Completion - Some payment channels require users to manually enter the amount, such as: virtual currency. If there is a shortfall, you need to contact customer service to make a supplementary payment through this product
27Serp
28Video

Enumerated values

PropertyValue
status0
status1
status2
status3
product_type3
product_type9
product_type11
product_type12
product_type14
product_type16
product_type17
product_type18
product_type19
product_type21
product_type24
product_type25
product_type26
product_type27
product_type28

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"list": [
			{
				"id": 0,
				"trade_no": "string",
				"product_id": 0,
				"product_name": "string",
				"total_fee": 0.1,
				"pay_fee": 0.1,
				"status": 0,
				"created_at": "2019-08-24T14:15:22Z"
			}
		],
		"pagination": {
			"total": 0,
			"page_no": 0,
			"page_size": 0,
			"total_pages": 0
		}
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKSuccessInline

Return data structure


POST Create Order

POST /end-point/order/create

Due to the large variety of packages and different configurations for each package, please fill in the parameters according to the actual situation. Improperly filled parameters may cause order creation failure.

examples:

Renew Static IP

{
    "pid": x, // 联系客服获取
    "upids": "1,2,3,4,5,6", // 从 /end-point/ip/get-static-ip 获取对应的ID
    "pm_id": 1 // 从 /end-point/payment/list 获取
    "coupon_sn: "xxx", // 可选 优惠券
  }

Body Request Parameters

{
	"pid": 0,
	"upids": "string",
	"amount": 0,
	"pm_id": 0,
	"region_list": "string",
	"coupon_sn": "string",
	"use_invitation_registration_discount": true,
	"renew_duration": 0,
	"product_sku_bandwidth_id": 0,
	"product_sku_concurrency_id": 0,
	"recharge_amount": 0
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectYesnone
» pidbodyintegerYesPackage ID
» upidsbodystringNoList of renewal package IDs
» amountbodynumberNoNumber of newly purchased packages
» pm_idbodyintegerYesPayment method ID
» region_listbodystringNoSpecify region + quantity when purchasing static IP
» coupon_snbodystringNoCoupon code
» use_invitation_registration_discountbodybooleanNoWhether to use invitation registration discount
» renew_durationbodyintegerNoRenewal period - Static IP optional
» product_sku_bandwidth_idbodyintegerNoPackage 11: Bandwidth package ID
» product_sku_concurrency_idbodyintegerNoPackage 11: Concurrent package ID
» recharge_amountbodyintegerNoPackage 3: Recharge Amount

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"id": 0,
		"trade_no": "string",
		"product_id": 0,
		"product_name": "string",
		"total_fee": 0.1,
		"pay_fee": 0.1,
		"status": 0,
		"created_at": "2019-08-24T14:15:22Z"
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKCreated successfullyInline

Return data structure


POST Cancel order

POST /end-point/order/close

Body Request Parameters

{
	"trade_no": "string"
}

Request Parameters

NameLocationTypeRequiredExplanation
bodybodyobjectYesnone
» trade_nobodystringYesnone

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKOperation successfulNone

User Management

GET Get User Information - Not yet open

GET /end-point/user/info

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"id": 0,
		"email": "[email protected]",
		"phone": "string",
		"balance": 0.1,
		"status": 0,
		"is_real_name": true,
		"created_at": "2019-08-24T14:15:22Z"
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKSuccessInline

Return data structure


Payment Management

GET Get Payment Method List

GET /end-point/payment/groups

Request Parameters

NameLocationTypeRequiredExplanation
trade_noquerystringNoOrder number - can be passed in when some orders need to obtain a specific payment method

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"list": [
			{
				"name": "支付方式分组",
				"logos": ["https://example.com/logo1.png", "https://example.com/logo2.png"],
				"items": [
					{
						"id": 1,
						"title": "title1",
						"logo": "https://example.com/logo1.png",
						"group": "online",
						"disabled": false,
						"min": 10,
						"max": 5000
					}
				]
			}
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKSuccessfully retrievedInline

Return data structure

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» namestringfalsenoneGroup Name
»» logosstring[]falsenoneGroup Icon List
»» itemsobject[]falsenoneList of items within a group
»»» idintegerfalsenonePayment Method ID
»»» titlestringfalsenonePayment method name
»»» logostringfalsenonePayment method logo
»»» groupstringfalsenonePayment method group ID
»»» disabledbooleanfalsenoneWhether to disable (default false)
»»» minnumberfalsenoneMinimum Amount
»»» maxnumberfalsenoneMaximum Amount

Marketing

GET Recharge Bonus Ratio

GET /end-point/activity/balance-recharge-gift-ratio

Recharge Bonus Ratio

Return example

200 Response

{
	"code": 0,
	"msg": "操作成功",
	"data": {
		"list": [
			{
				"amount": 100,
				"ratio": 1.2
			}
		]
	}
}

Return result

Status CodeMeaning of Status CodeExplanationData Model
200OKOKInline

Return data structure

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
» list[object]falsenonenone
»» amountintegerfalsenoneRecharge amount
»» rationumberfalsenoneRecharge ratio

Data Structure Description (Schemas)

productTypes (Package types)

FieldTypeExplanation
product_typeintegerPackage Type

Optional value description:

ValueMeaning
9Dynamic Residential Traffic Package
11Dynamic Residential IP
14Static Data Center IP
25Static Residential IP

API Key (Authentication Key)

Used for interface authentication, please pass it through the Query parameter.

Parameter nameLocationTypeRequiredExplanation
app_keyquerystringYesAuthentication Key

Common Response Fields

responseCode

FieldTypeExampleExplanation
codeinteger200Status code (200 for success, 3 indicates invalid app_key)

responseMsg

FieldTypeExampleExplanation
messagestringsuccessResponse Information

成功响应(SuccessResponse)

{
	"code": 0,
	"message": "操作成功",
	"data": {}
}

Error Response (ErrorResponse)

{
	"code": 400,
	"message": "参数错误",
	"errors": {}
}

User

{
	"id": 0,
	"email": "[email protected]",
	"phone": "string",
	"balance": 0.1,
	"status": 0,
	"is_real_name": true,
	"created_at": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameExplanation
idintegerfalsenonenone
emailstring(email)falsenonenone
phonestringfalsenonenone
balancenumber(float)falsenonenone
statusintegerfalsenonenone
is_real_namebooleanfalsenonenone
created_atstring(date-time)falsenonenone

Order

{
	"id": 0,
	"trade_no": "string",
	"product_id": 0,
	"product_name": "string",
	"total_fee": 0.1,
	"pay_fee": 0.1,
	"status": 0,
	"created_at": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameExplanation
idintegerfalsenonenone
trade_nostringfalsenonenone
product_idintegerfalsenonenone
product_namestringfalsenonenone
total_feenumber(float)falsenonenone
pay_feenumber(float)falsenonenone
statusintegerfalsenonenone
created_atstring(date-time)falsenonenone

Product

{
	"id": 0,
	"name": "string",
	"type": 0,
	"price": 0.1,
	"description": "string"
}
NameTypeRequiredConstraintChinese NameExplanation
idintegerfalsenonenone
namestringfalsenonenone
typeintegerfalsenonenone
pricenumber(float)falsenonenone
descriptionstringfalsenonenone

WhiteIp

{
	"id": 0,
	"ip": "string",
	"remark": "string",
	"created_at": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameExplanation
idintegerfalsenonenone
ipstringfalsenonenone
remarkstringfalsenonenone
created_atstring(date-time)falsenonenone

WhitelistAccount

{
	"id": 0,
	"username": "string",
	"limit": 0,
	"used": 0,
	"status": 0
}
NameTypeRequiredConstraintChinese NameExplanation
idintegerfalsenonenone
usernamestringfalsenonenone
limitintegerfalsenonenone
usedintegerfalsenonenone
statusintegerfalsenonenone

Coupon

{
	"id": 0,
	"name": "string",
	"code": "string",
	"discount": 0.1,
	"expire_time": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameExplanation
idintegerfalsenonenone
namestringfalsenonenone
codestringfalsenonenone
discountnumber(float)falsenonenone
expire_timestring(date-time)falsenonenone

Article

{
	"id": 0,
	"title": "string",
	"content": "string",
	"created_at": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameExplanation
idintegerfalsenonenone
titlestringfalsenonenone
contentstringfalsenonenone
created_atstring(date-time)falsenonenone

Pagination

{
	"total": 0,
	"page_no": 0,
	"page_size": 0,
	"total_pages": 0
}
NameTypeRequiredConstraintChinese NameExplanation
totalintegerfalsenonenone
page_nointegerfalsenonenone
page_sizeintegerfalsenonenone
total_pagesintegerfalsenonenone